-
-
Notifications
You must be signed in to change notification settings - Fork 10.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
Nav crashes When Alt Clicking The Main GLFW Window #2609
Comments
…ndow with a menu at the same frame as clearing the focus. This was in most noticeable in some back-ends with emits key release events when focusing another viewport. (#2609)
Very interesting bug. It only happens when the first window has a menu bar and with the GLFW/SDL back-ends because:
Now fixed! Thanks for the bug report! |
I just got a similar crash in a different context. g.NavWindow == NULL in window->DC.NavLayerActiveMaskNext |= window->DC.NavLayerCurrentMask; call stack:
I was hiding the unique window with a KB shortcut (i.e. it didnt enter the ImGui::Begin() of my dialog but crashes on the dummy one apparently). |
@magicfoo Do you remember exactly how to repro this? I'm trying to track all code paths but haven't found a possible crash yet. (But code has changed yet, and there are asserts early on, nowadays I guess you are more likely to assert in If this happen to you or anyone could you tell me the values of
Thanks! |
Found the bug! I checked out July 10, 2020 version (~1.77) and went through every code paths and possible flow I could find.
Researched this further and realized this was fixed already by 25679a4 (March 2021) |
Version: Latest
Branch: docking
Back-ends: imgui_impl_GLFWcpp + imgui_impl_OPENGL.cpp
Operating System: Windows 10
The example app crashes when you interact in any way with an IMGUI window outside of the GLFW window, and then follow that interaction with an ALT + LEFT MOUSE CLICK on the GLFW window. Just move the demo window next to the glfw window, click the demo window anywhere, then alt click the glfw window.
I'm also using this branch for a work project and the same crash is happening there.
Call Stack:
->ImGui::NewFrame();
->NavUpdate()
->SetNavID(unsigned int id, int nav_layer)
-> g.NavWindow->NavLastIds[nav_layer] = id;
g.NavWindow seems to be NULL.
Same crash happens on both OpenGL examples but doesn't happen on the DirectX examples.
The text was updated successfully, but these errors were encountered: