Crash occurs with multiple iterations of instantiating TileMap objects via tiled.registerMapFormat.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 12.9k
- Forks
- 2k
- Avg merge
- 4h 27m
- Merged PRs (30d)
- 8
Description
Describe the bug
The initial load of the World file works as expected.
Upon unload and any subsequent reload, Tiled crashes.
If you uninstall and reinstall Tiled, the World file will load without issue.
If you rename the World file to a filename not previously seen by Tiled, the World file will load without issue.
To Reproduce
Steps to reproduce the behavior:
- Load world using an API registered map format.
- Unload the world.
- Reload the world.
- Tiled crashes
Expected behavior
The world will load just as it did upon its initial load.
Specifications:
- OS: Windows 11
- Tiled Version: Reproduced on 1.11.0 and 1.11.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the crash on Windows 11 by loading a World file through tiled.registerMapFormat, unloading it, and reloading it. Compare the initial and subsequent loads; done means the World file reloads without Tiled crashing, as described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100