Do you want to work on this issue?
You can request for a bounty in order to promote it!
Tiled tries to scan the entire home directory, making it freeze #3823
nbouteme posted onGitHub
Describe the bug Tiled freezes after a few minutes of usage. I recompiled Tiled in order to get a stack trace and symbols.
(gdb) fr 4 #4 0x00007fca4531f16b in Tiled::ProjectModel::folderScanned (this=0x55c99bf22e10, resultPointer=0x7fca240013f0) at /home/user/tiled/src/tiled/projectmodel.cpp:457 457 mWatcher.addPaths(newDirectories); (gdb) p newDirectories.length() $3 = 291732
Even opening a tilemap in a completely empty folder deep in the hierarchy causes Tiled to scan the home folder, even if the CWD isn't even set to that either.
To Reproduce
- Start tiled, open a tmx tilemap
- Use or don't use a few minutes
- Tiled freezes
Expected behavior Doesn't scan my entire home. If I'm not opening a project then it shouldn't scan anything at all that's not referenced by the currently opened files.
Specifications:
- OS: ArchLinux
- Tiled Version: Current master branch