-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
SIGABRT: Reading a scroll causes crash in spellbook_callback::refresh() -> ImGui:BeginChildEx #78476
Comments
Issue first appears in release Cataclysm-DDA experimental build 2024-11-28-1212 #78144 which included change of...
|
Doesn't crash for me on Windows MSVC build, so it could be Linux-specific (and because MSVC is less strict). Crash is on the line 5955 of IM_ASSERT((child_flags & ~ImGuiChildFlags_SupportedMask_) == 0 && "Illegal ImGuiChildFlags value. Did you pass ImGuiWindowFlags values instead of ImGuiChildFlags?"); Thus most probably following patch should help: diff --git a/src/magic.cpp b/src/magic.cpp
index 96038ff396..a5e5915251 100644
--- a/src/magic.cpp
+++ b/src/magic.cpp
@@ -2529,7 +2529,7 @@ class spellcasting_callback : public uilist_callback
ImGui::SameLine( 0.0, -1.0 );
ImVec2 info_size = ImGui::GetContentRegionAvail();
info_size.y -= ImGui::GetTextLineHeightWithSpacing();
- if( ImGui::BeginChild( "spell info", info_size, false,
+ if( ImGui::BeginChild( "spell info", info_size, ImGuiChildFlags_None,
ImGuiWindowFlags_AlwaysVerticalScrollbar ) ) {
if( menu->previewing >= 0 && static_cast<size_t>( menu->previewing ) < known_spells.size() ) {
display_spell_info( menu->previewing );
@@ -3194,7 +3194,7 @@ void spellbook_callback::refresh( uilist *menu )
{
ImGui::TableSetColumnIndex( 2 );
ImVec2 info_size = ImGui::GetContentRegionAvail();
- if( ImGui::BeginChild( "spellbook info", info_size, false,
+ if( ImGui::BeginChild( "spellbook info", info_size, ImGuiChildFlags_None,
ImGuiWindowFlags_AlwaysAutoResize ) ) {
if( menu->selected >= 0 && static_cast<size_t>( menu->selected ) < spells.size() ) {
draw_spellbook_info( spells[menu->selected] );
|
Please confirm whether it helped or not. |
I didn't get the crash on Windows either. |
Unfortunately it still crashed for me the same way using cdda-experimental-2024-12-11-0835 653a131 [64-bit] on linux. Since it is not happening on windows if needed I can re-setup my build environment and run debug code for you if you want.
|
Confirmed this fixed my issue. Thank you. |
Describe the bug
Reading the the scroll in starting tower causes crash.
Attach save file
Grapevine-trimmed.tar.gz
Steps to reproduce
Expected behavior
Bring up window showing scroll contents to allow learning if desired.
Screenshots
No response
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
Portal Storms Ignore NPCs [personal_portal_storms],
Slowdown Fungal Growth [no_fungal_growth],
Magiclysm [magiclysm],
SpeedyDex [speedydex],
Stats Through Skills [StatsThroughSkills]
]
Additional context
grapevine-crash-debug.zip
The text was updated successfully, but these errors were encountered: