After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726148 - QtQuick app crash in dynamic qml object(VideoItem) creation
QtQuick app crash in dynamic qml object(VideoItem) creation
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: qt-gstreamer
git master
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-12 04:00 UTC by joey.chen
Modified: 2018-05-04 11:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
whole qt project which reproduce this crash. (1.30 MB, application/gzip)
2014-03-12 08:50 UTC, joey.chen
Details

Description joey.chen 2014-03-12 04:00:26 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
Comment 1 Sebastian Dröge (slomo) 2014-03-12 07:36:08 UTC
Can you attach a testcase and the backtraces of all threads after the crash?
Comment 2 joey.chen 2014-03-12 08:50:00 UTC
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
Comment 3 joey.chen 2014-03-12 09:04:27 UTC
(In reply to comment #1)
> Can you attach a testcase and the backtraces of all threads after the crash?

whole project attached
Comment 4 George Kiagiadakis 2018-05-04 11:41:12 UTC
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.