-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Addcallback, assert Size > 0
?
#4528
Comments
I'm not getting a crash with your provided repro. Can you provide a call stack of the crash? Also what version of Dear ImGui are you using? |
I'm using the github master branch. It's not a crash, |
Hang on, i just realised it might not be |
#1 0x00000000004d08a1 in ImVector::front (this=0x27bf768) at v:/sw/imgui/imgui.h:1727 |
Yep, sorry my bad. this is a sokol problem.
change
|
Edit: Looks like you beat me to it. Yeah, this is a bug with the Sokol backend: This is unconditionally calling imgui/backends/imgui_impl_opengl3.cpp Line 427 in 17a7084
|
Yes indeed. Thanks for helping on this. I've posted by changes to the sokol repo in case they want them. It shouldnt call |
No problem!
In the future you should really provide context on why the changes are necessary. It's not fair to floooh to expect them to read your mind on why (Also you can probably safely mark this issue as closed.) |
My bad, this is now fixed in sokol_imgui.h. Many thanks for investigating the problem! |
I'm having a problem with
AddCallback
. Not sure if i'm doing something wrong;Works;
Fails:
Works;
When it fails, i get assert
Size > 0
fromimgui.h
ImVector::front
.Adding the bogus "hello!" text fixes it.
Is this something to do with the child draw list being otherwise empty, should it be doing this, or should i be doing something different?
Thanks for your help.
The text was updated successfully, but these errors were encountered: