mapeditor / mapeditor/tiled

Crash occurs with multiple iterations of instantiating TileMap objects via tiled.registerMapFormat.

Open
#4,193 5 comments 0 reactions 0 assignees View on GitHub

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:

  1. Load world using an API registered map format.
  2. Unload the world.
  3. Reload the world.
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.