thread ccglwindow error

Any question about the main GUI application (frontend)
Post Reply
Yeyan
Posts: 7
Joined: Wed Jul 27, 2016 6:58 am

thread ccglwindow error

Post by Yeyan »

Hello:

in the version 2.6, ccglwindow has macro THREADED_GL_WIDGET, it likes Threaded GL rendering, but when i run it, it errored at "setContext(glContext) " in "initialize()" like follow:
ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread c0a528. Receiver '' (of type 'CCGLWindow') was created in thread c76850"

how can i use the thread to render?

thank you!
daniel
Site Admin
Posts: 7711
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: thread ccglwindow error

Post by daniel »

Well, it was just for a test (I'm not sure it even worked) and I never had the time to finish it. Especially since I believe Qt changed a lots of things by then and its probably deprecated.

You should use the latest version of CC if possible (2.9) and also look at Qt's documentation regarding threaded rendering (especially with QOffscreenSurface - http://doc.qt.io/qt-5/qoffscreensurface.html)
Daniel, CloudCompare admin
Yeyan
Posts: 7
Joined: Wed Jul 27, 2016 6:58 am

Re: thread ccglwindow error

Post by Yeyan »

OK,thank you! I'll try it!
Post Reply