-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Segfault on fresh start #75818
Comments
I can confirm this, crashes straight up on game start before anything is drawn. Looks imgui related based on the stack trace. |
Language selector is supposed to be shown on first launch, i assume it is managed by imgui now and doesn't work? |
Worked around this by copying the config dir from older build. The game doesn't crash if a language is already set. |
So IDK why, but just deleting the call to
|
this is enough to stop the crash, but the language selection menu a) doesn't render until a keystroke is entered, and b) renders all fucky anyway. But I'm not testing on a fully up to date master so I need to recheck if that's still the case. Font gets set in ImGui::NewFrame() to the result of GetDefaultFont(), but honestly if there isn't already a font chosen then the default isn't any worse than anything else. |
This is what I get after one keystroke with that diff. @db48x IDK if that's tracked in a separate issue or relevant to this particular codepath happening 'pre main menu'. |
I wouldn’t make this change here in imgui.cpp. Instead, make sure that
From your screenshot you are using ImTui, which either has problems or we’re using incorrectly. Or both! I haven’t looked into it yet, but I believe a separate bug has already been filed. Oh, and two other people have mentioned that their menus also show up blank until they press a key or get the mouse involved, but I haven’t even been able to reproduce that. |
Yes, sorry. The messy menu was from imtui (I thought maybe the crash was im_gui_ related). But it happens in both builds. And it only renders okay in imgui. I will play with reordering the fontloader call, thanks for that tip. |
So Line 781 in 2db2a2e
select_language is on line 854, which is well after that. So either the init call is happening too early (?) or something else is up.
|
|
and then start and end a frame so that things work correctly. Fixes CleverRaven#75818
Describe the bug
Freshly downloaded experimental crashes on launch
Attach save file
N/A
Steps to reproduce
Expected behavior
Game would launch.
Screenshots
No response
Versions and configuration
Void Linux, build x64-2024-08-19-0749, tiles
Can't get to the main menu and didn't change anything manually prior to launch
Additional context
crash.log
PS. Before this had a build from last month, it works fine
The text was updated successfully, but these errors were encountered: