-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
ImFont::RenderText() issue #6132
Comments
Intuitively I imagine ccf94e2 could be at fault because it is a very-recent change that align with some of the elements of that issues. If you repro more details would be useful. Or: was text-wrapping active? that's to rule out whole chunks of code including bits that have changed. |
I can now repro. This happens with Perhaps |
Indeed the code path in my previous comment is executed and that is how |
|
Thank you, I can repro with |
Pushed fix 867bdbe Interestingly, it would trigger with Thank you! |
Version/Branch of Dear ImGui:
Version: 1.89.3
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: custom / erhe
Compiler: VS 2022 17.4.4
Operating System: Windows 10
My Issue/Question:
I encountered
IM_ASSERT_PARANOID()
failure inImDrawList::PrimReserve()
due to negative arguments being passed fromImFont::RenderText()
. This was caused bys
pointing to one pasttext_end
.text_begin
pointed toMaterial
andtext_end
looked valid. I am not sure exactly what path resulted ins
pointing totext_end + 1
. I have not been able to repro, so this may be some corner case that is not easy to hit.The text was updated successfully, but these errors were encountered: