mapeditor/tiled
Do you want to work on this issue?
You can request for a bounty in order to promote it!
Large Strings Crash #3649
MainMemory posted onGitHub
Describe the bug If I have a script set a large (9kb) string property on a Tilemap, open the text editing window for it, close it without editing, then attempt to close the map, Tiled crashes. Additionally, attempting to paste the same text into another map manually causes Tiled to crash as well.
Note: I can no longer reproduce the bug. Submitting anyway in case it can be reproduced.
To Reproduce
- Make a script that adds a string property to a Tilemap with a large amount of text.
- Open the text editing window for the property.
- Close the text editing window.
- Close the map.
Expected behavior Tiled should close the map, and not crash.
Media
The string that caused the crash: objlist.txt
A crash dump file: tiled.exe.54232.dmp.zip
Specifications:
- OS: Windows 10
- Tiled Version: 2023.03.04 (64-bit)
Here's one of the crashes from the Windows Event Viewer:
Faulting application name: tiled.exe, version: 1.0.0.0, time stamp: 0x6402ea99
Faulting module name: tilededitor.dll, version: 0.0.0.0, time stamp: 0x6402ea3e
Exception code: 0xc0000005
Fault offset: 0x00000000001459ec
Faulting process id: 0xe134
Faulting application start time: 0x01d96a405392a089
Faulting application path: C:\Program Files\Tiled\tiled.exe
Faulting module path: C:\Program Files\Tiled\tilededitor.dll
Report Id: 8eea66ed-9605-4d9e-b6d4-9b2506ca17cb
Faulting package full name:
Faulting package-relative application ID: