If you know the querystring that generated the failure you could run even more verbose logging on the command line. Something like:
env CPL_DEBUG=ON CPL_TIMESTAMP=ON MS_DEBUGLEVEL=5 MS_ERRORFILE=/dev/stderr mapserv QUERY_STRING='SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image/png&WIDTH=256&HEIGHT=256&....' and maybe you could copy the image locally and try something like gdal_translate -tr 256 256 -projwin ulx uly lrx lry in.tif out.tif to glean more information. It's possible the input image (or an overview within the image) is corrupted in some way. If it turns out an overview is corrupted, you could try regenerating it with gdaladdo? On Fri, Oct 20, 2023 at 10:53 AM Raghav Singh via gdal-dev < gdal-dev@lists.osgeo.org> wrote: > I ran mapserver locally ran the specific wms request locally so getting > this error - Assertion failed: (MS_RENDERER_RAWDATA(image->format) || > (MS_RENDERER_PLUGIN(image->format) && rb)), function msDrawRasterLayerGDAL, > file mapdrawgdal.c, line 126. > Abort trap: 6 > Any idea regarding this? > > and in logs it's coming like this - > > Fri Oct 20 21:56:56 2023].137990 msDrawMap(): rendering using outputformat > named mypng (AGG/PNG). > > [Fri Oct 20 21:56:56 2023].138020 msDrawMap(): WMS/WFS set-up and query, > 0.000s > > [Fri Oct 20 21:56:56 2023].198332 > msDrawRasterLayerLow(PICT-INHEND19-psQwiZ1L4t): entering. > > [Fri Oct 20 21:56:58 2023].803667 > msDrawRasterLayerLow(PICT-INHEND19-psQwiZ1L4t): entering. > > [Fri Oct 20 22:10:13 2023].219765 drawGDAL() error coming from here: > Unable to access file. GDALDatasetRasterIO() failed: IReadBlock failed at X > offset 497, Y offset 740: GDALWMS: Unable to download block 497, 740. > > > > ------------------------------ > *From:* Raghav Singh > *Sent:* 04 October 2023 11:09 > *To:* gdal-dev@lists.osgeo.org <gdal-dev@lists.osgeo.org> > *Subject:* WMS layer issue at higher zoom level > > Hi, > > I am trying to get a layer from wms and at higher zoom levels I am getting > this error - msDrawMap(): Image handling error. Failed to draw layer > named 'PICT-INHEND19-psQwiZ1L4t'. drawGDAL(): Unable to access file. > GDALDatasetRasterIO() failed: /tmp/mapfilePassthru-v2-temp-HxmyxI, band 1: > IReadBlock failed at X offset 1064, Y offset 1551. > > So, for this I checked from the imageservice side the mapfile is being > created correctly and it is also present there and the mapfile contains a > gserve request for getting the tiles - that is also working fine. So > getting this error from mapserver only and tried to put debug level 5 and > other things also in the mapfile but couldn't get any other error, only > this is coming. So need help in this if anybody knows what exactly is this > and i can i debug mapserver locally if i want to then i can figure out the > exact point where the error is coming from. > > Thanks, > Raghav Singh > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Pete
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev