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
I have a table that is only 2 columns. One is full of Tree Nodes, and the other is just a child window with a text inside. When i open some of them, just to take enough space to scroll down, and when i do so, the program crashes and gives me an error for accessing NULL* in EndTable()
if (ImGui::BeginChild("Path Viewer"))
{
ImGui::Text("TEST");
ImGui::EndChild();
}
Your error is here, both Begin() and BeginChild() requires their respective End function to always be called.
What is happening is that when the child function is entirely out of view it is returning false, and there you are then not calling EndChild(), and effectively the EndTable() is called within the child.
So, it is mistake in your code. There is an assert to catch it at the top of the EndTable() function.
It is extremely important that you never write imgui code with IM_ASSERT() disabled. If calling IM_ASSERT(false) doesn’t immediately crash/break you into a debugger, you should get it fixed otherwise you are using the lib without error checking.
Pushed 1d96282 "Turned common EndTable() and other TableXXX functions fail cases into recoverable errors."
This will more clearly print the current location (in your case it would state that you are inside "Path viewer") which is likely to help narrowing down that issue.
Version/Branch of Dear ImGui:
Version 1.91.6, Branch: docking
Back-ends:
imgui_impl_XXX.cpp + imgui_impl_XXX.cpp
Compiler, OS:
Windows 10 + MSVC2022
Full config/build information:
No response
Details:
I have a table that is only 2 columns. One is full of Tree Nodes, and the other is just a child window with a text inside. When i open some of them, just to take enough space to scroll down, and when i do so, the program crashes and gives me an error for accessing NULL* in EndTable()
Screenshots/Video:
Untitled.design.mp4
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: