You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With SDL3 on MinGW, calling SDL_ShowSaveFileDialog and SDL_ShowOpenFileDialog will crash with illegal instruction. The file dialog still appears. This happens on the latest master branch commit, as well as on a random commit a few months ago.
@slouken I was linking against the DLL and couldn't obtain the call stack beyond my code using MinGW's gdb. I'm assuming that my CMAKE_BUILD_TYPE=Debug is propagating to SDL, so I'm not sure why this was the case.
So then I changed to static linking -- and the error disappeared! Everything seems to work fine now.
It seems the error might only occur when linking against a DLL on MinGW?
As a side note (I'm a noob on this), can I just get away with static linking SDL? I don't think executable size is a concern, since I think I'll need to distribute the DLL with my app even if I used dynamic linking. Would there be any other possible concerns?
Actually, I just rebuilt the project with dynamic linkage again and things are working fine now.
I've done a clean build before and the error was still there; but this time it's somehow disappeared.
I'll try some other arguments and see if I can repro this error again.
With SDL3 on MinGW, calling
SDL_ShowSaveFileDialog
andSDL_ShowOpenFileDialog
will crash with illegal instruction. The file dialog still appears. This happens on the latest master branch commit, as well as on a random commit a few months ago.Minimal sample:
I've tried providing a window as argument, which oddly causes the file dialog to no longer appear, but the crash still occurs.
The text was updated successfully, but these errors were encountered: