Maproom / qmapshack

Consumer grade GIS software
GNU General Public License v3.0
285 stars 65 forks source link

Crash when using tms map #626

Closed googol42 closed 11 months ago

googol42 commented 1 year ago

Describe the bug

I use various map views (the tabs above the map). One of this views uses the "Waymarked Trails" map. Since 1.17.0 this view QMapShack randomly freezes when I move or zoom the map.

What have you done to circle down the problem?

To Reproduce

  1. Put the Waymarkedtrails.tms to your map folder and reload the maps so that the map is included in the list.
  2. Press Ctrl+t to create a new map view.
  3. Activate the Waymarkedtrails map.
  4. (Optional) Disable all layers apart from the Waymarked Trails Hiking layer (this reduces the noise in the debug log)
  5. (Optional) Close and re-open QMapShack (if you skip this step you have to repeat step 2-4 once QMapShack crashes)
  6. Move around and zoom. At some point it will crash.

Expected behavior

Don't crash :-)

Screenshots

Attachments

The Waymarkedtrails.tms file:

<TMS>
<Layer idx="0">
<Title>Waymarked Trails Skating</Title>
<MinZoomLevel>1</MinZoomLevel>
<MaxZoomLevel>19</MaxZoomLevel>
<ServerUrl>https://tile.waymarkedtrails.org/skating/%1/%2/%3.png</ServerUrl>
</Layer>
<Layer idx="1">
<Title>Waymarked Trails Mountainbike</Title>
<MinZoomLevel>1</MinZoomLevel>
<MaxZoomLevel>19</MaxZoomLevel>
<ServerUrl>https://tile.waymarkedtrails.org/mtb/%1/%2/%3.png</ServerUrl>
</Layer>
<Layer idx="2">
<Title>Waymarked Trails Cycling</Title>
<MinZoomLevel>1</MinZoomLevel>
<MaxZoomLevel>19</MaxZoomLevel> 
<ServerUrl>https://tile.waymarkedtrails.org/cycling/%1/%2/%3.png</ServerUrl>
</Layer>
<Layer idx="3">
<Title>Waymarked Trails Riding</Title>
<MinZoomLevel>1</MinZoomLevel>
<MaxZoomLevel>19</MaxZoomLevel>
<ServerUrl>https://tile.waymarkedtrails.org/riding/%1/%2/%3.png</ServerUrl>
</Layer>
<Layer idx="4">
<Title>Waymarked Trails Hiking</Title>
<MinZoomLevel>1</MinZoomLevel>
<MaxZoomLevel>19</MaxZoomLevel>
<ServerUrl>https://tile.waymarkedtrails.org/hiking/%1/%2/%3.png</ServerUrl>
</Layer>
<Layer idx="5">
<Title>Waymarked Trails Slopes</Title>
<MinZoomLevel>1</MinZoomLevel>
<MaxZoomLevel>19</MaxZoomLevel>
<ServerUrl>https://tile.waymarkedtrails.org/slopemap/%1/%2/%3.png</ServerUrl>
</Layer>
<Copyright>Map data: (c) OpenStreetMap contributors, ODbL CC-BY-SA | Trails by http://www.waymarkedtrails.org/ </Copyright>
</TMS>

Tracebacks

comment: # (Add your backtrace below if you have one. If QMapshack crashes the fastest way to get help is a backtrace. For Linux see: https://github.com/Maproom/qmapshack/wiki/TroubleShooting#create-a-backtrace-of-a-crash-on-linux. For Windows it would need a debug build and running QMapshack in Visual Studio.)

Desktop

Additional context

frankystone commented 1 year ago

I think this is a duplicate of #547

What you can do is to split the contents of waymarkedtrails.tms so each entry get its own tms file, like mentioned in the other bugreport. After activating such a single file a freeze of QMS is very rare.

kiozen commented 11 months ago

is duplicate of #547