Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load module "canberra-gtk-module" and "pk-gtk-module" #3583

Open
DWolf-19 opened this issue Apr 25, 2024 · 1 comment
Open

Failed to load module "canberra-gtk-module" and "pk-gtk-module" #3583

DWolf-19 opened this issue Apr 25, 2024 · 1 comment
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.

Comments

@DWolf-19
Copy link

Flameshot Version

Flameshot v12.1.0 ()
Compiled with Qt 5.15.10

Installation Type

Flatpak from Flathub

Operating System type and version

Fedora 39

Description

When I run flatpak run org.flameshot.Flameshot gui, I see this error and nothing happen:

Gtk-Message: 13:49:33.157: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:49:33.157: Failed to load module "pk-gtk-module"
Gtk-Message: 13:49:33.158: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:49:33.158: Failed to load module "pk-gtk-module"
qt.qpa.qgnomeplatform: Could not find color scheme  ""
Qt: Session management error: Could not open network socket
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.

All flatpak permissions of the app are default.

Steps to reproduce

  1. Run flatpak run org.flameshot.Flameshot gui.
  2. Look at the error.

Screenshots or screen recordings

No response

System Information

inxi --width 80 --system --graphics:

System:
  Host: fedora Kernel: 6.8.6-200.fc39.x86_64 arch: x86_64 bits: 64
  Desktop: GNOME v: 45.5 Distro: Fedora Linux 39 (Workstation Edition)
Graphics:
  Device-1: Intel HD Graphics 5500 driver: i915 v: kernel
  Device-2: KYE Systems (Mouse Systems) Genius iSlim 1300AF V2
    driver: snd-usb-audio,uvcvideo type: USB
  Device-3: Chicony HP TrueVision HD driver: uvcvideo type: USB
  Display: wayland server: X.Org v: 23.2.4 with: Xwayland v: 23.2.4
    compositor: gnome-shell driver: dri: iris gpu: i915 resolution: 1366x768~60Hz
  API: OpenGL v: 4.6 vendor: intel mesa v: 23.3.6 renderer: Mesa Intel HD
    Graphics 5500 (BDW GT2)
  API: EGL Message: EGL data requires eglinfo. Check --recommends.

loginctl show-session $(loginctl show-user $(whoami) -p Display --value) -p Type --value:

wayland

xrandr | grep -v " disconnected ":

Screen 0: minimum 16 x 16, current 1366 x 768, maximum 32767 x 32767
eDP-1 connected primary 1366x768+0+0 (normal left inverted right x axis y axis) 340mm x 190mm
   1366x768      59.80*+
   1024x768      59.92  
   800x600       59.86  
   640x480       59.38  
   320x240       59.52  
   1152x720      59.97  
   960x600       59.63  
   928x580       59.88  
   800x500       59.50  
   768x480       59.90  
   720x480       59.71  
   640x400       59.95  
   320x200       58.96  
   1280x720      59.86  
   1024x576      59.90  
   864x486       59.92  
   720x400       59.55  
   640x350       59.77

lspci | grep -i 'vga\|3d\|2d':

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09)

lshw -class display:

WARNING: you should run this program as super-user.
  *-display                 
       description: VGA compatible controller
       product: HD Graphics 5500
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 09
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:52 memory:c2000000-c2ffffff memory:b0000000-bfffffff ioport:6000(size=64) memory:c0000-dffff
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.

uname -a:

Linux fedora 6.8.6-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Apr 13 15:14:23 UTC 2024 x86_64 GNU/Linux

flatpak run --log-session-bus org.flameshot.Flameshot
In second terminal: flatpak run org.flameshot.Flameshot
In third terminal: flatpak run org.flameshot.Flameshot gui

C1: -> org.freedesktop.DBus call org.freedesktop.DBus.Hello at /org/freedesktop/DBus
C2: -> org.freedesktop.DBus fake AddMatch for org.freedesktop.Notifications
C3: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.Notifications
C4: -> org.freedesktop.DBus fake wildcarded AddMatch for org.freedesktop.portal
C5: -> org.freedesktop.DBus fake wildcarded AddMatch for org.flameshot.Flameshot
C6: -> org.freedesktop.DBus fake wildcarded AddMatch for org.mpris.MediaPlayer2.org.flameshot.Flameshot
C7: -> org.freedesktop.DBus fake AddMatch for org.kde.StatusNotifierWatcher
C8: -> org.freedesktop.DBus fake GetNameOwner for org.kde.StatusNotifierWatcher
C9: -> org.freedesktop.DBus fake AddMatch for org.kde.KGlobalSettings
C10: -> org.freedesktop.DBus fake GetNameOwner for org.kde.KGlobalSettings
C11: -> org.freedesktop.DBus fake AddMatch for org.kde.kconfig.notify
C12: -> org.freedesktop.DBus fake GetNameOwner for org.kde.kconfig.notify
C13: -> org.freedesktop.DBus fake AddMatch for com.canonical.AppMenu.Registrar
C14: -> org.freedesktop.DBus fake GetNameOwner for com.canonical.AppMenu.Registrar
C15: -> org.freedesktop.DBus fake ListNames
B-1: <- org.freedesktop.DBus return from C1
B-1: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C2
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C3
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C4
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C5
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C6
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C7
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C8
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C9
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C10
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C11
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C12
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C13
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C14
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C15
C16: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.DBus
C17: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.Notifications
C18: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Desktop
C19: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Documents
C20: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Flatpak
C21: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.IBus
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C16
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C17
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C18
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C19
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C20
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C21
*SKIPPED*
C22: -> org.freedesktop.portal.Desktop call org.freedesktop.DBus.Properties.Get at /org/freedesktop/portal/desktop
B42609: <- :1.82 return from C22
C23: -> org.freedesktop.portal.Desktop call org.freedesktop.DBus.Properties.Get at /org/freedesktop/portal/desktop
B42610: <- :1.82 return from C23
C1: -> org.freedesktop.DBus call org.freedesktop.DBus.Hello at /org/freedesktop/DBus
C2: -> org.freedesktop.DBus fake AddMatch for org.freedesktop.Notifications
C3: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.Notifications
C4: -> org.freedesktop.DBus fake wildcarded AddMatch for org.freedesktop.portal
C5: -> org.freedesktop.DBus fake wildcarded AddMatch for org.flameshot.Flameshot
C6: -> org.freedesktop.DBus fake wildcarded AddMatch for org.mpris.MediaPlayer2.org.flameshot.Flameshot
C7: -> org.freedesktop.DBus fake AddMatch for org.kde.StatusNotifierWatcher
C8: -> org.freedesktop.DBus fake GetNameOwner for org.kde.StatusNotifierWatcher
C9: -> org.freedesktop.DBus fake AddMatch for org.kde.KGlobalSettings
C10: -> org.freedesktop.DBus fake GetNameOwner for org.kde.KGlobalSettings
C11: -> org.freedesktop.DBus fake AddMatch for org.kde.kconfig.notify
C12: -> org.freedesktop.DBus fake GetNameOwner for org.kde.kconfig.notify
C13: -> org.freedesktop.DBus fake AddMatch for com.canonical.AppMenu.Registrar
C14: -> org.freedesktop.DBus fake GetNameOwner for com.canonical.AppMenu.Registrar
C15: -> org.freedesktop.DBus fake ListNames
B-1: <- org.freedesktop.DBus return from C1
B-1: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C2
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C3
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C4
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C5
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C6
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C7
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C8
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C9
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C10
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C11
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C12
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C13
*SKIPPED*
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C14
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C15
C16: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.DBus
C17: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.Notifications
C18: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Desktop
C19: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Documents
C20: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.Flatpak
C21: -> org.freedesktop.DBus fake GetNameOwner for org.freedesktop.portal.IBus
*SKIPPED*
C22: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C23: -> org.freedesktop.DBus call org.freedesktop.DBus.GetNameOwner at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C16
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C17
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C18
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C19
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C20
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C21
*SKIPPED*
B-1: <- org.freedesktop.DBus return from C23
C24: -> org.freedesktop.portal.IBus call org.freedesktop.IBus.Portal.CreateInputContext at /org/freedesktop/IBus
B22441: <- :1.51 return from C24
C25: -> org.freedesktop.DBus call org.freedesktop.DBus.GetNameOwner at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C25
C26: -> org.freedesktop.portal.IBus call org.freedesktop.IBus.InputContext.SetCapabilities at /org/freedesktop/IBus/InputContext_14
C27: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C28: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C29: -> org.freedesktop.DBus call org.freedesktop.DBus.GetNameOwner at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C29
C30: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C31: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C32: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C33: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C34: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C35: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
B22442: <- :1.51 return from C26
Gtk-Message: 14:21:44.893: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:21:44.893: Failed to load module "pk-gtk-module"
Gtk-Message: 14:21:44.894: Failed to load module "canberra-gtk-module"
Gtk-Message: 14:21:44.894: Failed to load module "pk-gtk-module"
C24: -> org.freedesktop.portal.Desktop call org.freedesktop.portal.Settings.ReadAll at /org/freedesktop/portal/desktop
B42614: <- :1.82 return from C24
C25: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
qt.qpa.qgnomeplatform: Could not find color scheme  ""
Qt: Session management error: Could not open network socket
C26: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C27: -> org.kde.StatusNotifierWatcher call org.freedesktop.DBus.Introspectable.Introspect at /StatusNotifierWatcher
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.ServiceUnknown from C27
C28: -> org.freedesktop.DBus call org.freedesktop.DBus.AddMatch at /org/freedesktop/DBus
C29: -> org.freedesktop.DBus call org.freedesktop.DBus.GetNameOwner at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return error org.freedesktop.DBus.Error.NameHasNoOwner from C29
C30: -> org.freedesktop.DBus call org.freedesktop.DBus.RemoveMatch at /org/freedesktop/DBus
C31: -> org.freedesktop.DBus call org.freedesktop.DBus.RemoveMatch at /org/freedesktop/DBus
C32: -> org.freedesktop.DBus call org.freedesktop.DBus.RemoveMatch at /org/freedesktop/DBus
C33: -> org.freedesktop.DBus call org.freedesktop.DBus.RequestName at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameOwnerChanged at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameAcquired at /org/freedesktop/DBus
B-1: <- org.freedesktop.DBus return from C33
B-1: <- org.freedesktop.DBus signal org.freedesktop.DBus.NameOwnerChanged at /org/freedesktop/DBus
@DWolf-19 DWolf-19 added the Unconfirmed Bug The bug is not confirmed by anyone else. label Apr 25, 2024
@SirRFI
Copy link

SirRFI commented May 3, 2024

Same problem here on freshly installed Fedora 40 (GNOME, Wayland):

$ flatpak run org.flameshot.Flameshot
Gtk-Message: 11:53:52.245: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:53:52.245: Failed to load module "pk-gtk-module"
Gtk-Message: 11:53:52.245: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:53:52.245: Failed to load module "pk-gtk-module"
qt.qpa.qgnomeplatform: Could not find color scheme  ""
Qt: Session management error: Could not open network socket
^C
$ flatpak run org.flameshot.Flameshot gui
Gtk-Message: 11:59:50.539: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:59:50.540: Failed to load module "pk-gtk-module"
Gtk-Message: 11:59:50.540: Failed to load module "canberra-gtk-module"
Gtk-Message: 11:59:50.540: Failed to load module "pk-gtk-module"
qt.qpa.qgnomeplatform: Could not find color scheme  ""
Qt: Session management error: Could not open network socket
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.
$ flatpak info org.flameshot.Flameshot

Flameshot - Powerful and simple to use screenshot software

          ID: org.flameshot.Flameshot
         Ref: app/org.flameshot.Flameshot/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 12.1.0
     License: GPL-3.0-or-later
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 3,6 MB
     Runtime: org.kde.Platform/x86_64/5.15-23.08
         Sdk: org.kde.Sdk/x86_64/5.15-23.08

      Commit: 2ceaca201ba80a63e644043a1eb2b7f61a33e0971dd558b09fa5f24d4cf58dd8
      Parent: d69d8caf3ea0b93d030e8143fbcc1ceeae94360912ffd3dcb969eb2c0cb0a516
     Subject: Allow access to xdg-pictures (360f4fa1)
        Date: 2024-01-01 03:16:46 +0000

Flameshot as native app (installed through dnf) works fine (aside from keybind issue described here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.
Projects
None yet
Development

No branches or pull requests

2 participants