Closed NiteKat closed 3 years ago
Think I figured it out. An error message is supposed to have displayed, but instead the app just crashed so it took a moment. It looks like the build puts devilution.mpq into the release folders, but not the debug folders. Is this by design?
Is this by design?
No. What error message is it trying to show?
Based on the call stack, it looked like the one for not being able to load devilution UI elements, which led me to realize devilution.mpq was not in the debug folder. But to be honest, not sure if it was added to release folder by the build process either, or if I added it at some point (though I chose Rebuild All option, so I think that would clear it out of the folders...? But maybe not. I'll try deleting the build folders and building again and report back.
works fine for me
I haven't been able to reproduce this crash on windows 10 with msvc2022 or 2019 using either the target commit or latest master, even when commenting out the code that loads devilutionx.mpq and forcing the code that triggers that error dialog to run.
The error dialog results from the app_fatal call in qol/monhealthbar.cpp InitMonsterHealthBar()
if devilutionx_mpq isn't a valid handle. This currently renders as expected (...well, with an invisible cursor on de3f306). Maybe it only happens with a specific version of SDL?
Important information Windows 10 / de3f3062 of master / compiled myself using Visual Studio 2019
Describe The x64-Debug build crashes when selecting to load a saved character, or creating a new character. x64-Release build runs fine.
To Reproduce Steps to reproduce the behavior:
Expected behavior The game should load the saved character
Additional context Per Visual Studio, crash happens on line 5432 of SDL_malloc.c. Call stack: