Opened 13 years ago

Closed 13 years ago

#3866 closed defect (fixed)

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 (2)

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

Download all attachments as: .zip

Change History (6)

by worthlutz, 13 years ago

Attachment: test.map added

by worthlutz, 13 years ago

Attachment: createLegendIconTest.php added

comment:1 by dmorissette, 13 years ago

Cc: aboudreault added
Owner: changed from aboudreault to dmorissette

I'll have a look at this now

comment:2 by dmorissette, 13 years ago

Status: newassigned

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

comment:3 by tbonfort, 13 years ago

fixed in r11673

comment:4 by tbonfort, 13 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.