-
Notifications
You must be signed in to change notification settings - Fork 59
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
Program segfault in IDTreat::id() #364
Projects
Comments
This seems to get solved with explicit deinitialization. We experienced similar errors and had to adapt our examples as well (see #358). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've finally updated my code to the current master. I've removed all
ref_ptr
in my code, and instead usedstd::unique_ptr
and some customScopedPointer
elsewhere or plain instance.However, when the program is closing, it's crashing with this callstack:
Typically, I'm using GLFW for getting the GL context, and it's destroyed when the exit handler are runnings (please notice that the lifetime of the Application singleton instance is longer than main, since it's a static object, so it's being destructed when the exit handlers are running) if it's of any help.
Further debugging gives:
Clearly, the program does not exist anymore but the shader still do.
I've created the Shader like this in my code:
It seems that the program is destructed before the shader, and this breaks the current code that expect the program to outlive the shader.
The text was updated successfully, but these errors were encountered: