mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

Glib-GIO-ERROR and Abort when trying to run gnome-mplayer -> insufficient error message #547

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As a user, I do not know why gnome-mplayer aborts like this.

Please make it more transparent to me why gnome-mplayer crashed,
so I can try to fix this problem.

From the output below, it has to do with apps.gnome-mplayer.preferences
but I have no idea what to do.

Here is the crash result:

> gnome-mplayer 

(process:13761): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

Gtk-Message: Failed to load module "canberra-gtk-module"

GLib-GIO-ERROR **: Settings schema 'apps.gnome-mplayer.preferences' is not 
installed

aborting...
Aborted

The error message displayed is not very helpful.

For instance, where does apps.gnome-mplayer.preferences reside?

For information, this is my system:

GTK Version:
  2.24.5

Pango Version:
  1.22.4

ATK Version:
  2.1.0

GLIB Version:
  2.28.8

Mplayer Version:

MPlayer 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team

Original issue reported on code.google.com by sheve...@gmail.com on 2 Aug 2011 at 8:21

GoogleCodeExporter commented 8 years ago
The main problem here is this... 

GLib-GIO-ERROR **: Settings schema 'apps.gnome-mplayer.preferences' is not 
installed

You don't say what version of gnome-mplayer you are using, but I am assuming 
1.0.4

GSettings are used when glib 2.26 or higher is present. Typically, you can fix 
this a couple of ways.

Method 1:
make clean
./configure 
make
make install

That should rebuild everything, and install the files in the right spots.

Method 2: - Tell gnome-mplayer to use gconf for its preference store

make clean
./configure --with-gconf=yes
make 
make install

Original comment by kdeko...@gmail.com on 2 Aug 2011 at 12:42

GoogleCodeExporter commented 8 years ago
Hi!

Yes, sorry. Forgot to add the version. It is indeed 1.0.4 from URL:

  http://gnome-mplayer.googlecode.com/files/gnome-mplayer-1.0.4.tar.gz

Original comment by sheve...@gmail.com on 3 Aug 2011 at 11:43

GoogleCodeExporter commented 8 years ago
 --with-gconf=yes

does not fix the problem unfortunately.

"make clean" won't be useful either. I am using scripts to compile everything
from source ...

I tried your methods but no matter what I do, I get the same:

GLib-GIO-ERROR **: Settings schema 'apps.gnome-mplayer.preferences' is not 
installed

aborting...
Aborted

I will try to perhaps downgrade glib and see if that helps.

Original comment by sheve...@gmail.com on 4 Aug 2011 at 9:36

GoogleCodeExporter commented 8 years ago
Please post the output of configure, are you sure your scripts are correct? 
There should be a file included with gnome-mplayer 
apps.gnome-mplayer.preferences.gschema.xml and during the make install script 
you should see something like this that installs the files you say are missing..

However, the --with-gconf should avoid that unless you don's gconf development 
support installed.

if test -n "apps.gnome-mplayer.preferences.gschema.xml 
apps.gecko-mediaplayer.preferences.gschema.xml 
apps.gnome-mplayer.preferences.enums.xml"; then \
    test -z "/usr/share/glib-2.0/schemas" || /bin/mkdir -p "/usr/share/glib-2.0/schemas"; \
    /usr/bin/install -c -m 644 apps.gnome-mplayer.preferences.gschema.xml apps.gecko-mediaplayer.preferences.gschema.xml apps.gnome-mplayer.preferences.enums.xml "/usr/share/glib-2.0/schemas"; \
    test -n "" || /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas; \
fi

Original comment by kdeko...@gmail.com on 4 Aug 2011 at 12:16

GoogleCodeExporter commented 8 years ago
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ - that works for me

Original comment by tomasz....@gmail.com on 24 Aug 2011 at 3:23

GoogleCodeExporter commented 8 years ago
Thank you Tomasz!

That fixed my problem. :)

Gnome-mplayer works now!

I hope this can be useful to others but I think the issue is closed.

Original comment by sheve...@gmail.com on 25 Aug 2011 at 1:13

GoogleCodeExporter commented 8 years ago

Original comment by kdeko...@gmail.com on 30 Aug 2011 at 4:44