Skip to content

Crash on Ctrl+Tab for DockSpaceOverViewport with PassthruCentralNode flag #4792

@ilovexyz

Description

@ilovexyz

Version/Branch of Dear ImGui:

Version: 1.86 WIP (18516)
Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler: MSVC
Operating System: Windows 10

My Issue/Question:

I want to use the ImGui::DockSpaceOverViewport function in my application, but it will cause crash when pressing Ctrl+Tab navigation key, i wonder if this is a bug or i didn't understand the usage of dockspace.

Screenshots/Video

Step to reproduce the issue based on the example_glfw_opengl3:

exception

Code crashes here:

exception

Standalone, minimal, complete and verifiable example:

Just add the following code to the main.cpp of example_glfw_opengl3 will reproduce the issue.

// show dock
ImGui::DockSpaceOverViewport(ImGui::GetMainViewport(), ImGuiDockNodeFlags_PassthruCentralNode);

code

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions