xfmedia launches fine, however when attempting to play any song, it dies straight away with: ----- (xfmedia:32645): Gtk-WARNING **: Theme directory of theme Crystal-SVG has no size field Killed ----- GDB output is as follows: ----- (gdb) run Starting program: /usr/bin/xfmedia (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 32395)] [New Thread 32769 (LWP 32398)] [New Thread 16386 (LWP 32399)] [New Thread 32771 (LWP 32493)] [New Thread 49156 (LWP 32494)] [New Thread 65541 (LWP 32495)] [New Thread 81926 (LWP 32496)] [New Thread 98311 (LWP 32497)] [New Thread 114696 (LWP 32498)] [New Thread 131081 (LWP 32499)] [New Thread 147466 (LWP 32500)] [New Thread 163851 (LWP 32501)] [New Thread 180236 (LWP 32502)] [New Thread 196621 (LWP 32503)] (xfmedia:32395): Gtk-WARNING **: Theme directory of theme Crystal-SVG has no size field [New Thread 213006 (LWP 32504)] [New Thread 229391 (LWP 32506)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 32771 (LWP 32493)] 0x0000002a99abfe20 in snd_mixer_elem_empty () from /usr/lib/libasound.so.2 (gdb) bt #0 0x0000002a99abfe20 in snd_mixer_elem_empty () from /usr/lib/libasound.so.2 #1 0x0000002a99ab7ca6 in snd_hctl_poll_descriptors_revents () from /usr/lib/libasound.so.2 #2 0x0000002a99ab8961 in snd_hctl_ctl () from /usr/lib/libasound.so.2 #3 0x0000002a99ab8ad3 in snd_hctl_handle_events () from /usr/lib/libasound.so.2 #4 0x0000002a99ac0ca9 in snd_mixer_handle_events () from /usr/lib/libasound.so.2 #5 0x0000002a9ea31983 in ?? () from /usr/lib/xine/plugins/1.0.0/xineplug_ao_out_alsa.so #6 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #7 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #8 0x0000002a97d370c3 in clone () from /lib/libc.so.6 ----- My initial reaction was that it was an issue with xine, rather than with xfmedia however when playing the same files with xine they work just fine. Reproducible: Always Steps to Reproduce: 1. Launch xfmedia 0.7.0 2. Click the play button, hit 'p' or any other action which should start a song. 3. Watch it die. Actual Results: xfmedia dies straight away, before output begins. Expected Results: The song would play. Gentoo amd64 3400+ system, using: exo-0.3.0 xfmedia-0.7.0
From the console output, my first guess would be a bug in gtk, but I'm not sure. What I really need is the output of 'thread apply all bt' in gdb. The backtrace you provided is of an unrelated xine thread.
(In reply to comment #1) > From the console output, my first guess would be a bug in gtk, but I'm not sure. > What I really need is the output of 'thread apply all bt' in gdb. The > backtrace you provided is of an unrelated xine thread. Okies, here goes: (Appologies for the VERY long reply) (gdb) thread apply all bt Thread 16 (Thread 229391 (LWP 1412)): #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974d29ac in __pthread_lock () from /lib/libpthread.so.0 #3 0x0000002a974ceec7 in pthread_start_thread_event () from /lib/libpthread.so.0 #4 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 15 (Thread 213006 (LWP 1411)): #0 0x0000002a97d0e6a5 in nanosleep () from /lib/libc.so.6 #1 0x0000002a97d0e565 in sleep () from /lib/libc.so.6 #2 0x0000002aa20ef33d in ?? () from /usr/lib/xfmedia/plugins/xfmedia-infopipe.so #3 0x0000002a97b3d5f8 in g_static_private_free () from /usr/lib/libglib-2.0.so.0 #4 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #5 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #6 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 14 (Thread 196621 (LWP 1410)): ---Type <return> to continue, or q <return> to quit--- #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974cde81 in pthread_cond_wait@GLIBC_2.2.5 () from /lib/libpthread.so.0 #3 0x0000002a96d29260 in _x_dummy_fifo_buffer_new () from /usr/lib/libxine.so.1 #4 0x0000002a96d30050 in _x_get_audio_channel () from /usr/lib/libxine.so.1 #5 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #6 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #7 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 13 (Thread 180236 (LWP 1409)): #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974cde81 in pthread_cond_wait@GLIBC_2.2.5 () from /lib/libpthread.so.0 #3 0x0000002a96d29260 in _x_dummy_fifo_buffer_new () from /usr/lib/libxine.so.1 #4 0x0000002a96d2ea9e in _x_video_decoder_shutdown () from /usr/lib/libxine.so.1 Thread 12 (Thread 163851 (LWP 1408)): #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974cde81 in pthread_cond_wait@GLIBC_2.2.5 () from /lib/libpthread.so.0 #3 0x0000002a96d3473e in _x_ao_new_port () from /usr/lib/libxine.so.1 #4 0x0000002a96d355c6 in _x_ao_new_port () from /usr/lib/libxine.so.1 #5 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #6 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #7 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 11 (Thread 147466 (LWP 1407)): #0 0x0000002a974d4b65 in nanosleep () from /lib/libpthread.so.0 #1 0x0000002a96d49919 in xine_usec_sleep () from /usr/lib/libxine.so.1 #2 0x0000002a96d31aac in _x_vo_new_port () from /usr/lib/libxine.so.1 #3 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #4 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #5 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 10 (Thread 131081 (LWP 1406)): #0 0x0000002a97d31346 in select () from /lib/libc.so.6 #1 0x0000000000414a5d in gtk_xine_port_send_gui_data () #2 0x0000002a97b3d5f8 in g_static_private_free () from /usr/lib/libglib-2.0.so.0 #3 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #4 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #5 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 9 (Thread 114696 (LWP 1405)): #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974cde81 in pthread_cond_wait@GLIBC_2.2.5 () from /lib/libpthread.so.0 #3 0x0000002a96d380df in xine_event_wait () from /usr/lib/libxine.so.1 #4 0x0000002a96d3855f in xine_event_create_listener_thread () from /usr/lib/libxine.so.1 #5 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #6 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #7 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 8 (Thread 98311 (LWP 1404)): #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974cde81 in pthread_cond_wait@GLIBC_2.2.5 () from /lib/libpthread.so.0 #3 0x0000002a96d29260 in _x_dummy_fifo_buffer_new () from /usr/lib/libxine.so.1 #4 0x0000002a96d30050 in _x_get_audio_channel () from /usr/lib/libxine.so.1 #5 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #6 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #7 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 7 (Thread 81926 (LWP 1403)): #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974cde81 in pthread_cond_wait@GLIBC_2.2.5 () from /lib/libpthread.so.0 #3 0x0000002a96d29260 in _x_dummy_fifo_buffer_new () from /usr/lib/libxine.so.1 #4 0x0000002a96d2ea9e in _x_video_decoder_shutdown () from /usr/lib/libxine.so.1 #5 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #6 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #7 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 6 (Thread 65541 (LWP 1402)): #0 0x0000002a974d4b65 in nanosleep () from /lib/libpthread.so.0 #1 0x0000002a96d49919 in xine_usec_sleep () from /usr/lib/libxine.so.1 #2 0x0000002a96d31aac in _x_vo_new_port () from /usr/lib/libxine.so.1 #3 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #4 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #5 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 5 (Thread 49156 (LWP 1401)): #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974cde81 in pthread_cond_wait@GLIBC_2.2.5 () from /lib/libpthread.so.0 #3 0x0000002a96d3473e in _x_ao_new_port () from /usr/lib/libxine.so.1 #4 0x0000002a96d355c6 in _x_ao_new_port () from /usr/lib/libxine.so.1 #5 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #6 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #7 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 4 (Thread 32771 (LWP 1400)): #0 0x0000002a99abfe2a in snd_mixer_elem_empty () from /usr/lib/libasound.so.2 #1 0x0000002a99ab7ca6 in snd_hctl_poll_descriptors_revents () from /usr/lib/libasound.so.2 #2 0x0000002a99ab8961 in snd_hctl_ctl () from /usr/lib/libasound.so.2 #3 0x0000002a99ab8ad3 in snd_hctl_handle_events () from /usr/lib/libasound.so.2 #4 0x0000002a99ac0ca9 in snd_mixer_handle_events () from /usr/lib/libasound.so.2 #5 0x0000002a9ea31983 in ?? () from /usr/lib/xine/plugins/1.0.0/xineplug_ao_out_alsa.so #6 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #7 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #8 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 3 (Thread 16386 (LWP 1306)): #0 0x0000002a974d4b65 in nanosleep () from /lib/libpthread.so.0 #1 0x0000002a974d158f in __pthread_timedsuspend_new () from /lib/libpthread.so.0 #2 0x0000002a974ce0ad in pthread_cond_timedwait_relative () from /lib/libpthread.so.0 #3 0x0000002a96d264d6 in _x_metronom_clock_init () from /usr/lib/libxine.so.1 #4 0x0000002a974cee38 in pthread_start_thread () from /lib/libpthread.so.0 #5 0x0000002a974ceedd in pthread_start_thread_event () from /lib/libpthread.so.0 #6 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 2 (Thread 32769 (LWP 1305)): #0 0x0000002a97d2f826 in poll () from /lib/libc.so.6 #1 0x0000002a974ceafa in __pthread_manager () from /lib/libpthread.so.0 #2 0x0000002a974ced00 in __pthread_manager_event () from /lib/libpthread.so.0 #3 0x0000002a97d370c3 in clone () from /lib/libc.so.6 Thread 1 (Thread 16384 (LWP 1302)): #0 0x0000002a974d15dc in __pthread_sigsuspend () from /lib/libpthread.so.0 #1 0x0000002a974d1460 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #2 0x0000002a974d0d05 in pthread_create@@GLIBC_2.2.5 () from /lib/libpthread.so.0 #3 0x0000002a96d3cee0 in _x_demux_start_thread () from /usr/lib/libxine.so.1 #4 0x0000002a96d24829 in xine_stream_master_slave () from /usr/lib/libxine.so.1 #5 0x0000002a96d218c2 in xine_play () from /usr/lib/libxine.so.1 #6 0x0000000000415c04 in gtk_xine_play () #7 0x000000000041b1bf in xfmedia_mainwin_play_uri () #8 0x000000000041b6fb in xfmedia_mainwin_play_file_at_index () #9 0x000000000041b9d2 in xfmedia_mainwin_toggle_playpause () #10 0x0000002a97787962 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #11 0x0000002a977756bf in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #12 0x0000002a977874be in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 #13 0x0000002a977863d8 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #14 0x0000002a97786733 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #15 0x0000002a95b6a5a4 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0 #16 0x0000002a95b6 from /usr/lib/libgtk-x11-2.0.so.0 #17 0x0000002a97787962 in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #18 0x0000002a977759e0 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0 #19 0x0000002a977756bf in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #20 0x0000002a97786d14 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 #21 0x0000002a977863d8 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #22 0x0000002a97786733 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #23 0x0000002a95b6a514 in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0 #24 0x0000002a95b6b1e9 in _gtk_button_paint () from /usr/lib/libgtk-x11-2.0.so.0 #25 0x0000002a95c0ae34 in _gtk_marshal_BOOLEAN__BOXED () from /usr/lib/libgtk-x11-2.0.so.0 #26 0x0000002a977759e0 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0 #27 0x0000002a977756bf in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #28 0x0000002a97786f07 in g_signal_emit_by_name () from /usr/lib/libgobject-2.0.so.0 #29 0x0000002a977861d9 in g_signal_emit_valist () b326 in _gtk_button_paint () from /usr/lib/libgobject-2.0.so.0 #30 0x0000002a97786733 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #31 0x0000002a95ce70e6 in gtk_widget_send_expose () from /usr/lib/libgtk-x11-2.0.so.0 #32 0x0000002a95c0962d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0 #33 0x0000002a95c0872e in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0 #34 0x0000002a960413bc in _gdk_events_queue () from /usr/lib/libgdk-x11-2.0.so.0 #35 0x0000002a97b25d42 in g_main_depth () from /usr/lib/libglib-2.0.so.0 #36 0x0000002a97b26d74 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #37 0x0000002a97b2705e in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #38 0x0000002a97b2760d in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 #39 0x0000002a95c08111 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 #40 0x00000000004187b7 in main () #0 0x0000002a99abfe2a in snd_mixer_elem_empty () from /usr/lib/libasound.so.2
Hmm, unfortunately I can't see the cause of the problem from that. This is just a shot in the dark, but could you try removing $prefix/lib/xfmedia/plugins/* and trying again? No need for a backtrace; I'd just like to know if that fixes the problem.
(In reply to comment #3) > Hmm, unfortunately I can't see the cause of the problem from that. This is just > a shot in the dark, but could you try removing $prefix/lib/xfmedia/plugins/* and > trying again? No need for a backtrace; I'd just like to know if that fixes the > problem. Just removed the following 3 files: -rw-r--r-- 1 root root 11848 Mar 29 16:55 xfmedia-infopipe.a -rwxr-xr-x 1 root root 1154 Mar 29 16:55 xfmedia-infopipe.la -rwxr-xr-x 1 root root 15584 Mar 29 16:55 xfmedia-infopipe.so And, am still seeing the crash :|
Since there hasn't been any updates on this for a while, I was wondering if there was any other information i could provide which may resolve (or at least, help to resolve) this issue. Thanks.
Unforutunately not. Nothing in the backtrace jumps out at me as if it could be the cause. You might try running "strace xfmedia &>xfmedia-strace.log" and attaching the log file here, but I don't know that that will give me any more information. Hmm. I'm still slightly bothered about the gtk icon theme warning. Try changing your icon theme to something other than crystal-svg (make sure it isn't something that inherits from crystal-svg as well). The fact that you're getting a "Killed" message seems to indicate that the app didn't crash, but that some internal consistency check failed (whether in xine-lib, gtk, glibc, etc. I don't know) and it killed itself. Otherwise, I've never heard of this particular problem before, and I can't reproduce it myself.
Created attachment 207 Strace
Well, from that I can see that xine-lib does indeed start reading the MP3 you're playing. Otherwise, I don't know. It doesn't look like anything obvious is failing. It just gets killed. With SIGKILL, which is rather odd. At this point, all I can think of is to make sure you're using the latest version of xine-lib, which should still be 1.0. Don't believe pkgconfig --modversion output, as it lies about the release candidate versions.
Just checked, xine-lib-rc8 was installed. However, having compiled 1.0 still no go :| Same issue :/
Could this be the same as bug #855? They seem strangely similar and simply running Xfmedia (without playing a track) causes xfce4-mixer to crash.
Yeah, probably. Good call - I thought the libalsa references in the stack trace looked familiar, but I didn't make the connection. Reporter: could you supply your alsa-driver and alsa-lib versions? If you're using in-kernel alsa, please tell me which kernel it is as well. You can get the driver version from /proc/asound/version, and the lib version... I guess from your distro's package manager. Also, sound chipset and driver? /proc/asound/cards should tell you that. That's all mainly out of curiosity and for future reference; this may boil down to an alsa bug, or a bug in how xine-lib uses alsa. Either way, it's out of my hands, and I don't know the first thing about tracking it down.
/proc/asound/version: Advanced Linux Sound Architecture Driver Version 1.0.8 (Thu Jan 13 09:39:32 2005 UTC). alsa-lib version: 1.0.8
FWIW I'm using alsa-lib-1.0.8, kernel is gentoo-sources-2.6.11-r6, SB Audigy (emu10k1). /proc/asound/version is the same as Dave's here. I'm pretty clueless about where to go with this. I can't register with alsa's bug tracker (some smtp error) so I have not reported to them yet. I can't even find any code that calls snd_mixer_elem_empty() in either of alsa-lib or my kernel. It's late here now but if I take any more action or find anything else out I will keep you informed.
FWIW, I have 1.0.8 on 2.6.11-gentoo-r6, emu10k1 driver. snd_mixer_elem_empty() is a function *in* alsa-lib, and is presumably being called by xine's alsa output plugin. I'm pretty sure at this point that this isn't a bug in xfmedia.
Hrm. Strange though, xine itself works just fine, as does Rhythmbox et al.