Godot: Snap package fails to initialize video driver

Created on 31 Mar 2019  路  12Comments  路  Source: godotengine/godot

Godot version:

Snap install
3.1.stable.official

OS/device including version:

Ubuntu 18.04.2 LTS
4.15.0-46-generic
alienware 13 r3

Issue description:

Godot fails to start:

> godot
cp: cannot stat '/snap/godot/45/usr/share/mime': No such file or directory
Directory '/home/lb/snap/godot/45/.local/share/mime/packages' does not exist!
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
ERROR: initialize: Condition ' !fbc ' is true. returned: ERR_UNCONFIGURED
   At: platform/x11/context_gl_x11.cpp:157.
ERROR: initialize: Condition ' !fbc ' is true. returned: ERR_UNCONFIGURED
   At: platform/x11/context_gl_x11.cpp:157.
ERROR: is_viable: Error initializing GLAD
   At: drivers/gles2/rasterizer_gles2.cpp:167.

(zenity:1252): GdkPixbuf-WARNING **: 16:36:54.933: Cannot open pixbuf loader module file '/home/lb/snap/godot/common/.cache/gdk-pixbuf-loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /home/lb/snap/godot/common/.cache/gdk-pixbuf-loaders.cache
to make things work again for the time being.
Fontconfig error: Cannot load default config file

(zenity:1252): GdkPixbuf-WARNING **: 16:36:55.001: Cannot open pixbuf loader module file '/home/lb/snap/godot/common/.cache/gdk-pixbuf-loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /home/lb/snap/godot/common/.cache/gdk-pixbuf-loaders.cache
to make things work again for the time being.

(zenity:1252): Gtk-WARNING **: 16:36:55.001: Could not load a pixbuf from /org/gtk/libgtk/icons/48x48/status/image-missing.png.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/48x48/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)

Followed directions to run gdk-pixbuf-query-loaders > /home/lb/snap/godot/common/.cache/gdk-pixbuf-loaders.cache
installed libgdk-pixbuf2.0-dev, and the command succeeds.

Steps to reproduce:
Install Godot from snap > snap install godot --classic --stable and run godot
or install godot from the ubuntu software center

Minimal reproduction project:

none needed

archived bug linuxbsd porting

Most helpful comment

yes, the official binary also runs without any errors. looks like it is specific to the snap install

> ./Godot_v3.1-stable_x11.64 
OpenGL ES 3.0 Renderer: GeForce GTX 1060/PCIe/SSE2

All 12 comments

According to Stackoverflow the error messages seem to indicate missing or broken graphics drivers:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

Can you (re-)install the graphics drivers for your system and try again?

Same issue as #27494 ?

I was able to install Godot via Steam, and it runs successfully.
no system changes, and I confirmed that the snap installed version still fails as described above.

This is interesting... 馃

Can you give it a shot and try the version of the official website, too?

yes, the official binary also runs without any errors. looks like it is specific to the snap install

> ./Godot_v3.1-stable_x11.64 
OpenGL ES 3.0 Renderer: GeForce GTX 1060/PCIe/SSE2

I got same issue on Ubuntu 18.04.2 with Nvidia GTX 970 drivers 415.
Compiled and downloaded Godot, works good.

CC @popey

exact same issue with ubuntu 18.04 running nvidia driver 418.67 and CUDA Version: 10.1.

I also have the exact same issue running steam:

$ steam
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
$ godot
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast

According to https://github.com/ValveSoftware/steam-for-linux/issues/6116 the issue is related to nvidia not bundling 32 bit run time libraries anymore. As the binary Godot_v3.1.1-stable_x11.64 downloaded from https://downloads.tuxfamily.org/godotengine/3.1.1/Godot_v3.1.1-stable_x11.64.zip works as expected, can it be the case that the binary does not rely on 32 bit libraries while the snap install does?

also error message when using Godot from Snap
axel@redz:~$ godot

libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast ERROR: initialize: Condition ' !fbc ' is true. returned: ERR_UNCONFIGURED At: platform/x11/context_gl_x11.cpp:157. ERROR: initialize: Condition ' !fbc ' is true. returned: ERR_UNCONFIGURED At: platform/x11/context_gl_x11.cpp:157. ERROR: is_viable: Error initializing GLAD At: drivers/gles2/rasterizer_gles2.cpp:167.

I can confirm, Snap store version is generating the error.

  1. Reinstalled nVidia drivers, did not work
  2. Installed 64 bit version from official website, works perfectly

Tested on Ubuntu 18.04.1 with latest updates

Affecting me as well on a fully updated 18.04, with a 970 gtx and tested nvidia drivers from 415 to 440.

@mattiaswerner Thanks for confirming this bug :slightly_smiling_face:

Since this issue isn't stemming from an official Godot distribution, I'll close it. Please report issues related to the Snap here.

Was this page helpful?
0 / 5 - 0 ratings