FineFindus/eyedropper

[AUR] "Failed to Pick a Color"

Closed this issue · 10 comments

Similar to #6 and #16, but

  1. I've installed from AUR (eyedropper package)
  2. Happens on a DE (Cinnamon)

OS: EndeavourOS Linux x86_64
DE: Cinnamon
Version: eyedropper 0.6.0-1

1

Not sure if this should be reported here, since its an unofficial package. Please feel free to close it.

As this issue occurred in a third party project, please test if it persists when using the flatpak version. Please also include the debug information (About EyedropperTroubleshootingDebugging Information)

As in screenshot I've linked, there's no Hamburger menu, so I'm unable to retrieve Debug Information. Unfortunately I can't install from Flatpak due to space constraints.

However, I cross-checked by installing eyedropper-git package from AUR, and it came up with following error on command line:

2

So I installed xdg-desktop-portal and xdg-desktop portal-gnome:

3

Now, after a Restart, it shows following error:

4

Is there any other information I can provide, that might be useful?

Output of
/usr/lib/xdg-desktop-portal --replace --verbose

XDP: load portals from /usr/share/xdg-desktop-portal/portals

(/usr/lib/xdg-desktop-portal:41789): xdg-desktop-portal-WARNING **: 08:26:33.137: Failed to create background monitor: Failed to own background monitor D-Bus name

(/usr/lib/xdg-desktop-portal:41789): xdg-desktop-portal-WARNING **: 08:26:33.138: No skeleton to export
XDP: Falling back to gnome.portal for org.freedesktop.impl.portal.Wallpaper
XDP: providing portal org.freedesktop.portal.Wallpaper
XDP: Falling back to gnome.portal for org.freedesktop.impl.portal.Account
XDP: using org.freedesktop.impl.portal.Account at org.freedesktop.impl.portal.desktop.gnome

XDP: providing portal org.freedesktop.portal.Account
XDP: Falling back to gtk.portal for org.freedesktop.impl.portal.Email
XDP: providing portal org.freedesktop.portal.Email
XDP: Falling back to gnome-keyring.portal for org.freedesktop.impl.portal.Secret
XDP: providing portal org.freedesktop.portal.Secret
XDP: Falling back to gnome.portal for org.freedesktop.impl.portal.DynamicLauncher
XDP: providing portal org.freedesktop.portal.DynamicLauncher
XDP: Falling back to gnome.portal for org.freedesktop.impl.portal.ScreenCast
XDP: providing portal org.freedesktop.portal.ScreenCast
XDP: Falling back to gnome.portal for org.freedesktop.impl.portal.RemoteDesktop
XDP: providing portal org.freedesktop.portal.RemoteDesktop
XDP: org.freedesktop.portal.Desktop acquired

Found a similar issue here: flatpak/xdg-desktop-portal#861

Sorry for the long silence, I'm currently relatively busy, so I'll try to fix this issue over the coming weeks.

As in screenshot I've linked, there's no Hamburger menu, so I'm unable to retrieve Debug Information.

Interesting, I see. How do you even use the app without the header bar? Without it, it's missing most of its features…

However, I cross-checked by installing eyedropper-git package from AUR, and it came up with following error on command line:

While I appreciate the effort, there hasn't been any changes to the picker system between the latest release and the head, so starting the app with RUST_LOG=eyedropper=debug would've achieved the same result.

Is there any other information I can provide, that might be useful?

Would it be possible for you to test if it works on GNOME? I have the feeling, that it might be related to the portal implementation. Also, I noticed, that in your output of /usr/lib/xdg-desktop-portal --replace --verbose the Screenshot portal is missing. I will try to recreate the issue in cinnamon, but I can't promise much.

I refactored the color picking code in d979289, could you please recompile and test if the issue still persists?

I refactored the color picking code in d979289, could you please recompile and test if the issue still persists?

Yes, it still persists.

RUST_LOG=eyedropper=debug eyedropper
 INFO  eyedropper::application > Eyedropper (com.github.finefindus.eyedropper)
 INFO  eyedropper::application > Version: 0.6.0 ()
 INFO  eyedropper::application > Datadir: /usr/share/eyedropper
 DEBUG eyedropper::application::imp > GtkApplication<App>::startup
 DEBUG eyedropper::application::imp > GtkApplication<App>::activate
 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"]
 DEBUG eyedropper::window           > Picking a color using the color picker
 ERROR eyedropper::window           > Portal request didn't succeed: Other
 DEBUG eyedropper::window           > Picking a color using the color picker
 ERROR eyedropper::window           > Portal request didn't succeed: Other
 DEBUG eyedropper::window           > Window Size: 300x445

Sorry for the long silence, I'm currently relatively busy, so I'll try to fix this issue over the coming weeks.

Could you let this issue linger for a bit? I'd be able to test it on GNOME & would love to be able to use it, but I've also got a lot on my plate these days 😄

Sure, no problem. It might also be worthwhile testing if other color picking apps work, for example Contrast, if not, it would be an issue related to the portal implementation, which I can do nothing about.

Same problem but on the flatpak version.

OS: EndeavourOS Linux x86_64.
DE: XFCE4.
Version: 0.6.0.

testing if other color picking apps work, for example Contrast

For me same error:

Mar 09 10:27:09.322 ERROR contrast::colour_entry: Failed to pick a color Portal request didn't succeed: Other

testing if other color picking apps work, for example Contrast

For me same error:

Mar 09 10:27:09.322 ERROR contrast::colour_entry: Failed to pick a color Portal request didn't succeed: Other

In that case, this is an error with the portal implementation of the desktop environment/ window manager. Please open an issue there.