mapcache icon indicating copy to clipboard operation
mapcache copied to clipboard

Use of dimensions crashes mapcache 1.14.1 with signal Segmentation fault

Open jaysnm opened this issue 9 months ago • 0 comments

Hello and thank you for maintaining this fantastic solution.

I have been using mapcache for quite some time with latest version being 1.14.0. When I upgraded to 1.14.1, I realized mapcache was crashing with a [core.notice] exit signal Segmentation fault (11). This issue can be reproduced using below config adopted from sample config file. To make the setup work, just remove the dimensions section.

<?xml version="1.0" encoding="UTF-8"?>
<mapcache>
   <metadata>
      <title>my mapcache service</title>
      <abstract>woot! this is a test mapcache service</abstract>
   </metadata>

   <cache name="disk" type="disk">
      <base>/tmp</base>
      <symlink_blank />
      <detect_blank />
   </cache>


   <format name="PNGQ_FAST" type="PNG">
      <compression>fast</compression>
      <colors>256</colors>
   </format>

   <source name="vmap0" type="wms">
      <getmap>
         <params>
            <FORMAT>image/png</FORMAT>
            <LAYERS>basic</LAYERS>
         </params>
      </getmap>
      <http>
         <url>http://vmap0.tiles.osgeo.org/wms/vmap0</url>
         <connection_timeout>30</connection_timeout>
         <timeout>300</timeout>
      </http>
   </source>

   <tileset name="vmap0_test">

      <source>vmap0</source>
      <cache>disk</cache>

      <grid restricted_extent="-10 40 10 50" minzoom="6" maxzoom="8">WGS84</grid>
      <grid>g</grid>
      <metadata>
         <title>vmap0 map</title>
         <abstract>blabla</abstract>
         <keywords>
            <keyword>foo</keyword>
            <keyword>bar</keyword>
         </keywords>
      </metadata>

      <dimensions>
         <dimension type="values" name="DIM1" default="foo">
            <value>foo</value>
            <value>bar</value>
         </dimension>
      </dimensions>

   </tileset>


   <default_format>JPEG</default_format>

   <service type="wms" enabled="true">
      <full_wms>assemble</full_wms>
      <resample_mode>bilinear</resample_mode>
      <format>PNGQ_FAST</format>
      <maxsize>4096</maxsize>
   </service>
   <service type="wmts" enabled="true" />
   <service type="tms" enabled="true" />
   <service type="kml" enabled="true" />
   <service type="gmaps" enabled="true" />
   <service type="ve" enabled="true" />
   <service type="demo" enabled="true" />

</mapcache>

jaysnm avatar Apr 30 '25 13:04 jaysnm