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 785714 - gst_poll_read_control: assertion 'set != NULL' failed when running many pipelines one after another
gst_poll_read_control: assertion 'set != NULL' failed when running many pipel...
Status: RESOLVED DUPLICATE of bug 762552
Product: GStreamer
Classification: Platform
Component: dont know
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-02 03:11 UTC by Mathieu Duponchelle
Modified: 2017-08-03 08:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Reproduces the reported issue (1.93 KB, text/x-c)
2017-08-02 03:11 UTC, Mathieu Duponchelle
Details
Trace obtained with G_DEBUG=fatal-criticals gdb --args ./build/subprojects/gst-plugins-bad/tools/mosaic_db/make_mosaic_db file:///usr/share/shotwell/icons/shotwell-street.jpg (7.68 KB, text/plain)
2017-08-02 03:13 UTC, Mathieu Duponchelle
Details

Description Mathieu Duponchelle 2017-08-02 03:11:18 UTC
Created attachment 356759 [details]
Reproduces the reported issue

Building and running the attached program with an image as the URI (so that the pipelines end as fast as possible) should eventually reproduce the issue, not sure what's happening but it's pretty bad, I'll attach a stacktrace to show where the assertion pops
Comment 1 Mathieu Duponchelle 2017-08-02 03:13:24 UTC
Created attachment 356760 [details]
Trace obtained with G_DEBUG=fatal-criticals gdb --args ./build/subprojects/gst-plugins-bad/tools/mosaic_db/make_mosaic_db file:///usr/share/shotwell/icons/shotwell-street.jpg
Comment 2 Sebastian Dröge (slomo) 2017-08-02 08:15:04 UTC
This is probably caused by something leaking file descriptors. You're leaking for example the bus in your testcase, which owns a file descriptor. And possibly the bus watch.

Does that solve it?
Comment 3 Nicolas Dufresne (ndufresne) 2017-08-02 12:05:06 UTC
The bus is an autptr, it's not leaked. But to be safe, just run with the leak tracer.
Comment 4 Tim-Philipp Müller 2017-08-02 12:24:22 UTC
Perhaps check the file descriptor thesis by running lsof -p $PID regularly and see if the number increases or not.
Comment 5 Sebastian Dröge (slomo) 2017-08-02 12:54:39 UTC
And that's exactly why g_autoptr is not a good idea ;)

Try removing the bus watch nonetheless.
Comment 6 Mathieu Duponchelle 2017-08-03 01:26:50 UTC
> Try removing the bus watch nonetheless.

Thanks, that was the issue, sorry about the noise :)
Comment 7 Sebastian Dröge (slomo) 2017-08-03 08:01:24 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=762552
Comment 8 Sebastian Dröge (slomo) 2017-08-03 08:01:32 UTC

*** This bug has been marked as a duplicate of bug 762552 ***