Opened 18 years ago

Closed 18 years ago

#1541 closed defect (fixed)

MapServer segfaults when using GRASS rasters with less than 256 colors

Reported by: nacional@… Owned by: warmerdam
Priority: high Milestone:
Component: GDAL Support Version: 4.8
Severity: normal Keywords:
Cc:

Description

On 11/24/05, Pericles S. Nacionales <nacional@cbs.umn.edu> wrote:
> I just noticed than when using a bitmapped (thematic/paletted) GRASS raster
> data with less than 256 "colors", MapServer segfaults.  This doesn't happen
> with a TIFF bitmap and it doesn't happen when the GRASS bitmap has 256 color
> entries.  I tried the same GRASS bitmap in QGIS and GRASS itself and it
> displays fine there.  Is this a known issue in MapServer?  Has anybody
> experienced this?
>
> I have created a test case which can be downloaded at
> http://hypnos.cbs.umn.edu/downloads/grasstest.zip.

Perry,

I have found the fix for this bug.  Could you file a bug report
in bugzilla?  If I fix another bug in this beta period without a
corresponding bug number the release manager is likely
to make me pay for all the beer next time we get together.
That could be expensive!

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

Change History (1)

comment:1 by fwarmerdam, 18 years ago

Resolution: fixed
Status: newclosed
The problem was that the nodata value was not in the colormap, and the code
was trying to update the colormap entry with a zero alpha value to make
it transparent.  I have corrected the code to not assume 256 color entries.

The patch went in post 4.8beta2, but should be in beta3. 


Note: See TracTickets for help on using tickets.