Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cura binary Failed to load module canberra-gtk-module
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
NTwoO
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2007
Posts: 83

PostPosted: Sun Feb 16, 2025 11:12 am    Post subject: Cura binary Failed to load module canberra-gtk-module Reply with quote

Since a recent update, my system fails to start up the appimage downloaded from the Cura project. Could it be related that there is not a gtk2 flag in libcanberra anymore?

The relevant binary is an appImage that can be downloaded at: https://github.com/Ultimaker/Cura/releases and the one tested with is the latest stable release https://github.com/Ultimaker/Cura/releases/download/5.9.0/UltiMaker-Cura-5.9.0-linux-X64.AppImage
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 478

PostPosted: Sun Feb 16, 2025 1:16 pm    Post subject: Reply with quote

Ideally, appimages should be self contained and not dependent on any given version of an app or library to be installed.
That is not always the case.
I ran the appimage up until the login screen and did not have any issues.
Is media-libs/libcanberra-gtk3 installed on your system?
When looking at the source code the appimage uses Gtk-3 not Gtk-2 so I don't think that is related.
You should file a bug at their issues page. I did notice that all the user's debug output at:
https://github.com/Ultimaker/Cura/issues/19837
shows the error (Failed to load module "canberra-gtk-module") but that doesn't appear to be fatal nor discussed in the thread, so I assume it is not relevant. I suspect it is a typical warning that usually occurs and has no bearing on the appimage running correctly.
In other words, I have doubts that is the actual fatal error preventing the appimage from working correctly on your system.
Back to top
View user's profile Send private message
NTwoO
Tux's lil' helper
Tux's lil' helper


Joined: 01 Jun 2007
Posts: 83

PostPosted: Sun Feb 16, 2025 2:12 pm    Post subject: Reply with quote

Thanks for looking into it.

The output when launching the application shows the following, no more.

Code:

~/Downloads/UltiMaker-Cura-5.8.0-linux-X64.AppImage
Gtk-Message: 12:13:28.754: Failed to load module "canberra-gtk-module"
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 4.1, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::CoreProfile)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 4.1, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile  QSurfaceFormat::CoreProfile)
Could not initialize GLX


canberra libs
Code:

eix canberra
[I] media-libs/libcanberra
     Available versions:  0.30-r8 {alsa gstreamer oss pulseaudio tdb udev ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.30-r8(01:17:01 PM 01/24/2025)(alsa pulseaudio udev -gstreamer -oss -tdb ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://0pointer.de/lennart/projects/libcanberra/
     Description:         Portable sound event library

[I] media-libs/libcanberra-gtk3
     Available versions:  0.30 {gnome ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.30(03:17:05 PM 01/28/2025)(-gnome ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
     Homepage:            https://0pointer.de/lennart/projects/libcanberra/
     Description:         GTK3 bindings for libcanberra, the portable sound event library

Found 2 matches

Code:

GTK_MODULES=canberra-gtk-module


EDIT: The link you shared does match my problem for the rest. I'll look into what people did there to get things running
EDIT2: Downgraded Mesa to the previous stable version. Now things work.
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 478

PostPosted: Sun Feb 16, 2025 4:36 pm    Post subject: Reply with quote

I have an Nvidia GPU. I am assuming since you were affected by the error in that link (Could not initialize GLX) that you have either an AMD GPU or Intel. I don't know enough about it so I can't say if it is feasible or even recommended, but rather than downgrade, building Mesa without the opencl use flag might be an alternative solution until they update their appimage. You can try it or someone else here that is more familiar with the Mesa ebuild may be able to explain why opencl is recommended or necessary with your particular graphics card.
I assumed this, possibly incorrectly, based on the comment on the issues link:
Code:
If MESA is compiled with Rusticl the AppImage fails to start on some Intel/AMD iGPUs, so many distributions are affected!

You can downgrade (no nice solution) mesa to an older version and the AppImage will start again.

To fix this issue the code that initializes GLX should be updated to work with latest release of mesa
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum