-
Notifications
You must be signed in to change notification settings - Fork 96
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
Crash - "IndexError and xdg-portal Error Code 2 on Ubuntu 22.04.3 LTS with Wayland" #533
Comments
Thanks for reporting, @jakemerson. I also started to get this Error on my Arch Linux today, after some system updates. Working on it. |
There must have been changes in Unfortunately, I don't know (yet), where this new permission is actually stored. It's doesn't seem to be managed by "Settings" -> "Apps", which in Gnome is usually the place to grant permissions. But screenshot permission only show up for FlatPak applications there, as usual). If someone has more info, that'd be great! 🙂 |
@jakemerson, can you please try to run with using strace ./NormCap-0.4.4-x86_64.AppImage PS: Your log file seems to be generated by the Python version of NormCap, not the AppImage as you reported in the ticket. If this is true, run strace normcap
# or
strace ~/.local/bin/normcap |
Hello, thanks for responding to me. |
Thanks for trying, @jakemerson. One more idea: Can you try running
and then retry starting NormCap? If a modal dialog appears, asking you to "share" a screenshot or "grant permission", confirm that. Does that work? PS: You can show all permissions with:
and revert the added permission by running
|
I installed flatpak version and set the permission, but still dont work I received that output: 22:39:09 - ERROR - normcap.screengrab.dbus_portal:103 - Error code 2 received from xdg-portal! System:
Variables:
Exception:
Traceback:
22:39:09 - CRITICAL - normcap:192 - Please open an issue with the output above on https://github.com/dynobo/normcap/issues |
Thanks again, @jakemerson. I just released v0.5.0-beta1, which aims to also improve the permission handling on Wayland systems. Do you want to give the AppImage a try? If that also doesn't work, could you please run |
but when i click on "OK" nothing happens. And then i receive this output: ./NormCap-0.5.0-beta1-x86_64.AppImage |
Hi @jakemerson, thanks for this info, I think we are getting closer. I just launched a VM with Ubuntu 22.04.3, and I really think the issue is a usual suspect: Waylands xdg portal permission handling. (Unfortunately, it is quite cumbersome to work with it as a developer, the implementation is constantly changing and its documentation poor). For me, on that fresh install, it behaved like this: (Now that I see it, I remember that this Gnome version, screenshot permissions could not be granted permanently, instead one had to deal with this sharing dialog on every NormCap capture, see #264). However, if I click "share", then NormCap opens (and also this NormCap Error popup you posted, which actually doesn't help at all in that Gnome version... 🙈 ) I'm wondering: Don't you see those native screen sharing dialogs at all? How do other screenshot applications behave, e.g. |
I don't see any dialog But, thanks for your help |
@jakemerson, okay, hard to say where the problem is, in that case. May last idea would be to check, if you have $ sudo apt list --installed xdg-desktop-portal*
xdg-desktop-portal-gnome/jammy-updates, now 42.1-0ubuntu1 amd [installed, automatic]
xdg-desktop-portal-gtk/jammy, now 1.14.0-1build1 amd [installed, automatic]
xdg-desktop-portal/jammy-updates, now 1.14.4-1ubuntu2~22.04.1 amd [installed, automatic] I'm closing this issue for now, as I'm not able to reproduce this issue on Ubuntu 22.04.3 with Wayland, so it might be something configuration specific. If any new information come up, or if someone else has the same issue on this system, please don't hesitate to reopen! 🙂 |
Hi again. Somehow now a popup appears and ask me to share the screenshot with normcap. And then it works! |
Thanks for letting me know, @jakemerson! |
What happened?
When running NormCap on Ubuntu 22.04.3 LTS using Wayland, I encounter an
IndexError
and an error message indicating "Error code 2 received from xdg-portal!"14:52:54 - ERROR - normcap.screengrab.dbus_portal:103 - Error code 2 received from xdg-portal!
14:52:54 - CRITICAL - normcap:161 - Uncaught exception! Quitting NormCap!
System:
Variables:
Exception:
Traceback:
14:52:54 - CRITICAL - normcap:192 - Please open an issue with the output above on https://github.com/dynobo/normcap/issues
How did you install NormCap?
AppImage (Linux)
Operating System + Version?
Ubuntu 22.04.3 LTS
[Linux only] Display Server (DS) + Desktop environment (DE)?
DS:Wayland, DE:GNOME
Debug log output?*
The text was updated successfully, but these errors were encountered: