! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
panel crashes with warning: alsa_cb message
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-mixer
Component:
Panel Plugin

Comments

Description Benjamin Weber 2005-04-02 10:07:58 CEST
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
Comment 1 dannym editbugs 2005-04-02 11:59:17 CEST
I know. see bug #855
Comment 2 dannym editbugs 2005-04-02 12:00:47 CEST
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.
Comment 3 dannym editbugs 2005-04-02 12:01:34 CEST

*** This bug has been marked as a duplicate of 855 ***
Comment 4 dannym editbugs 2005-04-02 13:23:55 CEST
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;
}

Bug #885

Reported by:
Benjamin Weber
Reported on: 2005-04-02
Last modified on: 2009-07-14

People

CC List:
0 users

Version

Attachments

Additional information