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 723331 - a crash while trying to port from gst 0.10
a crash while trying to port from gst 0.10
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: dont know
1.2.2
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 723332 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-01-31 01:42 UTC by Rafał Mużyło
Modified: 2014-05-18 10:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
my attempt of 1.0 port (19.72 KB, patch)
2014-01-31 01:56 UTC, Rafał Mużyło
none Details | Review
gdb output upon crash (2.33 KB, text/plain)
2014-01-31 01:58 UTC, Rafał Mużyło
  Details
gst-plugins-good patch (2.34 KB, patch)
2014-01-31 21:40 UTC, Rafał Mużyło
committed Details | Review

Description Rafał Mużyło 2014-01-31 01:42:36 UTC
This might seem as if it would be better handled as a support question than a bug, but as awhile back I've asked (on #gstreamer) if my attempt at porting looks sane, I was told it did.

So, zdoom has a semi-unofficial openal branch, that uses gstreamer 0.10 (https://github.com/rheit/zdoom/tree/openal). The whole gstreamer code is in src/sound/oalsound.cpp.
I've tried porting this to 1.0. I was mostly successful, as it *usually* works quite well, but besides a need for some polish (that is minor code changes due to caps string changes), there are still issues with this patch.

First of all, every now and then (probably on each new file added to the queue) gstreamer prints a critical for gst_segment_to_running_time assertion about 'segment->format' (GST_FORMAT_BYTES) != 'format' (GST_FORMAT_TIME).
Second, which may or may not be related, in an easily reachable place in hacx.wad from http://drnostromo.com/hacx I'm hitting 'dropping short buffer' condition of helper_find_pick (libs/gst/base/gsttypefindhelper.c) followed shortly by a crash. The same place works fine with 0.10, but as I said, I can't see anything *obviously* wrong with the code. gdb output doesn't really help me - it's a double free assert from glibc triggered by gst_buffer_unref.

For the attached patch to work, at minimum an obvious change in src/CMakeFiles.txt in Linux block regarding gstreamer version.

In the patch default audio sink of playbin is used instead of openalsink, but that's not the source of the problem - that works just fine in 0.10.
Comment 1 Rafał Mużyło 2014-01-31 01:48:22 UTC
*** Bug 723332 has been marked as a duplicate of this bug. ***
Comment 2 Rafał Mużyło 2014-01-31 01:56:15 UTC
Created attachment 267698 [details] [review]
my attempt of 1.0 port
Comment 3 Rafał Mużyło 2014-01-31 01:58:11 UTC
Created attachment 267699 [details]
gdb output upon crash
Comment 4 Rafał Mużyło 2014-01-31 21:40:37 UTC
Created attachment 267758 [details] [review]
gst-plugins-good patch

OK, there's a funny thing - the crash seems to be a mistake on my part (looks like I should have used gst_buffer_wrapped_new_full, not shorthand), but I might have found a bug in gst-plugins-good in flac (and possibly cutter) plugin.

It uses "S8LE" (well, NE to be exact), which some of the other plugins reject. Here it cause a caps mismatch between "S8LE" and "S8".
I don't know much about audio formats, but does endianness make sense for 8bit format ?

As for my zdoom patch, now I'm getting "Unhandled format: 0 bit, 1 channel" instead of a crash, but I may manage to figure that out on my own.
Comment 5 Sebastian Dröge (slomo) 2014-02-04 12:44:51 UTC
Comment on attachment 267758 [details] [review]
gst-plugins-good patch

Thanks, is anything else left to be done here?

commit ac4df5e2c543acf1834cbaa5534012365b1d4d34
Author: Rafał Mużyło <galtgendo@o2.pl>
Date:   Tue Feb 4 13:43:56 2014 +0100

    gst: Don't use endianness-specific S8 audio format
    
    It does not exist.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723331
Comment 6 Tim-Philipp Müller 2014-05-18 10:03:58 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 7 Rafał Mużyło 2014-05-18 10:49:58 UTC
The last part was independent from gstreamer.