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 763174 - The geometry must never be set to 0 once the node is added to the SG
The geometry must never be set to 0 once the node is added to the SG
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: qt-gstreamer
1.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-06 13:47 UTC by Niels Ole Salscheider
Modified: 2016-04-23 08:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (2.94 KB, patch)
2016-03-06 13:47 UTC, Niels Ole Salscheider
none Details | Review

Description Niels Ole Salscheider 2016-03-06 13:47:56 UTC
Created attachment 323197 [details] [review]
Proposed patch

The geometry must never be set to 0 once the node is added to the SG.

The application can crash otherwise.
Comment 1 Diane Trout 2016-03-21 19:01:53 UTC
Qt Docs suggest geometry is NULL by default.

http://doc.qt.io/qt-5/qsgbasicgeometrynode.html#geometry

Instead of introducing a new variable what about removing the explicit call setGeometry(0) and just testing for 0

Also I wonder if changeFormat should be calling markDirty?
http://doc.qt.io/qt-5/qsggeometrynode.html#setMaterial

Diane
Comment 2 Niels Ole Salscheider 2016-03-21 21:02:03 UTC
Yes, the geometry is NULL by default, but the node is not added to the scene graph yet. But it has to be set to something different before adding it and it must never be NULL once it is added.

The geometry has to be set every time we switch between a black texture (when no video is played) and between the video texture because it has different attributes.
Without my patch, we set the geometry to 0, so that we can test for 0 and create a new geometry when necessary. But this crashes and so I had to introduce a new variable to catch that case.
Comment 3 Diane Trout 2016-04-21 06:12:12 UTC
Tested and merged. Yes it works.

Probably need to learn how to make a release soon.

However I was able to find some more bugs... though probably in call-ui itself.
Comment 4 Tim-Philipp Müller 2016-04-22 19:17:15 UTC
Can this be closed then, or is there anything else outstanding to fix the bug? :)

commit af4d94de093b114c5371bda522ec11075ead60ea
Author: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Date:   Sun Mar 6 13:50:03 2016 +0100

    The geometry must never be set to 0 once the node is added to the SG
    
    The application can crash otherwise.
Comment 5 Niels Ole Salscheider 2016-04-23 08:02:19 UTC
Sure.