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 657493 - Using TagList results in segmentation faults
Using TagList results in segmentation faults
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-sharp
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-27 10:53 UTC by Age Bosma (IRC: Forage)
Modified: 2014-02-22 21:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example application (1.50 KB, text/x-csharp)
2011-08-27 10:53 UTC, Age Bosma (IRC: Forage)
Details

Description Age Bosma (IRC: Forage) 2011-08-27 10:53:39 UTC
Created attachment 194910 [details]
Example application

Hi,

Most actions performed on a TagList retrieved from PlayBin2.GetVideoTags() result in segmentation faults, crashing the application. Results have become "worse" since the 0.9.2 release, compared to latest HEAD.

Attached you'll find an example application. For testing I'm using a m4v/h.264 video file.

Where line 49 (TagList.IsEmpty) did not raise an error in 0.9.2, it now gives me "GStreamer-CRITICAL **: gst_tag_list_is_empty: assertion `GST_IS_TAG_LIST (list)' failed"

Where line 50 (TagList.Size) did not raise an error in 0.9.2, it now gives me a segmentation fault.

In both 0.9.2 and HEAD a segmentation fault occurs at the foreach loop in line 51, not even getting to 52.

Let me know if you need any more information.
Comment 1 Sebastian Dröge (slomo) 2011-08-31 12:37:15 UTC
I can confirm that. gst_tag_list_is_empty() gets a random pointer passed, which really shouldn't happen.
Comment 2 Vincent Penquerc'h 2011-09-09 13:39:19 UTC
Can this be reproduced with any C or python code ?
Comment 3 Sebastian Dröge (slomo) 2011-09-09 14:19:49 UTC
No, it's a bug in the bindings or glib-sharp
Comment 4 Sebastian Dröge (slomo) 2014-02-12 14:39:23 UTC
Is this still a problem with the 1.x based gstreamer-sharp bindings?
Comment 5 Age Bosma (IRC: Forage) 2014-02-16 17:42:39 UTC
I wanted to give it a try but it appears that the 1.x based gstreamer-sharp bindings don't cover BasePlugins and CorePlugins yet. That is, there's no such namespace and it fails to find FakeSink.
I took the latest master from http://cgit.freedesktop.org/gstreamer/gstreamer-sharp/ to take for a spin.

Am I overlooking something?
Comment 6 Age Bosma (IRC: Forage) 2014-02-22 21:23:28 UTC
Forget what I asked in comment #5, I did not expect the new bindings to work that different compared to the old.

1.x based gstreamer-sharp bindings work like a charm. Non of the issues mentioned in the OP did appear.