Version: unspecified (using KDE 4.6.0) OS: Linux hi, i have kde 4.6.0, amarok 2.4 and phonon/phonon backend gstreamer 4.4.4 when i launch amarok, i have this error: KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work (amarok:5012): GStreamer-CRITICAL **: gst_debug_add_log_function: assertion `func != NULL' failed and amarok doesn't start Reproducible: Didn't try
Well, since that is an assert in gstreamer there isn't much we can do about that... please report the issue there.
> Well, since that is an assert in gstreamer there isn't much we can do about > that... Hi, GStreamer developer here. This assertion shouldn't be fatal unless G_DEBUG=fatal_warnings is set (in which case it will abort with a message saying so). Also, it's most likely caused by a bug in a library or application using GStreamer. The exact caller can be tracked down running the application in gdb with the G_DEBUG=fatal_warnings environment variable set and then getting a stack trace when it aborts. However, as I said, this shouldn't be fatal under normal circumstances, so I'm not sure what's going on here or that the application not starting actually has something to do with GStreamer.
Curious, I did not know that those are not critical by default, good to know though. Thanks. Well, lets get some debugging going then. omega, please run kdebugdialog and select everything, then apply and exit the app again. On a terminal run the following: export PHONON_PULSEAUDIO_DEBUG=5 export PHONON_GST_DEBUG=5 export PHONON_GST_GST_DEBUG=3 export PHONON_DEBUG=5 and finally start amarok from that terminal using amarok --nofork --debug 2> log That will spit a log file in the present working directory, please attach it to this bug. Additionally it would be good to find the root of that assert, so please also do the following in a terminal: export G_DEBUG=fatal_warnings gdb --args amarok --nofork At some point this will terminate (i.e. when the assert is printed), then type bt this will spit out a couple of lines, please also save those in a file and attach them to this bug report. (you can then leave gdb by entering quit ;))
Created attachment 56556 [details] first log
Created attachment 56557 [details] second log
Ok, the stack trace shows that the GStreamer-critical is actually triggered from within GStreamer, so that's a GStreamer bug then. The log in the GStreamer bug report (https://bugzilla.gnome.org/show_bug.cgi?id=640771) also shows that it's aborting due to the warning, so I suspect ubuntu or the user has G_DEBUG=fatal_warnings set for some reason, but in any case, it's clear now that it does abort because of the warning: > GStreamer-CRITICAL **: gst_debug_add_log_function: assertion `func != NULL' failed > aborting... So this can be closed after all and we'll continue this in the GStreamer bug tracker (sorry for the noise). Thanks for providing the logs omega.
Thank you :)
you're welcome :)
reassigning to the new bugzilla product for better bug tracing of the various backends. Sorry for the noise.