LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   After building evince gedit no longer runs. (https://www.linuxquestions.org/questions/linux-from-scratch-13/after-building-evince-gedit-no-longer-runs-4175536189/)

percy_vere_uk 03-09-2015 09:40 AM

After building evince gedit no longer runs.
 
Hi

I have had gedit running for some time on lfs. But since I have built Evince-3.14.1 and its dependencies it no longer runs. Entering $ gedit in a terminal gives me the following error:

Code:

(gedit:7337): Gtk-WARNING **: Theme parsing error: gtk.css:67:18: Not using units is deprecated. Assuming 'px'.

(gedit:7337): Gtk-WARNING **: Theme parsing error: gtk.css:67:20: Not using units is deprecated. Assuming 'px'.
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
Segmentation fault

Any help would be appreciated.

percy

Keith Hedger 03-09-2015 02:49 PM

There doesn't seem to be a direct dependency for Evince in gedit that I can see, could it be a plugin is misbehaving?
Been a while since I used gnome and gedit but you should be able to disable the plugins for gedit.

ReaperX7 03-09-2015 05:11 PM

That looks like a problem with glib. Did you rebuild or reinstall glib anytime after gedit?

Keith Hedger 03-09-2015 07:26 PM

That glib warning is quite common and rarely causes a segfault I don't think the problem is there.

ReaperX7 03-09-2015 07:54 PM

Which version of GTK+ was gedit built against? 2.x or 3x?

Keith Hedger 03-09-2015 07:56 PM

Must be gtk3 as gtk2 doesn't use css themeing

percy_vere_uk 03-10-2015 08:34 AM

Thanks for your input on this folks!

Quote:

Did you rebuild or reinstall glib anytime after gedit?
Because of this problem I rebuilt gedit a couple of days ago but still the same error so no I have not re-built glib since
then.

Quote:

Which version of GTK+ was gedit built against? 2.x or 3x?
gedit was built against gtk+-3.12.2

Quote:

you should be able to disable the plugins for gedit.
As yet I have not been able to find a way to do this.

Krejzi 03-12-2015 06:41 AM

Quote:

Originally Posted by percy_vere_uk (Post 5329279)
Hi
(gedit:7337): Gtk-WARNING **: Theme parsing error: gtk.css:67:20: Not using units is deprecated. Assuming 'px'.
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
Segmentation fault[/CODE]

Install dconf to get rid of the gsettings backend warning.

Run the following commands to regenerate the databases that may be corrupted and cause segfaults:

gio-querymodules /usr/lib/gio/modules
update-mime-database /usr/share/mime
gtk-update-icon-cache -q /usr/share/icons/hicolor
update-desktop-database
glib-compile-schemas /usr/share/glib-2.0/schemas

If that fails, install strace and strace gedit.

percy_vere_uk 03-13-2015 09:30 AM

Krejzi

Thanks for that I am not on that box at the moment I will post as soon as I have tried this.

percy_vere_uk 03-20-2015 08:33 AM

Quote:

Krejzi said Install dconf to get rid of the gsettings backend warning.

Run the following commands to regenerate the databases that may be corrupted and cause segfaults:

gio-querymodules /usr/lib/gio/modules
update-mime-database /usr/share/mime
gtk-update-icon-cache -q /usr/share/icons/hicolor
update-desktop-database
glib-compile-schemas /usr/share/glib-2.0/schemas

If that fails, install strace and strace gedit.
So have carried out the above with no success. I have now used strace gedit see: http://pastebin.com/u7AAfxWN

I have spent quite a bit of time on this but really have no idea where to look. Help would be appreciated.

oblo 03-21-2015 12:40 PM

Recently i tried mousepad 0.4 and i was not able to save preferences, i had a console message like "GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications."
Someone said me "if you use the (default) GSettings backend it requires DBus/DConf, if you want to use plain text file config, there's a `configure --enable-keyfile-backend` option or something ... and GSettings requires a `make install` because it has to put the settings schemas somewhere it knows (unless you tweak environment variables)"
I solved after building dconf.

percy_vere_uk 03-23-2015 07:51 AM

oblo said

Quote:

Someone said me "if you use the (default) GSettings backend it requires DBus/DConf, if you want to use plain text file config, there's a `configure --enable-keyfile-backend` option or something ... and GSettings requires a `make install`
Thanks for that, I have tried what you suggested but it has made no difference. I could not get '--enable-keyfile-backend' to run with ./configure. I looked at the configure --help options but could find nothing similar.


All times are GMT -5. The time now is 08:00 AM.