After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 119979 - Invalid gconf keys and crash
Invalid gconf keys and crash
Status: RESOLVED FIXED
Product: gnome-media
Classification: Deprecated
Component: gnome-volume-control
2.3.x
Other Linux
: Normal critical
: 2.4
Assigned To: gnome media maintainers
gnome media maintainers
: 123912 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-08-15 19:47 UTC by Jens Granseuer
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Jens Granseuer 2003-08-15 19:47:42 UTC
On startup I get this error:

An error occurred while loading or saving configuration
information for gnome-volume-control. Some of your
configuration settings may not work properly.

Bad key or directory name:
 "/apps/gnome-volume-control/OSS-ESS_Solo-1-1/Vol  ": ` ' is an invalid 
character in key/directory names
Bad key or directory name:
 "/apps/gnome-volume-control/OSS-ESS_Solo-1-1/Pcm  ": ` ' is an invalid 
character in key/directory names
Bad key or directory name:
 "/apps/gnome-volume-control/OSS-ESS_Solo-1-1/Spkr ": ` ' is an invalid 
character in key/directory names
Bad key or directory name:
 "/apps/gnome-volume-control/OSS-ESS_Solo-1-1/Line ": ` ' is an invalid 
character in key/directory names
Bad key or directory name:
 "/apps/gnome-volume-control/OSS-ESS_Solo-1-1/Mic  ": ` ' is an invalid 
character in key/directory names
Bad key or directory name:
 "/apps/gnome-volume-control/OSS-ESS_Solo-1-1/CD   ": ` ' is an invalid 
character in key/directory names
Bad key or directory name:
 "/apps/gnome-volume-control/OSS-ESS_Solo-1-1/Pcm2 ": ` ' is an invalid 
character in key/directory names

Looks like gmix should strip the spaces at the end before
building the key (sed probably). The labels appear identically (including
spaces) in linux/soundcard.h.

When trying to run sed manually to create the device_labels_linux.h
I get the error:
sed: file device_labels_linux.sed line 16: Extra characters after command

The same happens with the ALSA sed script, only in line 19.
Maybe my sed is just too old? It's version 3.02.

Then when I quit, volume-control really goes down the drain, crashing hard.
I'm not sure whether the crash is realted to the invalid gconf keys.

Backtrace was generated from '/opt/gnome2/bin/gnome-volume-control'

[New Thread 1024 (LWP 11045)]
0x40a83289 in wait4 () from /lib/libc.so.6

Thread 1 (Thread 1024 (LWP 11045))

  • #0 wait4
    from /lib/libc.so.6
  • #1 __DTOR_END__
    from /lib/libc.so.6
  • #2 waitpid
    from /lib/libpthread.so.0
  • #3 libgnomeui_module_info_get
    from /opt/gnome2/lib/libgnomeui-2.so.0
  • #4 pthread_sighandler
    from /lib/libpthread.so.0
  • #5 <signal handler called>
  • #6 vfprintf
    from /lib/libc.so.6
  • #7 vsnprintf
    from /lib/libc.so.6
  • #8 g_logv
    at gmessages.c line 436
  • #9 g_log
    at gmessages.c line 527
  • #10 put_one_device_config
    at gmix.c line 1035
  • #11 g_list_foreach
    at glist.c line 669
  • #12 put_device_config
    at gmix.c line 1081
  • #13 main
    at gmix.c line 373
  • #14 __libc_start_main
    from /lib/libc.so.6
  • #0 wait4
    from /lib/libc.so.6



I also get some funny messages on the command line:

Warning: This version of the Gnome Volume Control was compiled with
OSS version 3.8.2, and your system is running
version 3.8.16.
Warning: This version of the Gnome Volume Control was compiled with
OSS version 3.8.2, and your system is running
version 0.0.1.

(gnome-volume-control:29476): Gtk-WARNING **: 
gtkmessagedialog.c:270:gtk_message_dialog_get_property(): invalid property 
id 1 for "message-type" of type `GParamEnum' in `GtkMessageDialog'

** (gnome-volume-control:29476): WARNING **: Error says Bad key or 
directory name:
 "/apps/gnome-volume-control/OSS-ESS_Solo-1-1/Vol  /title": ` ' is an 
invalid character in key/directory names


(gnome_segv:29485): Gtk-WARNING **: 
gtkmessagedialog.c:270:gtk_message_dialog_get_property(): invalid property 
id 1 for "message-type" of type `GParamEnum' in `GtkMessageDialog'


Where does it get that OSS version number from?
It shouldn't use OSS in the first place, but as configure seems
to look for the ALSA headers at <sys/asoundlib.h> and they really
are at <alsa/asoundlib.h>... but that's probably a different
story.

All this is with gnome-media 2.3.7.
Comment 1 Ted Gould 2003-08-18 15:55:32 UTC
This bug was caused by fixing the internationalized labels on the
mixer.  Apparently those are used for the GConf keys also.  A better
solution is needed, and definately before 2.4.0 :)
Comment 2 Kjartan Maraas 2003-08-23 20:53:26 UTC
Make sure the keys are written and read from GConf using the C locale?
Comment 3 Ted Gould 2003-08-26 20:00:57 UTC
This should be fixed in the current release (2.3.8).  The keys are
changed back to their previous names - and the user title is now used
for display.  The user title and the name have been split.
Comment 4 Ted Gould 2003-10-14 04:50:13 UTC
*** Bug 123912 has been marked as a duplicate of this bug. ***