Ticket #3866 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

MapScript Seg Fault with class->createLegendIcon

Reported by: worthlutz Owned by: dmorissette
Priority: high Milestone: 6.0 release
Component: MapScript-PHP Version: 6.0
Severity: critical Keywords: mapscript createLegendIcon
Cc: worthlutz, aboudreault

Description

Calling class->createLegendIcon with a layer with a hatch symbol and OPACITY or TRANSPARENCY causes a Segmentation Fault.

The attached files are a test case for this error. To create the error remove the comment character "#" from the OPACITY or TRANSPARENCY in the mapfile for "test_layer_1". This caused the Segmentation Fault. OPACITY works for the solid fill layer, "test_layer_2"

I am using version 6.0 rc2 from ubuntugis-testing repository.

I have not yet tested if OPACITY works for hatch with a regular map draw as it has taken me a while to find this problem as the code for the legend icon is embedded in my application which just crashes. I had to extract the code and then go through layers to find the offending item.

Attachments

test.map Download (1.5 KB) - added by worthlutz 2 years ago.
createLegendIconTest.php Download (1.4 KB) - added by worthlutz 2 years ago.

Change History

Changed 2 years ago by worthlutz

Changed 2 years ago by worthlutz

Changed 2 years ago by dmorissette

  • cc aboudreault added
  • owner changed from aboudreault to dmorissette

I'll have a look at this now

Changed 2 years ago by dmorissette

  • status changed from new to assigned

I was able to reproduce... investigating...

Changed 2 years ago by tbonfort

fixed in r11673

Changed 2 years ago by tbonfort

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.