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

Flatpak version does not start on Pop-Os based on Ubuntu 22.04 #65

Open
cemeroncel opened this issue May 6, 2023 · 3 comments
Open
Labels
bug Something isn't working

Comments

@cemeroncel
Copy link

I am using Pop-Os based on Ubuntu 22.04. I installed the Flatpak version, but the application does not start. When I run

flatpak run com.github.finefindus.eyedropper

I get the following error

(eyedropper:2): Gdk-WARNING **: 10:14:02.791: The program 'eyedropper' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 515 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

I tried installing both using the software center of Pop-Os, which uses Flatpak for third-party applications and also via the command line

flatpak install eyedropper

I am using X window system.

Thanks in advance.

@cemeroncel cemeroncel added the bug Something isn't working label May 6, 2023
@FineFindus
Copy link
Owner

This is very strange, I've used Eyedropper on both Pop_OS! and (Ubuntu) GNOME X11. Did you modify anything special about your system?

Could you please run flatpak info --show-permissions com.github.finefindus.eyedropper to see if it has permission to run on X11and flatpak run --env=RUST_LOG=trace --env=G_MESSAGES_DEBUG=all com.github.finefindus.eyedropper to get the full application logs?

@cemeroncel
Copy link
Author

Hi,

Thank you for the fast reply, and sorry for my slow response. I have some additional PPAs provided by the hardware vendor of my laptop (Tuxedo Computers) but I don't think it is related. I don't remember modifying anything. For some applications, I am using Flatseal to manage permissions.

Here are the info that you requested. I hope it helps.

Running flatpak info --show-permissions com.github.finefindus.eyedropper gives

[Context]
sockets=x11;wayland;fallback-x11;
devices=dri;

[Environment]
G_MESSAGES_DEBUG=none
RUST_BACKTRACE=1

while flatpak run --env=RUST_LOG=trace --env=G_MESSAGES_DEBUG=all com.github.finefindus.eyedropper returns

 INFO  eyedropper::application > Eyedropper (com.github.finefindus.eyedropper)
 INFO  eyedropper::application > Version: 0.6.0 ()
 INFO  eyedropper::application > Datadir: /app/share/eyedropper
(eyedropper:2): GLib-GIO-DEBUG: 15:34:47.349: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
 DEBUG eyedropper::application::imp > GtkApplication<App>::startup
(eyedropper:2): GVFS-DEBUG: 15:34:47.474: org.gtk.vfs.MountTracker.listMountableInfo call failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown (g-dbus-error-quark, 2)

(eyedropper:2): GLib-GIO-DEBUG: 15:34:47.475: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
 DEBUG eyedropper::application::imp > GtkApplication<App>::activate
(eyedropper:2): GLib-GIO-DEBUG: 15:34:47.628: _g_io_module_get_default: Found default implementation keyfile (GKeyfileSettingsBackend) for ‘gsettings-backend’
 DEBUG eyedropper::window           > Window Size: 300x445
 DEBUG eyedropper::window           > Maximized: false
 DEBUG eyedropper::window           > Format-Order: ["name", "hex", "rgb", "hsl", "hsv", "cmyk", "xyz", "cielab", "hwb", "hcl", "lms", "hunterlab"]

(eyedropper:2): Gdk-WARNING **: 15:34:47.782: The program 'eyedropper' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 486 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Best

@FineFindus
Copy link
Owner

Honestly, I've never seen this error, and I'm not quite sure what causes it, nor could I reproduce it yet. I did some research, it seems like the solution is to run it with --share=ipc (flatpak run --env=RUST_LOG=trace --env=G_MESSAGES_DEBUG=all --share=ipc com.github.finefindus.eyedropper)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants