-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Help! Program crashes after ImGui panel is dragged slightly off screen #7414
Comments
Hello! In the future you should include a stack trace from the crash, otherwise there usually isn't enough info to help you debug. It's shown in the call stack window of Visual Studio when the debugger stops your program. It'll look something like this: (If you don't see this window, go to Debug > Windows > Call Stack) That being said, your render code isn't quite right. You're getting a crash because you're trying to render platform windows before Additionally you're missing the logic for backing up and restoring the OpenGL context, see the imgui/examples/example_glfw_opengl3/main.cpp Lines 194 to 203 in adcc321
|
Thank you David for your answer. This error would normally be caught in IM_ASSERT(g.FrameCountEnded == g.FrameCount && "Forgot to call Render() or EndFrame() before UpdatePlatformWindows()?");
IM_ASSERT(g.FrameCountPlatformEnded < g.FrameCount); So it means @kaitabuchi314 that your assert are disabled, and me adding more checks/asserts won't help. To facilitate your use of dear imgui you should make sure that failing asserts are visible to do. By default Good luck! |
Version/Branch of Dear ImGui:
docking
Back-ends:
imgui_impl_opengl3.cpp + imgui_impl_glfw.cpp
Compiler, OS:
Windows 10
Full config/build information:
No response
Details:
My ImGui app crashes after I drag a panel offscreen. It says Draw_data is nullptr.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: