When calling close() or deleteLater() on the QQuickView object the app results in a crash, e.g. see the follosing code:
qDebug() << "start";
qmlView->close();
// CRASH HERE
qDebug() << "close() invoked";
qmlView->deleteLater();
qDebug() << "deleteLater() invoked";
Disposing the object is needed because QT doesnt allow to mix EGL and non-EGL windows, it produces this error "EGLFS: OpenGL windows cannot be mixed with others" and I need to delete the QML before showing a normal QMainWindow.
I tried to debug with gdb but it doesnt show very much, it shows something liek this:
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
Core was generated by `./testgui5'.
Program terminated with signal 11, Segmentation fault.
#0 0xb0ed02d4 in ?? () from /usr/local/qt-5.4.1/plugins/mediaservice/libopenmaxilmediaplayer.so
(gdb) bt
#0 0xb0ed02d4 in ?? () from /usr/local/qt-5.4.1/plugins/mediaservice/libopenmaxilmediaplayer.so
#1 0xecb2f278 in ?? ()
#2 0xecb2f278 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
When calling close() or deleteLater() on the QQuickView object the app results in a crash, e.g. see the follosing code:
Disposing the object is needed because QT doesnt allow to mix EGL and non-EGL windows, it produces this error "EGLFS: OpenGL windows cannot be mixed with others" and I need to delete the QML before showing a normal QMainWindow.
I tried to debug with gdb but it doesnt show very much, it shows something liek this: