My panel crashes as soon as I start an application that uses sound. I get the following message: --------------------- ** (xfce4-panel:17464): WARNING **: alsa_cb Speicherzugriffsfehler --------------------- speicherzugriffsfehler = german, meaning memory access error or segfault The message is with XFCE4-panel 4.2.1.1 and xfce4-mixer 4.2.1. The problem also occurs with versions 4.2.0 and 4.2.1. Reproducible: Always Steps to Reproduce: 1. start xfce 2. run bash alsa-mixer script to unmute my alsa-channels 3. open a shell and run xfce4-panel (to see the error messages) 3. start mplayer to play a video file Actual Results: The panel crashes, giving the above mentioned error-message Expected Results: not crash I am using Gentoo, 2.6.12-rc1-mm3 kernel (crash also occured with 2.6.11-mm4) Glibc is: 2.3.4.20041102-r1 gtk+ is: 1.2.10-r11 and 2.6.2
I know. see bug #855
note that I need someone to test the "fix" over there, please. I cant test it myself because my soundcard does not support alsa callbacks.
*** This bug has been marked as a duplicate of 855 ***
try changing the function to this: static int alsa_cb(snd_mixer_t *ctl, unsigned int mask, snd_mixer_elem_t *elem) { const char *which; g_warning ("alsa_cb\n"); if (elem && snd_mixer_elem_get_type (elem) == SND_MIXER_ELEM_SIMPLE) { which = snd_mixer_selem_get_name (elem); } else { which = NULL; } if (mycb) (*mycb) (which, mydata); return 0; }