Closed xiaodaxia-2008 closed 8 months ago
Seems similar to issue #10 , a test could be removing the workaround for a Coin issue fixed in svn r12818 in the QuarterWidgetP::removeFromCacheContext() method.
Regards Giampiero
sorry, but I'm still confused about how to fix it?
Is the suggestion in #10 to comment the removeFromCacheContext()
in the destructor ?
It is passed really a lot of time from when I opened the issue, and at present I don't have any mercurial repo from which reconstruct my conclusions about.
Giving a look to the source I think to remember that the mercurial commit 30d08ea consisted solely of line 195 on QuarterWidgetP.cpp.
// fetch the cc_glglue context instance as a workaround for a bug fixed in Coin r12818
(void) cc_glglue_instance(context->id);
You can try to comment it and try it out but - as already mentioned at the time - it was - and still is - not clear to me why this commit introduced the regression.
Regards Giampiero
Looks like this issue started to occur when using Qt5, as I checked with Qt 4.8.7 and everything was fine. I debugged the application and found out that the QGLContext of the QuarterWidget is reset when the call to QApplication exec() returns. Then in the QuarterWidgetP destructor the calls widget->makeCurrent() and widget->doneCurrent() crash as there is a null pointer dereference inside. Will provide a fix soon.
I got the following error when running a basic
minimal.cpp
.the source code of
minimal.cpp
isCould anyone know something about how to fix it? Thanks very much.