You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a multiline input ?
Probably the same as #9007 already fixed.
Victor you often open bug reports without providing information requested by guidelines (eg: a callstack) and keep making me guess. Please make a extra effort as provided relevant information. Thank you.
Thanks! That narrows it down already. Ideally try to come up with a repro (e.g. InputText value and actions performed)
Should aim to fix this before next release.
Activity
ocornut commentedon Nov 15, 2025
It is a multiline input ?
Probably the same as #9007 already fixed.
Victor you often open bug reports without providing information requested by guidelines (eg: a callstack) and keep making me guess. Please make a extra effort as provided relevant information. Thank you.
sonoro1234 commentedon Nov 17, 2025
Sorry, I am having problems with debug: after the assert the debugger has no stack:
Still investigating
ocornut commentedon Nov 17, 2025
Maybe simply update and see if the fix above is the same as your issue.
sonoro1234 commentedon Nov 17, 2025
No luck
ocornut commentedon Nov 17, 2025
Can't help you without more information.
ocornut commentedon Nov 17, 2025
Try with this and report all log output for the last two frames prior to the assert triggering:
imgui-4050cf9-debug for 9069.patch
sonoro1234 commentedon Nov 17, 2025
patch still not used.
Compiled and debuged on MSVC 2022.
This is the call stack:
text_end_display is one more than text_end
ocornut commentedon Nov 17, 2025
Thanks! That narrows it down already. Ideally try to come up with a repro (e.g. InputText value and actions performed)
Should aim to fix this before next release.
sonoro1234 commentedon Nov 17, 2025
It happens in a quite complex custom widget and happens sparsely.
I am applying the patch to report
sonoro1234 commentedon Nov 17, 2025
Thats it:
ocornut commentedon Nov 17, 2025
What does the custom code looks like ?
sonoro1234 commentedon Nov 18, 2025
This is the custom control, translated from @pixtur C# #3494
It is used as:
I tried to make a simpler reproducer with
But It gives another assert when mouse clicking in inputText:
sonoro1234 commentedon Nov 18, 2025
With first code:
ocornut commentedon Nov 18, 2025
Well that seems like exactly the same assert, why do you say it is a "another assert"? ?
I can now repro something by swapping text contents in the _ReadOnly field to make it shorter than current selection:
Select text then press F1.
I'll work from this.
ocornut commentedon Nov 18, 2025
Pushed a fix 9afc62d (please confirm).
InputText: Fixed an assert when using ImGuiInputTextFlags_ReadOnly an…
sonoro1234 commentedon Nov 18, 2025
vs
I will check
ocornut commentedon Nov 18, 2025
The later assert is the one added by the patch in an earlier spot, and is the same as you reported in #9069 (comment)
sonoro1234 commentedon Nov 18, 2025
I cant repro with this because when text is selected F1 is not detected
My simple reproducer does not assert with the fix
ocornut commentedon Nov 18, 2025
Why wouldn't it? It's using ImGui::IsKeyPressed() which doesn't do any ownership check.
I'll assume this is generally fixed, if it's not please let me know.
InputText: Fixed an assert when using ImGuiInputTextFlags_ReadOnly an…
InputText: Fixed an assert when using ImGuiInputTextFlags_ReadOnly an…