GNOME Bugzilla – Bug 726148
QtQuick app crash in dynamic qml object(VideoItem) creation
Last modified: 2018-05-04 11:41:12 UTC
The qml example in qt-gstreamer works well in my Ubuntu desktop and ARM OMAP4. But crash happened in my QtQuick app: 1. I use "mediaVideo = Qt.createComponent("./VideoItem.qml")" to create an VideoItem object in qml, that qml file contains almost the same code as example; 2. Once the video finish playing, the VideoItem will automatically destroy itself, using: "videoItem.destroy()" 3. If another video file ia available in my playlist, then repeat step 1 crash at here, gdb report that "segmentation fault", from libQtQuick.so PS: qt-gstreamer source code from git in Feb-23, 2014
Can you attach a testcase and the backtraces of all threads after the crash?
Created attachment 271579 [details] whole qt project which reproduce this crash. 1. pls look at the pro file to make sure the include path is right 2. add a video file in: ~/media/videos/pnews1.mp4 (optional) 3. or modify a json file in: <project dir>/qml/quicktest0/json_a.js 4. VideoItem is in: <project dir>/qml/quicktest0/VideoItem.qml 5. dynamic object creation in: <project dir>/qml/quicktest0/ICPlayer.qml crash info: 1. segmentation fault, from QSGRenderThread, libQt5Quick.so 2. Disassembler: 0xb7cab943 <+0x0000> mov 0x14(%eax),%edx
(In reply to comment #1) > Can you attach a testcase and the backtraces of all threads after the crash? whole project attached
Thank you for reporting this bug. Unfortunately, qt-gstreamer is unmaintained and there is no chance that this problem will get fixed, if it's actually a qt-gstreamer bug. As an alternative, you may want to use qmlglsink (from gst-plugins-good) to integrate GStreamer with QML.