! 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 !
Volume Control plugin can't be added to xfce4-panel
Status:
RESOLVED: INVALID
Product:
Xfce4-mixer
Component:
Panel Plugin

Comments

Description Kim B 2007-03-04 16:26:36 CET
Hello,

With Xfce 4.4 on Xubuntu 6.10, I cannot add the Volume Control plugin to my panel.

I right click the panel, click add new item, and add the Volume Control plugin.

A little black line appears on the panel, then disappears. No plugin.

When I run xfce4-panel through the terminal and then try to add the plugin, this is what I get:

kim@komputer:~$ xfce4-panel
The program 'xfce4-mixer-plugin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 182 error_code 10 request_code 33 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
** Message: Volume Control: screen changed: 0

** Message: No valid plug window.

(xfce4-panel:6296): Gtk-CRITICAL **: gtk_socket_get_id: assertion `GTK_WIDGET_ANCHORED (socket)' failed

** (xfce4-panel:6296): CRITICAL **: An item was unexpectedly removed: "Volume Control".

Can anyone help me?
Comment 1 Helmut Duregger 2007-10-07 12:31:19 CEST
I also have this bug now. I am running Xubuntu Gutsy Beta (7.10).

Xfce Panel 4.4.1
Comment 2 Lionel Le Folgoc 2007-10-13 11:14:17 CEST
Created attachment 1392 
strace output
Comment 3 Lionel Le Folgoc 2007-10-13 11:14:49 CEST
Created attachment 1393 
strace output (2)
Comment 4 Lionel Le Folgoc 2007-10-13 11:15:16 CEST
Created attachment 1394 
valgrind output
Comment 5 Lionel Le Folgoc 2007-10-13 11:16:26 CEST
Created attachment 1395 
valgrind output (2)
Comment 6 Lionel Le Folgoc 2007-10-13 11:18:02 CEST
I experienced this bug some time ago (I used strace and valgrind since gdb was broken on gutsy at this time). Now I can't reproduce it anymore (it works without problem).
Comment 7 Helmut Duregger 2007-10-25 14:08:42 CEST
I just deleted the plugins user local config files and restarted X,
this fixed it for me.

The plugin works now.
Comment 8 Helmut Duregger 2007-10-26 09:32:38 CEST
Sorry, but I stated too early that it works.

Actually it only worked because restarting the panel and adding it is a workaround. After restarting X it will be gone again.

This is also stated here:
https://bugs.launchpad.net/xfce4-mixer/+bug/90261


Another workaround seems to be to drag the plugin from the plugin menu to the panel.
I just tried restarting X and it is still there.
I found this workaround here:
http://ubuntuforums.org/showthread.php?t=375118
Comment 9 Jérôme Guelfucci editbugs 2007-10-27 08:06:57 CEST
Additionnal information added In LP's bug report :

"The drag-n-drop workaround works depending on your theme. That means, if you have "MurrinaStormCloud" as your current theme it works, but if you use "Human" instead it doesn't. So you need to set your theme to "MurrinaStormCloud" and drag the mixer-plugin to the panel instead of clicking on "Add"."
Comment 10 BenRifkah Bergsten-Buret 2007-11-02 05:48:17 CET
I was suffering from this bug as well on two of my laptops.

Based on comments in bug reports here: https://bugs.launchpad.net/xfce4-mixer/+bug/90261 and here: http://ubuntuforums.org/showthread.php?t=375118 it appears that some users are having limited success by dragging the volume control icon into the panel.  For some users this only temporarily fixes the problem.

I discovered another workaround that fixes the problem and the volume control (xfce4-mixer) appears in the panel and stays there even after logging out or restarting and then logging back in.  This workaround involves manually editing the user's configuration files for xfce4-panel

My systems are set up as follows: 1: running Xubuntu and the other running Ubuntu. Both of them based on Gutsy and running xfce 4.4.1 .  

After playing around with the configuration files in ~.config/xfce4/panel/ I realized that the configuration to display the volume control was incomplete.  I found that the configuration requires (at least) two parts.
1. a file called xfce4-mixer-<numbers>.rc
2. an entry in the <items> section of the appropriate panel in the file panels.xml that references this mixer configuration file.

My setup only had the file called xfce4-mixer-<numbers>.rc  But didn't have an entry in the <items> section.

Listing of ~/.config/xfce4/panel/:
benb@bensgateway:~$ ls .config/xfce4/panel/
actions-6.rc             panels.xml      xfce4-menu-1.rc
clock-5.rc               separator-3.rc  xfce4-mixer-<11939790840>.rc
cpugraph-11939409932.rc  systray-4.rc
launcher-2.rc            tasklist-2.rc

Excerpt from ~/.config/xfce4/panel/panels.xml:
 17         <items>
 18             <item name="xfce4-menu" id="1"/>
 19             <item name="launcher" id="2"/>
 20             <item name="separator" id="3"/>
 22             <item name="cpugraph" id="11939409932"/>
 23             <item name="systray" id="4"/>
 24             <item name="clock" id="5"/>
 25             <item name="actions" id="6"/>
 26         </items>

Note that there are files for each of the entries in the items list, but that there is no item entry for the xfce4-mixer file.  Also not that the "id" attribute for each item tag corresponds to the number in each applet's configuration file.

After trying the drag-n-drop workaround, which worked, I examined the configuration again and now I had a new file called xfce4-mixer-11939790840.rc and a corresponding entry in the items section.  I then deleted the old xfce-mixer-<numbers>.rc file which had no entry.  After this I rebooted and the volume control was in the panel when I logged in.

I hope this workaround works for others and that it gives some developers an idea of where to look for the cause.
Comment 11 dannym editbugs 2009-01-11 17:28:18 CET
Can someone that is affected by this compile a version of xfce4-mixer and xfce4-panel with debugging information, use "ulimit -c unlimited" to enable core files and attach to the core file with the "xfce4-mixer-plugin" executable?

Thanks.

So this:
xfce4-panel/ $ ./configure --enable-debug --sysconfdir=/etc --prefix=/usr
xfce4-panel/ $ make
xfce4-panel/ $ make install
xfce4-mixer/ $ ./configure --enable-debug --sysconfdir=/etc --prefix=/usr --with-sound=alsa
xfce4-panel/ $ make
xfce4-panel/ $ make install

then restart panel with a Mixer plugin, it should crash and leave a core dump in the directory where you started the panel from (usually your home directory).

Then do this:

~ $ gdb /usr/libexec/xfce4/panel-plugins/xfce4-mixer-plugin core
gdb> bt

Thanks.
Comment 12 dannym editbugs 2009-01-11 21:13:07 CET
*** Bug 2978 has been marked as a duplicate of this bug. ***
Comment 13 Guido Berhoerster 2012-09-28 11:50:54 CEST
This seems to have been reported against version 4.4 initially and the code base has changed significantly since then, if you still experience crashes with version 4.9.0 or later please open a new bug and attach a backtrace. Please see http://docs.xfce.org/xfce/xfce4-panel/debugging for instructions.

Bug #2971

Reported by:
Kim B
Reported on: 2007-03-04
Last modified on: 2012-09-28
Duplicates (1):
  • 2978 Mixer plugin crashes immediately after adding it to the panel

People

CC List:
5 users

Version

Attachments

strace output (158.05 KB, text/plain)
2007-10-13 11:14 CEST , Lionel Le Folgoc
no flags
strace output (2) (67.45 KB, text/plain)
2007-10-13 11:14 CEST , Lionel Le Folgoc
no flags
valgrind output (30.14 KB, text/plain)
2007-10-13 11:15 CEST , Lionel Le Folgoc
no flags
valgrind output (2) (15.37 KB, text/plain)
2007-10-13 11:16 CEST , Lionel Le Folgoc
no flags

Additional information