-
Notifications
You must be signed in to change notification settings - Fork 353
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
dhewm3 1.5.2rc1 segfaults when loading Resurrection of Evil #458
Comments
DanielGibson
added a commit
that referenced
this issue
May 24, 2022
The assertion that triggered was "assert(iconvDesc == (SDL_iconv_t)-1);" in Sys_InitInput() - because when loading a mod the window is recreated, calling Com_ReloadEngine_f() -> idCommonLocal::InitGame() -> idCommonLocal::InitRenderSystem() -> idCommonLocal::InitOpenGL() -> R_InitOpenGL() -> Sys_InitInput() Before that Com_ReloadEngine_f() calls commonLocal.ShutdownGame( true ); which calls the equivalent Shutdown() functions - except so far no one called Sys_ShutdownInput() (which closes iconvDesc and resets it to -1). Fixed that by making idRenderSystemLocal::ShutdownOpenGL() call it.
I just pushed a fix for this, can you test if it works for you? |
I'll need to ping the Flatpak maintainer to push a new test build. I'll report back once I test it. |
I can confirm that the fix works. Thank you very much.
|
rorgoroth
pushed a commit
to rorgoroth/dhewm3
that referenced
this issue
Apr 8, 2023
The assertion that triggered was "assert(iconvDesc == (SDL_iconv_t)-1);" in Sys_InitInput() - because when loading a mod the window is recreated, calling Com_ReloadEngine_f() -> idCommonLocal::InitGame() -> idCommonLocal::InitRenderSystem() -> idCommonLocal::InitOpenGL() -> R_InitOpenGL() -> Sys_InitInput() Before that Com_ReloadEngine_f() calls commonLocal.ShutdownGame( true ); which calls the equivalent Shutdown() functions - except so far no one called Sys_ShutdownInput() (which closes iconvDesc and resets it to -1). Fixed that by making idRenderSystemLocal::ShutdownOpenGL() call it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have dhewm3 1.5.2rc1 installed via Flatpak. When I attempt to load Resurrection of Evil via the main menu (Mods->d3xp->Load Mod) I get a segfault. This doesn't occur with 1.5.1. However, I can run Resurrection of Evil directly with
flatpak run org.dhewm3.Dhewm3 +set fs_game d3xp
.dhewm3-1.5.2rc1.log
The text was updated successfully, but these errors were encountered: