[Bug]: MapTool freezes when going from min to max zoom with certain maps
Describe the Bug
Maptool is freezing when going from min to max zoom quickly on maps with a background image
To Reproduce
- Click Map->New...
- in the Map Properties click Map
- Select a map image
- click OK
- click OK
- Zoom out as far as possible (0.0003%)
- Zoom in as far as possible (2321542%)
Expected Behaviour
MapTool should not freeze
Screenshots
No response
MapTool Info
1.18.5
Desktop
Debian 12
Additional Context
Originally discovered this playing around with the "Adjust Grid" zoom controls
In my testing the freeze happens at a zoom level particular to the map image being used... and it's not resolution based. i.e. two different 1024x1024 png images always freeze at zoom levels particular to them, but different from each other.
Examples: A 2380x2100 webp map image always freezes at 171819%. An 800x800 jpg always freezes at 198559%. 4000x3000 png always freezes at 128658%. 400x400 jpg freezes at 3100348%
I did however, find images that do NOT freeze as map images and they all had some pixels that were transparent in them: 400x400 png 1024x732 png 600x600 webp So it appears that images with an alpha channel do NOT cause the application to freeze.