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 get IM_ASSERT("Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries."), in ErrorCheckUsingSetCursorPosToExtendParentBoundaries() function, without an apparent motivation (I believe).
This problem seems to occur opening (initially closed) BillboardImGui::TreeNodeEx (which contains some other ImGui::TreeNodeEx), and only when the CursorPos is outside of "visible" context.
In the following example the trouble happens is in the ColorsImGui::TreeNodeEx (with ColorMap), inside Billboard:
This is the code where it happens: I removed any unnecessary part to simplify debug
This means the last action in a window is moving cursor position beyond contents boundaries and not submitting an item.
The assert seems correct and describes that.
I don't see such pattern in the code you pasted, and cannot repro with the code you pasted. Are you 100% sure that this exact code you pasted triggers the issue in EndChild() ?
Can you try making a minimal standalone repro that I can paste in main.cpp or imgui_demo.cpp ?
Version/Branch of Dear ImGui:
Version: 1.89 release
Back-end/Renderer/Compiler/OS
Back-ends: GLFW + OpenGL (with GLAD loader)
Compiler: CLang 15.4 - gcc 12.2.1 - VS2019
Operating System: Linux (X11) & Windows 11
My Issue/Question:
I get
IM_ASSERT("Code uses SetCursorPos()/SetCursorScreenPos() to extend window/parent boundaries.")
, inErrorCheckUsingSetCursorPosToExtendParentBoundaries()
function, without an apparent motivation (I believe).I premise that I have read #5548
This problem seems to occur opening (initially closed) Billboard
ImGui::TreeNodeEx
(which contains some otherImGui::TreeNodeEx
), and only when the CursorPos is outside of "visible" context.In the following example the trouble happens is in the Colors
ImGui::TreeNodeEx
(with ColorMap), inside Billboard:This is the code where it happens: I removed any unnecessary part to simplify debug
If it can be of interest...
For debugging I bypassed/commented IM_ASSERT...
... and i noticed this values in
window->DC
:First time (where it would be blocked in IM_ASSERT)
Next pass
(both acquired from call
ImGui::EndChild()
, in previous code)If you need more tests, i'll be glad to do them.
Adding...
Apart from the "assertion" in Debug mode, I found no apparent problem or malfunction in Release mode.
Thank you in advance.
The text was updated successfully, but these errors were encountered: