New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on startup when session contains 2+ open files that no longer exist #3468
Comments
Oh, very interesting. If the session contains one open file that no longer exists, Tiled opens successfully, and complains successfully that the file doesn't exist (although the actual error is "Unrecognized file format", which is a bit misleading). If the session contains two, different open files that no longer exist, Tiled crashes immediately. Is Qt unhappy about trying to spawn two modal dialogs at once? |
And now that I've fixed my session, I ran into another startup crash, except it's coming from |
Hmm, I tested this on Fedora against Qt 5.15.2 and it simply showed two "file not found" popups, one after the other: (though it would be nice to not duplicate the file name there) From the backtrace it seems there is more going on than just two missing files. There's animation involved, and the trace shows twice a call to Looks like it's going to be hard to figure out how to avoid this issue. :-/ |
Could you try to run this in |
I seem to be experiencing some distro-related problems with valgrind at the moment, but I'll get back to you once it's cooperating. Odd that we get different errors, too, but that seems unlikely to be related. The good news is, I've discovered a new wrinkle! Adding this to the middle of my
As does either of these:
However, this does NOT crash — it simply shows me three modal error dialogs, one after the other.
|
Just upgraded and Tiled is now struggling to open. Unfortunately that makes it a little difficult to determine the exact cause, but here's what I know!
There's an "Error Opening File" dialog, which never successfully draws (so I don't know what it's trying to say or which file it's trying to load) before a segfault with this stack trace:
It segfaults because
this->widgetItem
, a pointer, is0xffffff
. Weird.This is obviously way deep in some Qt guts, and all Tiled is doing is calling a very high-level Qt function to show a dialog box, so I cannot imagine why this is happening. I somewhat doubt it's Tiled's fault at all, but I also can't find any trace of this being a known Qt bug, so I'm hoping you have an idea here.
In the meantime, I'm going to nuke my session and then at least narrow down which file is failing to load.
Arch Linux x64, using the pacman build, Tiled 1.9.1(-1), Qt 5.15.5
The text was updated successfully, but these errors were encountered: