Build with cmake -DCMAKE_BUILD_TYPE=Debug

and run under gdb:

gdb --args map2img -m eurodeer_new.map -o eurodeer.png -all_debug 5 -conf /path/to/conffile

run

and when it crashes

bt

Le 08/04/2022 à 10:38, Luca Delucchi a écrit :
Hi,

I compiled the github master version and used map2img, the output is
not helping so much...

map2img -m eurodeer_new.map -o eurodeer.png -all_debug 5
Cannot open configuration file /usr/local/etc/mapserver.conf.
msLoadConfig(): Unable to access file. See
mapserver.org/config_file.html for more information.
msDrawMap(): Image handling error. Failed to draw layer named
'Research groups'. <br>
msPostGISLayerWhichShapes(): Query error. Failed to build query SQL. <br>
msPostGISBuildSQL(): General error message. Failed to build SQL 'where'. <br>
msSearchDiskTree(): Search returned no results. Unable to open spatial
index for 
/home/lucadelu/github/euromammals/print_maps/././data/ne_10m_admin_0_sovereignty.qix.
In most cases you can safely ignore this message, otherwise check file
names and permissions. <br>
msLoadConfig(): Unable to access file. See
mapserver.org/config_file.html for more information. <br>

the 'Research groups' layer is defined like this

DATA "geom from (select research_groups_id, short_name, geom from
main.research_groups where ST_Contains(!BOX!, geom)) as subquery using
unique research_groups_id using srid=4326"

--
http://www.spatialys.com
My software is free, but my time generally not.

_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to