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 take screenshot via portal: Screenshot failed #293

Open
deafboy opened this issue Dec 4, 2024 · 8 comments
Open

Failed to take screenshot via portal: Screenshot failed #293

deafboy opened this issue Dec 4, 2024 · 8 comments

Comments

@deafboy
Copy link

deafboy commented Dec 4, 2024

What Happened?

The initial window opens, although it has sharp corners instead of standard rounded corners. The screenshot type selection works, and correctly attempts to capture desktop / window / area as requested. After clicking the "Take Screenshot" button the screen flashes briefly, and the app exits. Nothing is saved in the screenshot folder, nor the clipboard.

Flatseal shows X11 windowing system permission enabled and "Session Bus" talks to "org.gnome.Shell.Screenshot"

[deafboy@latitude7420 ~]$ flatpak run io.elementary.screenshot 

** (process:12366): WARNING **: 19:20:56.513: Error writing credentials to socket: Error sending message: Broken pipe
MESA: error: Failed to query drm device.
libEGL warning: egl: failed to create dri2 screen
libEGL warning: DRI2: could not open /dev/dri/card1 (No such file or directory)
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen

** (io.elementary.screenshot:2): WARNING **: 19:21:05.318: Application.vala:117: Failed to take screenshot via portal: Screenshot failed
[deafboy@latitude7420 ~]$ 
[deafboy@latitude7420 ~]$ flatpak permission-show io.elementary.screenshot
Table      Object     App                      Permissions Data
background background io.elementary.screenshot yes         0x00
[deafboy@latitude7420 ~]$

Steps to Reproduce

  1. Open the flatpak version 8.0.1 of Screenshot app
  2. Click "Take Sreenshot"
  3. App exits

Expected Behavior

  1. Open the flatpak version 8.0.1 of Screenshot app
  2. Click "Take Sreenshot"
  3. App captures the screenshot and offers what to do with it

OS Version

7.x (Horus)

Session Type

Classic Session (X11, This is the default)

Software Version

Latest release (I have run all updates)

Log Output

** (process:12366): WARNING **: 19:20:56.513: Error writing credentials to socket: Error sending message: Broken pipe
MESA: error: Failed to query drm device.
libEGL warning: egl: failed to create dri2 screen
libEGL warning: DRI2: could not open /dev/dri/card1 (No such file or directory)
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen

** (io.elementary.screenshot:2): WARNING **: 19:21:05.318: Application.vala:117: Failed to take screenshot via portal: Screenshot failed

Hardware Info

No response

@edav-mx
Copy link

edav-mx commented Dec 10, 2024

Hi, same problem here (fully upgraded Elementary 7 as of today):

Log Output

edav@Victus-E:~$ flatpak permission-show io.elementary.screenshot
Table      Object     App                      Permissions Data
background background io.elementary.screenshot yes         0x00

edav@Victus-E:~$ flatpak run io.elementary.screenshot
_amdgpu_device_initialize: amdgpu_get_auth (1) failed (-1)
amdgpu: amdgpu_device_initialize failed.
libEGL warning: egl: failed to create dri2 screen
libEGL warning: DRI2: could not open /dev/dri/card1 (No such file or directory)
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen

** (io.elementary.screenshot:2): WARNING **: 16:05:39.280: Application.vala:117: Failed to take screenshot via portal: Screenshot failed

@DieterPi
Copy link

Also affected here, since installing the latest updates.

@xtelcz
Copy link

xtelcz commented Dec 12, 2024

petr@StarBook5:~$ flatpak permission-show io.elementary.screenshot
Table      Object     App                      Permissions Data
background background io.elementary.screenshot yes         0x00

petr@StarBook5:~$ flatpak run io.elementary.screenshot

(io.elementary.screenshot:2): Gtk-WARNING **: 17:59:05.365: Locale not supported by C library.
	Using the fallback 'C' locale.
MESA: error: Failed to query drm device.
libEGL warning: egl: failed to create dri2 screen
libEGL warning: DRI2: could not open /dev/dri/card1 (No such file or directory)
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen

** (io.elementary.screenshot:2): WARNING **: 17:59:11.741: Application.vala:117: Failed to take screenshot via portal: Screenshot failed

@lenemter
Copy link
Member

We need to backport portals 8.0.0 to fix this. I'll se if we can do this

@lenemter
Copy link
Member

Actually, OS 7 already has screenshots portal. Maybe the issue is in screenshots app itself

@stsdc
Copy link
Member

stsdc commented Dec 13, 2024

Just updated the app to 8.0.1 on elementary 7.1 and it throws this:
obraz

** (io.elementary.screenshot:2): WARNING **: 14:03:25.910: Application.vala:117: Failed to take screenshot via portal: Screenshot failed

Also the window of the screenshot app itself doesn't have any decoration -- no rounded corners.

@stsdc
Copy link
Member

stsdc commented Dec 13, 2024

I can confirm that 8.0.1 has the breaking change. Just compiled 8.0.0 on elementary 7.1 and it works.

@jalakid
Copy link

jalakid commented Dec 23, 2024

same problem with elementary os 8

$ flatpak run io.elementary.screenshot
MESA: error: Failed to query drm device.
libEGL warning: egl: failed to create dri2 screen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants