Skip to content

ImGui::InputText freezes in v1.87+ in a Win32 IME ImmAssociateContextEx() call #5535

Open
@BullyWiiPlaza

Description

@BullyWiiPlaza

Version/Branch of Dear ImGui:

Version: v1.88
Branch: https://github.com/Microsoft/vcpkg/blob/master/ports/imgui/portfile.cmake

Back-end/Renderer/Compiler/OS

Back-ends: imgui_impl_win32.cpp + imgui_impl_dx11.cpp
Compiler: MSVC
Operating System: Windows 11 Pro

My Issue/Question:

I'm using ImGui::InputText() to create text fields. Since v.187 of Dear ImGui clicking into text fields freezes the entire application (no crash but "stopped responding"). The bug does not occur with v1.86 and the bug still occurs in v1.88.

Standalone, minimal, complete and verifiable example:

std::string input_text;
ImGui::Begin("Example Bug");
ImGui::InputText("My text field", &input_text);
ImGui::End();

I researched but didn't find a clear solution or workaround (besides downgrading to v1.86). I believe my issue is similar to #4972 and #5264. How exactly would you debug into ImGui::InputText() getting stuck if needed? ImGui::InputText() takes me to the imgui_stdlib.h file and not the .cpp file and input texts are probably handled somewhere else. What exactly changed between those versions which could cause this regression? Thanks in advance for taking a look into this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions