Page 1 of 1
Geany crashes when attempting to save file (solved)
Posted: Mon May 27, 2024 1:29 pm
by bigphil
Oh dear, I'm in trouble again.
As the subject says and also Abiword has the same problem.
It appeared to manifest itself when I downloaded the latest version of Libreoffice and generated and loaded the .sfs.
I then found that Libreoffice writer crashed when saving file. I then found the same thing with Geany and Abiword although Leafpad is OK.
Any ideas?
Regards
Phil.
Re: Geany crashes when attempting to save file
Posted: Mon May 27, 2024 3:18 pm
by rockedge
@bigphil
can you try to start geany
in a terminal? Perhaps the errors causing the crash can be identified in the output.
open a terminal and type geany, press enter
Re: Geany crashes when attempting to save file
Posted: Mon May 27, 2024 3:55 pm
by bigphil
@rockedge
when running in terminal and it crashes it reports -
Code: Select all
(geany:6729): GLib-GIO-ERROR **: 16:47:46.487: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column'
Trace/breakpoint trap
I've no idea what it means, maybe it'll make sense to you clever people.
Phil.
Re: Geany crashes when attempting to save file
Posted: Mon May 27, 2024 4:22 pm
by rockedge
This seems to be caused by incompatible GTK+-schema settings, and seems to always occur, if a program uses a GTK+-library which is newer then the currently active GTK+settings. This affects e.g.: Evince, Atril, Firefox, Chromium, LibreOffice, … (Gimp, Inkscape, Viewnior seem to be unaffected.)
Try to reinstall libgtk-3-common
but this might not work.
Solution:
This seems to be caused by incompatible GTK+-schema settings, and seems to always occur, if a program uses a GTK+-library with is newer then the currently active GTK+settings, e.g. if
a package from unstable is used, with settings from “stable”;
this can be worked around with:
mkdir -p ~/.local/share/glib-2.0/schemas
cp -pi /nix/store/...-gtk+3-3.<LATEST>/share/gsettings-schemas/gtk+3-3.*/glib-2.0/schemas/gschemas.compiled ~/.local/share/glib-2.0/schema/
settings are installed locally in ~/.local/share/glib-2.0/schemas (e.g. from the workaround above), but newer packages are used, e.g. after a NixOS-upgrade or newer packages from unstable.
this may be solved by:
rm -rf ~/.local/share/glib-2.0/schemas
If this does not solve the issue, the newest settings have to be copied to this directory (see workaround above)
Re: Geany crashes when attempting to save file
Posted: Tue May 28, 2024 9:31 am
by bigphil
rockedge - I've reinstalled libgtk-3-common as you suggested and it fixed the problems.
Thanks for your help.
Phil