QUItCoding / qnanopainter

Library for implementing OpenGL accelerated Qt (Quick) C++ UI components.
http://quitcoding.com
Other
405 stars 79 forks source link

Crash on application exit #62

Closed nikolaseu closed 3 years ago

nikolaseu commented 3 years ago

I'm getting a crash on application exit, on this line: https://github.com/QUItCoding/qnanopainter/blob/963870484151ebe6ca9225e0e73588abb7e564e0/libqnanopainter/qnanopainter.cpp#L171

You guys are using a Q_GLOBAL_STATIC for the instance so destruction order is not really something we can control: https://github.com/QUItCoding/qnanopainter/blob/963870484151ebe6ca9225e0e73588abb7e564e0/libqnanopainter/qnanopainter.cpp#L32

Is it possible this is just QOpenGLContext::currentContext() being used after Qt has possibly already "deinitialized" itself?

This is a QtQuick application, using Qt 5.15.2.

nikolaseu commented 3 years ago

More info:

image

nikolaseu commented 3 years ago

It seems it was caused by the protection/encryption product we're using