-
Notifications
You must be signed in to change notification settings - Fork 232
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 when loading texture groups #2039
Comments
Which texture collection were you trying to add? Can you reproduce the problem? |
It's actually any of the collections and I realized after the fact that it happens after loading another map. Steps are basically, load a map. Add texture collections. Load another map. Add a collection and it immediately crashes. I haven't had the time to look into it yet myself (I have a forked version of TB I'm using for a project of mine) otherwise I'd have submitted a patch/pull request. |
No, I still cannot reproduce this. Sorry. I created a new map, added two texture collections, and saved it. Then I created another new map, added other texture collections, and saved that too. Then I restarted the editor, loaded the first map, added a texture collection. Then, without saving, I opened the second map, and added a texture collection. No crash. Do you have any other hints? |
It could be that it's because I'm loading maps that were originally built in Qoole many years ago? It's barfing in this function (file
I've been running this in the debugger and it's an access violation of sorts. Interestingly enough As a side note, I'm seeing this only happening in release builds. When I build in Debug mode, the problem disappears. Makes me wonder if this is a side effect of the optimizer? |
Alright, found the problem: But then, the old observer was still called and executed on the now deleted texture collection editor, leading to the crash. |
fctf4-crash.txt
fctf4-crash.log
fctf4-crash.zip
System Information
TB v2.0.0-final on Windows 10
Expected Behavior
Was adding texture collections to the map. After hitting the add button TB crashes.
In the case of a crash, please upload the generated stack trace, log file, and map file along with this report.
Thank you very much!
The text was updated successfully, but these errors were encountered: