Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt 3d Basic Shapes Example Cpp Fail Linux
boulichissime last edited by
I recently downloaded Qt 5.8 Open Source to test the Qt3D API under a Linux Ubuntu 16.04 LTS (Linux x64), kernel 4.4.0-67,
and I have problems running the Basic Shapes CPP code sample.
The example compiles and runs well, but when I stop the program normally by
exiting the app, it triggers a SIGABRT :
1 __GI_raise raise.c 54 0x7ffff523c428 2 __GI_abort abort.c 89 0x7ffff523e02a 3 __gnu_cxx::__verbose_terminate_handler() 0x7ffff587584d 4 ?? 0x7ffff58736b6 5 std::terminate() 0x7ffff5873701 6 __cxa_pure_virtual 0x7ffff587423f 7 QOpenGLContext::makeCurrent(QSurface *) 0x7ffff63ec3c7 8 ?? 0x7ffff7802582 9 ?? 0x7ffff7803928 10 Qt3DRender::Render::Renderer::doRender() 0x7ffff77a2f1d 11 Qt3DRender::Render::Renderer::render() 0x7ffff779c091 12 ?? 0x7ffff779bdca 13 ?? 0x7ffff5c13549 14 start_thread pthread_create.c 333 0x7ffff46396ba 15 clone clone.S 109 0x7ffff530d82d
My graphic card is a NVIDIA Geforce GTX 690, with NVIDIA proprietary drivers version 367.57.
I'm using xfce4 desktop system under a lightdm display manager. I tried flashback
gnome session as well, without any good result.
I had similar ABRT / stack trace while trying to integrate the Qt3DExtras::Qt3DWindow inside a widget app
using QWidget::createWindowContainer. I think it's related to this. Do you have any
suggestions or do you know any way to make this piece of code work correctly (without detaching
the Qt3DWindow) ?
Thanks for your help,