Bug 327465 - Amarok crash due to phonon-gstreamer
Summary: Amarok crash due to phonon-gstreamer
Status: RESOLVED WORKSFORME
Alias: None
Product: phonon-backend-gstreamer
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 4.7.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 4.7
Assignee: Daniel Vrátil
URL:
Keywords:
: 327464 329212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-11 19:22 UTC by valdikss
Modified: 2021-01-03 04:34 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Crashdump (24.33 KB, text/plain)
2013-11-11 19:22 UTC, valdikss
Details
amarok --debug-audio --nofork (828.19 KB, text/plain)
2013-11-11 21:57 UTC, valdikss
Details
New crash information added by DrKonqi (33.55 KB, text/plain)
2014-02-14 21:09 UTC, hamelg
Details
patch to revert the commit b07fd213c11f23a6099ab2739b590fb7101e978c (8.80 KB, patch)
2014-07-14 16:31 UTC, hamelg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description valdikss 2013-11-11 19:22:10 UTC
Created attachment 83502 [details]
Crashdump

Amarok crashing very often with phonon-gstreamer 4.7.0, but works perfectly with phonon-gstreamer 4.6.3.
Please see https://bugs.archlinux.org/task/37721 for more information.
Crashdump attached (not very useful though)

Steps to reproduce:
1. Install latest amarok, phonon-qt4, phonon-gstreamer (, pulseaudio?)
2. Play some music in amarok or change tracks quickly
3. Amarok crashed (log attached)
Comment 1 valdikss 2013-11-11 19:23:43 UTC
*** Bug 327464 has been marked as a duplicate of this bug. ***
Comment 2 hamelg 2013-11-11 19:26:59 UTC
I have the same issue and get this backtrace in Phonon::Gstreamer::MediaObject::getAudioChannelInfo.
I tried to delete the cache file in directory ~/.gstreamer-0.10 without success. It continues to crash randomly :(
It crashes also in dolphin file manager when previewing a mp3 file.
Comment 3 Harald Sitter 2013-11-11 21:54:37 UTC
Please attach a debug log

amarok --debug-audio --nofork
Comment 4 valdikss 2013-11-11 21:57:32 UTC
Created attachment 83504 [details]
amarok --debug-audio --nofork
Comment 5 valdikss 2013-11-30 13:53:01 UTC
Any updates on this? It's still happening to me.
Comment 6 hamelg 2013-12-01 17:57:23 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Simon Solinas 2013-12-07 16:18:37 UTC
same problem with version 4.7.1 of phonon-qt4 and phonon-gstreamer
Comment 8 hamelg 2014-02-14 21:09:25 UTC
Created attachment 85152 [details]
New crash information added by DrKonqi

amarok (2.8.0) on KDE Platform 4.12.2 using Qt 4.8.5

Here is a three stars backtrace when amarok playing some music.

-- Backtrace (Reduced):
#5  gst_structure_copy (structure=0x72) at gststructure.c:303
#6  0x00007f55104c62d5 in boxed_proxy_value_copy (src_value=<optimized out>, dest_value=0x4fc5c30) at gboxed.c:217
#7  0x00007f55043d28df in copy_garray_of_gstvalue (src=<optimized out>, src=<optimized out>) at gstvalue.c:230
#8  0x00007f55043d29d0 in gst_value_copy_list_or_array (src_value=<optimized out>, dest_value=0x7fff90e62438) at gstvalue.c:241
#9  0x00007f55043b9232 in gst_structure_copy (structure=0x7f53d07b3150) at gststructure.c:312
Comment 9 valdikss 2014-06-22 18:08:45 UTC
Bug is still here in 4.7.2.
Comment 10 Alexander 2014-06-24 08:27:32 UTC
Same here.
Comment 11 hamelg 2014-07-04 17:01:58 UTC
Hello,

I have provided a complete backtrace where it crashes. How can I help you to fix this issue ?
Comment 12 Christoph Feck 2014-07-04 22:53:18 UTC
It crashes deep in gstreamer, so if comment #0 is correct, some commit either in phonon or in phonon-backend-gstreamer broke something. If you can reproduce the crash, a git bisect finding the offending commit would be nice. You can ask on a KDE developer mailing list if you need help doing this.
Comment 13 hamelg 2014-07-14 16:28:59 UTC
Here, I have followed the git bisect procedure :
git bisect start v4.7.0 v4.6.3

I found out the commit which introduced this bug :
[b07fd213c11f23a6099ab2739b590fb7101e978c] FEATURE: Implement audio channel selection

The backtrace (http://bugsfiles.kde.org/attachment.cgi?id=85152) confirms it :
>> #24 0x00007f54f66959e9 in Phonon::Gstreamer::MediaObject::getAudioChannelInfo (this=this@entry=0x2cbfcb0, stream=<optimized out>) at .../gstreamer/mediaobject.cpp:407

After reverting this commit, the issue is solved (see the attached patch).
Comment 14 hamelg 2014-07-14 16:31:06 UTC
Created attachment 87730 [details]
patch to revert the commit b07fd213c11f23a6099ab2739b590fb7101e978c
Comment 15 Myriam Schweingruber 2014-07-14 20:58:51 UTC
(In reply to comment #14)
> Created attachment 87730 [details]
> patch to revert the commit b07fd213c11f23a6099ab2739b590fb7101e978c

Thank you for the patch, could you please submit it to http://reviewboard.kde.org? You will need to create an identity on http://identity.kde.org, if you do not have one already.
Comment 16 Harald Sitter 2014-07-15 00:59:57 UTC
The revert doesn't do much other than remove the code that triggers the crash.

As far as the crash itself is concerned..
        g_signal_emit_by_name (G_OBJECT(m_pipeline->element()), "get-audio-tags",
                               i, &tags);
this quite simply should not explode so I'll say the bug is in glib/gstreamer. Even if i (which is the index of the audio channel queried) is invalid it should not explode.
Comment 17 hamelg 2014-07-19 08:08:54 UTC
Myriam,

I think this bug is a duplicate of https://bugs.kde.org/show_bug.cgi?id=335777
Comment 18 Simon Solinas 2014-07-31 18:53:26 UTC
problem still present using phonon-qt4-gstreamer 4.7.2 on Arch ... only using phonon-vlc backend amarok doesn't crash.
Comment 19 Bersam 2014-08-04 20:33:06 UTC
*** Bug 329212 has been marked as a duplicate of this bug. ***
Comment 20 Martin Ottmar 2014-09-11 00:27:48 UTC
After more than four hours of playing it seems to be finally fixed with phonon-qt4-gstreamer-4.8.0-2! Usually it crashed after few songs. Now it is playing for whole hours! Phonon 4.8 is based on gstreamer-1 and the old gstreamer-0.1 can be removed from the system after installing the recent qtwebkit (and also digiKam has to be removed until it supports new gstreamer or rather the new phonon). Without this step the backend doesn't work at all.
Comment 21 Justin Zobel 2020-12-04 03:32:54 UTC
Thank you for the report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 22 Bug Janitor Service 2020-12-19 04:34:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 23 Bug Janitor Service 2021-01-03 04:34:19 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!