lukasmonk / lucaschessR2

Lucas Chess R Version 2
GNU General Public License v3.0
255 stars 36 forks source link

Ubuntu 22.04: Attempting to use color picker to change board theme crashes LucasChessR #98

Open DominicWatson opened 1 year ago

DominicWatson commented 1 year ago

When going to Options -> Colors -> Main board and then clicking on a color to change it using a color picker, the application crashes with the following output in the terminal:

This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognised image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognised image file format (gdk-pixbuf-error-quark, 3)
./LucasR.sh: line 4: 393880 Aborted

Potentially related is that I get a load of Fontconfig warnings and errors when starting up + could not load GTK module:

Failed to load module "xapp-gtk3-module"
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version'
... etc (lots of these)

ps. LucasChessR is totally amazing and can't believe took me so long to find it. I'm blown away by the effort.

lukasmonk commented 1 year ago

You could try replacing the file bin/Code/Board/WBoardColors.pyc WBoardColors.zip

DominicWatson commented 1 year ago

This still crashes and errors still with I believe the same error:

Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognised image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognised image file format (gdk-pixbuf-error-quark, 3)
lukasmonk commented 1 year ago

Other test: unzip this replacing bin/Code/Board/WBoardColors.pyc WBoardColors.zip

DominicWatson commented 1 year ago

Et voila (that is working) :)

image

lukasmonk commented 1 year ago

Great" The problem is that the native colour dialogue was launched and it seems to be giving problems. There are four other places where I have had to correct, they are of little use, Fixed all in the next update. Thank you very much.

DominicWatson commented 1 year ago

yw, thanks for the quick response. I plan to take a little look later at building locally and seeing about linux packaging options (appimage, etc.). But we'll see.

Again, really appreciate the work. Have been playing through my new Chessnut Air and just love it.