hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

OBS screenshare fails #5

Closed colin-heffernan closed 1 year ago

colin-heffernan commented 1 year ago

OS is NixOS Unstable, using Hyprland via the flake.

Any time I open OBS, the screen is black, and the same error is consistently printed to journalctl. What journalctl --user spits out:

Dec 12 19:33:25 heffos-obsidian xdg-desktop-portal-hyprland[15566]: qt.qpa.xcb: could not connect to display
Dec 12 19:33:25 heffos-obsidian xdg-desktop-portal-hyprland[15566]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
Dec 12 19:33:25 heffos-obsidian xdg-desktop-portal-hyprland[15566]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Dec 12 19:33:25 heffos-obsidian xdg-desktop-portal-hyprland[15566]: Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
Dec 12 19:33:25 heffos-obsidian systemd-coredump[15569]: [🡕] Process 15566 (.hyprland-share) of user 1000 dumped core.

                                                         Module libcap.so.2 without build-id.
                                                         Module libsystemd.so.0 without build-id.
                                                         Module libxcb-util.so.1 without build-id.
                                                         Module libdbus-1.so.3 without build-id.
                                                         Module libexpat.so.1 without build-id.
                                                         Module libxkbcommon.so.0 without build-id.
                                                         Module libxkbcommon-x11.so.0 without build-id.
                                                         Module libICE.so.6 without build-id.
                                                         Module libSM.so.6 without build-id.
                                                         Module libxcb-xinput.so.0 without build-id.
                                                         Module libxcb-xkb.so.1 without build-id.
                                                         Module libxcb-xinerama.so.0 without build-id.
                                                         Module libxcb-xfixes.so.0 without build-id.
                                                         Module libxcb-sync.so.1 without build-id.
                                                         Module libxcb-shape.so.0 without build-id.
                                                         Module libxcb-render.so.0 without build-id.
                                                         Module libxcb-render-util.so.0 without build-id.
                                                         Module libxcb-randr.so.0 without build-id.
                                                         Module libxcb-keysyms.so.1 without build-id.
                                                         Module libxcb-shm.so.0 without build-id.
                                                         Module libxcb-image.so.0 without build-id.
                                                         Module libxcb-icccm.so.4 without build-id.
                                                         Module libX11-xcb.so.1 without build-id.
                                                         Module libQt5DBus.so.5 without build-id.
                                                         Module libfontconfig.so.1 without build-id.
                                                         Module libQt5XcbQpa.so.5 without build-id.
                                                         Module libqxcb.so without build-id.
                                                         Module libXdmcp.so.6 without build-id.
                                                         Module libXau.so.6 without build-id.
                                                         Module libbz2.so.1 without build-id.
                                                         Module libxcb.so.1 without build-id.
                                                         Module libpcre2-8.so.0 without build-id.
                                                         Module libgraphite2.so.3 without build-id.
                                                         Module libfreetype.so.6 without build-id.
                                                         Module libGLdispatch.so.0 without build-id.
                                                         Module libXext.so.6 without build-id.
                                                         Module libX11.so.6 without build-id.
                                                         Module libGLX.so.0 without build-id.
                                                         Module libzstd.so.1 without build-id.
                                                         Module libpcre2-16.so.0 without build-id.
                                                         Module libicudata.so.72 without build-id.
                                                         Module libicuuc.so.72 without build-id.
                                                         Module libicui18n.so.72 without build-id.
                                                         Module libharfbuzz.so.0 without build-id.
                                                         Module libz.so.1 without build-id.
                                                         Module libpng16.so.16 without build-id.
                                                         Module libGL.so.1 without build-id.
                                                         Module libgcc_s.so.1 without build-id.
                                                         Module libstdc++.so.6 without build-id.
                                                         Module libQt5Core.so.5 without build-id.
                                                         Module libQt5Gui.so.5 without build-id.
                                                         Module libQt5Widgets.so.5 without build-id.
                                                         Module .hyprland-share-picker-wrapped without build-id.
                                                         Stack trace of thread 15566:
                                                         #0  0x00007f9d0228abc7 __pthread_kill_implementation (libc.so.6 + 0x8abc7)
                                                         #1  0x00007f9d0223db46 raise (libc.so.6 + 0x3db46)
                                                         #2  0x00007f9d022284b5 abort (libc.so.6 + 0x284b5)
                                                         #3  0x00007f9d02a99bab _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x99bab)
                                                         #4  0x00007f9d03125e73 _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv (libQt5Gui.so.5 + 0x125e73)
                                                         #5  0x00007f9d03126380 _ZN22QGuiApplicationPrivate21createEventDispatcherEv (libQt5Gui.so.5 + 0x126380)
                                                         #6  0x00007f9d02cd13e5 _ZN23QCoreApplicationPrivate4initEv (libQt5Core.so.5 + 0x2d13e5)
                                                         #7  0x00007f9d031292dc _ZN22QGuiApplicationPrivate4initEv (libQt5Gui.so.5 + 0x1292dc)
                                                         #8  0x00007f9d03976c99 _ZN19QApplicationPrivate4initEv (libQt5Widgets.so.5 + 0x176c99)
                                                         #9  0x0000000000405e32 main (.hyprland-share-picker-wrapped + 0x5e32)
                                                         #10 0x00007f9d0222924e __libc_start_call_main (libc.so.6 + 0x2924e)
                                                         #11 0x00007f9d02229309 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x29309)
                                                         #12 0x0000000000407e75 _start (.hyprland-share-picker-wrapped + 0x7e75)

                                                         Stack trace of thread 15567:
                                                         #0  0x00007f9cf220ff96 _dbus_message_loader_queue_messages (libdbus-1.so.3 + 0x27f96)
                                                         #1  0x00007f9cf2218af0 _dbus_transport_get_dispatch_status (libdbus-1.so.3 + 0x30af0)
                                                         #2  0x00007f9cf2218c46 _dbus_transport_queue_messages (libdbus-1.so.3 + 0x30c46)
                                                         #3  0x00007f9cf22197ef do_reading.part.0 (libdbus-1.so.3 + 0x317ef)
                                                         #4  0x00007f9cf221a1a4 socket_handle_watch (libdbus-1.so.3 + 0x321a4)
                                                         #5  0x00007f9cf221889c _dbus_transport_handle_watch (libdbus-1.so.3 + 0x3089c)
                                                         #6  0x00007f9cf220002e _dbus_connection_handle_watch (libdbus-1.so.3 + 0x1802e)
                                                         #7  0x00007f9d01c5bc9e n/a (libQt5DBus.so.5 + 0x2ac9e)
                                                         #8  0x00007f9d02d017f4 n/a (libQt5Core.so.5 + 0x3017f4)
                                                         #9  0x00007f9d02d04bef _ZN15QSocketNotifier9activatedE17QSocketDescriptorNS_4TypeENS_14QPrivateSignalE (libQt5Core.so.5 + 0x304bef)
                                                         #10 0x00007f9d02d053eb _ZN15QSocketNotifier5eventEP6QEvent (libQt5Core.so.5 + 0x3053eb)
                                                         #11 0x00007f9d02cca56f _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2ca56f)
                                                         #12 0x00007f9d02d23347 n/a (libQt5Core.so.5 + 0x323347)
                                                         #13 0x00007f9d01d1b9db g_main_context_dispatch (libglib-2.0.so.0 + 0x589db)
                                                         #14 0x00007f9d01d1bc88 g_main_context_iterate.constprop.0 (libglib-2.0.so.0 + 0x58c88)
                                                         #15 0x00007f9d01d1bd3f g_main_context_iteration (libglib-2.0.so.0 + 0x58d3f)
                                                         #16 0x00007f9d02d22764 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x322764)
                                                         #17 0x00007f9d02cc8f1b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2c8f1b)
                                                         #18 0x00007f9d02ad4b2b _ZN7QThread4execEv (libQt5Core.so.5 + 0xd4b2b)
                                                         #19 0x00007f9d01c4a4f7 n/a (libQt5DBus.so.5 + 0x194f7)
                                                         #20 0x00007f9d02ad5e41 n/a (libQt5Core.so.5 + 0xd5e41)
                                                         #21 0x00007f9d02288e86 start_thread (libc.so.6 + 0x88e86)
                                                         #22 0x00007f9d0230fc60 __clone3 (libc.so.6 + 0x10fc60)
                                                         ELF object binary architecture: AMD x86-64
Dec 12 19:33:25 heffos-obsidian xdg-desktop-portal-hyprland[1960]: 2022/12/12 19:33:25 [ERROR] - wlroots: no output / window found

I can provide any other info as necessary.

vaxerski commented 1 year ago

Do you have qt6-wayland?

colin-heffernan commented 1 year ago

Would I have to install it separately? If so, then no.

vaxerski commented 1 year ago

it is a dep of the AUR pkg.

vaxerski commented 1 year ago

AH FUCK

I did an oopsie in one line while doing the Rev2 PR. Sec.

But yeah qt6-wayland still reqd.

vaxerski commented 1 year ago

fixed with 9fb4fae94b9bd80395c193dcaf6fdf740550cff1

verify plox

colin-heffernan commented 1 year ago

On it, will update ASAP.

colin-heffernan commented 1 year ago

The Hyprland flake still uses the old version ATM.

vaxerski commented 1 year ago

can't you compile manually? ugh, nix. @fufexan

fufexan commented 1 year ago

Updated, please check.

colin-heffernan commented 1 year ago

Sorry for the late-ish follow-up. I'm getting the same error.

colin-heffernan commented 1 year ago

Nevermind, I had to restart the compositor, all is seemingly resolved. Thanks, everyone!