Closed ckyb closed 4 months ago
I can reproduce the crash, but you should see an error like:
ERROR: IM_ASSERT table != NULL && "Need to call TableSetupColumn() after BeginTable()!" (imgui/imgui_tables.cpp:1528)
If you don't, that's a bug. I admit I haven't really tested on Linux at all.
You want to check that BeginTable returns true before adding stuff to the table. Like:
if ImGui.BeginTable("Table1", 2):
ImGui.TableSetupColumn("hello")
ImGui.TableSetupColumn("world")
ImGui.TableHeadersRow()
ImGui.EndTable()
I didn't see an error, but that was indeed the cause of the crash - the table needs to be wrapped in an if block to ensure setting up the table can succeed (like your example).
Closing this issue as operator error - thank you for pointing that out!
When using a table, minimizing the imgui window causes a crash with no debug log or stack trace.
Versions
Minimal Reproduction