! 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 !
xfce4-mixer-plugin crashes on mousewheel --disable-debug set
Status:
RESOLVED: FIXED
Product:
Xfce4-mixer
Component:
Panel Plugin

Comments

Description afffect 2011-05-17 15:57:36 CEST
xfce4-mixer-plugin crashes if trying to change volume level with mousewheel. This only happens if --disable-debug switch is set during configure

Additional info:
* version: 4.8.0

Backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000406f13 in xfce_mixer_plugin_volume_changed (mixer_plugin=0x21b5990, volume=0) at xfce-mixer-plugin.c:275
275 volumes = g_new (gint, mixer_plugin->track->num_channels);

Tested on Arch Linux x86_64
Comment 1 afffect 2011-05-17 17:17:45 CEST
Update:

I got multiple sound cards showing up in mixer plugin configuration. Alsa is selected by default and is causing panel plugin to crash on mousewheel. Selecting pulseaudio as the main soundcard makes the bug disappear. Both alsa and pulseaudio can be adjusted via main plugin screen, though, and both affect the current volume.
Comment 2 rafa.vasco 2011-06-28 19:44:24 CEST
I noticed this too and was looking for a bug report on it.

I'm also using arch on x86_64.

I think it was fine on my panel, but then i removed it for something i wanted to do and after that when added to the panel this bug shows up. I don't know, it could be related to some cache or config realted to the panel? No? i'm gonna try remove and reconfigure the panel.
Comment 3 afffect 2011-06-28 20:49:41 CEST
I just noticed that the crash happens if I don't open up mixer properties after adding it to the panel.

When I add the mixer, it doesn't show any volume levels (i.e. the icon doesn't have any blue marks on it). If I then try to adjust it using mousewheel, mixer crashes.

However, if I open up mixer properties after adding it to the panel and then close the properties window without changing anything, the mixer level indicator appears (blue marks on the icon). Then the volume level can be adjusted with mousewheel and mixer doesn't crash anymore.

It looks like as if it didn't load the soundcard and/or volume levels when added to the panel, only in properties window.
Comment 4 rafa.vasco 2011-06-28 20:58:37 CEST
(In reply to comment #3)
> I just noticed that the crash happens if I don't open up mixer properties after
> adding it to the panel.
> 
> When I add the mixer, it doesn't show any volume levels (i.e. the icon doesn't
> have any blue marks on it). If I then try to adjust it using mousewheel, mixer
> crashes.
> 
> However, if I open up mixer properties after adding it to the panel and then
> close the properties window without changing anything, the mixer level
> indicator appears (blue marks on the icon). Then the volume level can be
> adjusted with mousewheel and mixer doesn't crash anymore.
> 
> It looks like as if it didn't load the soundcard and/or volume levels when
> added to the panel, only in properties window.


I just removed every panel related configuration and xfce-mixer configuration that i remembered and added the mixer again, tried to scroll and crash.

Now that you said that i just openned the configuration dialog selected the card, added the mixers and then rigth click -> Properties and selected the mixer to control. 
Now i scroll and it works without crashing. It seems the problem is related to default values used or somethin like that :P
Comment 5 Mikhail Efremov 2011-09-14 17:11:32 CEST
Created attachment 3863 
fix-mousewheel-crash.patch

The attached patch fixes this. The configure dialog will be shown if no channel was selected.
Comment 6 Peter Polonkai 2011-11-02 16:54:46 CET
(In reply to comment #5)
> Created attachment 3863 
> fix-mousewheel-crash.patch
> 
> The attached patch fixes this. The configure dialog will be shown if no channel
> was selected.

Works, fine. Thank you!
Comment 7 Guido Berhoerster 2012-09-28 12:49:58 CEST
Should be fixed with commit df715a44cee9f5c1ff4a6bef3427f0c8ef717823 and 421d875b57d6a9e05cd58f79183a1691eb23633b.

Bug #7630

Reported by:
afffect
Reported on: 2011-05-17
Last modified on: 2012-09-28

People

Assignee:
Jannis Pohlmann
CC List:
3 users

Version

Version:
Unspecified

Attachments

fix-mousewheel-crash.patch (647 bytes, patch)
2011-09-14 17:11 CEST , Mikhail Efremov
no flags

Additional information