InputTextMultine crash (when using ImGuiTabBarFlags_AutoSelectNewTabs and ImGuiTabItemFlags_SetSelected) #4522
Replies: 4 comments
-
Can you share a stack trace of the crash? Your code does not crash for me. |
Beta Was this translation helpful? Give feedback.
-
I haven't done this before so I hope this is correct.
Also so I just realized something weird, that code doesn't cause a crash if I put it in other places in my project (sorry about that) but only in the spot I'm trying to use it. Additionally I can still reproduce it by having both flags set, with either or I don't get a crash. I can share a non simplified version of my code for more context if you would like |
Beta Was this translation helpful? Give feedback.
-
OK so this has nothing to do with Tabs. |
Beta Was this translation helpful? Give feedback.
-
I dug more and you're correct but this confuses me even further because it should be set for the input text. Here is a more detailed version of what I am doing, I tested this and it does recreate the crash
|
Beta Was this translation helpful? Give feedback.
-
Version: 1.84 WIP
Branch: Docking
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Operating System: Windows 10, 19042
Issue:
When a tab bar has ImGuiTabBarFlags_AutoSelectNewTabs and a new tab is added with the ImGuiTabItemFlags_SetSelected flag it causes a crash
To reproduce:
Beta Was this translation helpful? Give feedback.
All reactions