You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I bumped into a configuration (zoom, orientation, ...) where an SVG symbol has one null dimension (height or width).
The rendering process crashes with the following error message (mapcairo.c):
//already rendered at the right size and scale? return
if(svg_cache->scale != style->scale || svg_cache->rotation != style->rotation) {
...
}
assert(svg_cache->pixmap_buffer->height && svg_cache->pixmap_buffer->width);
Expected behavior
Instead of crashing the rendering process, wouldn't it be more appropriate to test buffer dimensions beforehands.
Something like :
if ( (svg_cache->pixmap_buffer->height == 0 || (svg_cache->pixmap_buffer->width == 0) )
return MS_FAILURE;
//already rendered at the right size and scale? return
if(svg_cache->scale != style->scale || svg_cache->rotation != style->rotation) {
...
}
Steps to reproduce the problem.
With the data in the attached ZIP, run the following command : mapcache_seed -c /var/www/html/geo/mapcache_seed_G4D-506.xml -t G4D-506_meta -v -b -f -n8 -e 20.9068,32.5112,20.9104,32.5139 -z 1,17
Actual behavior
I bumped into a configuration (zoom, orientation, ...) where an SVG symbol has one null dimension (height or width).
The rendering process crashes with the following error message (mapcairo.c):
The code snippet shows:
Expected behavior
Instead of crashing the rendering process, wouldn't it be more appropriate to test buffer dimensions beforehands.
Something like :
Steps to reproduce the problem.
With the data in the attached ZIP, run the following command :
mapcache_seed -c /var/www/html/geo/mapcache_seed_G4D-506.xml -t G4D-506_meta -v -b -f -n8 -e 20.9068,32.5112,20.9104,32.5139 -z 1,17
Attached simple test case
The attached ZIP contains G4D-506.zip:
You can modify symbol size to make the test OK or NOK (see WMS_G4D-506.map):
Operating system
Centos Linux release 7.2.1511
MapServer version and installation method
The text was updated successfully, but these errors were encountered: