flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
24.93k stars 1.6k forks source link

[Arch Linux KDE] qt.qpa.wayland: Wayland does not support QWindow::requestActivate() #2974

Open andreacorinti opened 1 year ago

andreacorinti commented 1 year ago

Flameshot Version

Flameshot v12.1.0 (-)
Compiled with Qt 5.15.5

Installation Type

User repository (AUR)

Operating System type and version

Arch Linux

Description

Everything was working fine until today, maybe some updates messed up something

Steps to reproduce

xab@archxab ~ :( $ flameshot gui
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
flameshot: info: Screenshot aborted.

Screenshots or screen recordings

No response

System Information

System:
  Host: archxab Kernel: 6.0.7-arch1-1 arch: x86_64 bits: 64 Desktop: KDE Plasma
    v: 5.26.3 Distro: Arch Linux
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nouveau
    v: kernel
  Device-2: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Device-3: Azurewave USB2.0 HD UVC WebCam type: USB driver: uvcvideo
  Display: wayland server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.5
    compositor: kwin_wayland driver: X: loaded: amdgpu,modesetting
    dri: radeonsi,nouveau gpu: nouveau,amdgpu resolution: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: AMD Radeon Vega 10 Graphics
    (raven LLVM 14.0.6 DRM 3.48 6.0.7-arch1-1)
CoelacanthusHex commented 1 year ago

Same issue here.

Flameshot v12.1.0 (-)
Compiled with Qt 5.15.5

From Arch Official Repo.

System:
  Host: new-laptop.coelacanthus.internal Kernel: 6.0.7-zen1-1-zen arch: x86_64
    bits: 64 Desktop: KDE Plasma v: 5.26.3 Distro: Arch Linux
Graphics:
  Device-1: NVIDIA GA107BM [GeForce RTX 3050 Mobile] driver: nvidia
    v: 520.56.06
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel
  Device-3: IMC Networks Integrated Camera type: USB driver: uvcvideo
  Display: wayland server: X.org v: 1.21.1.4 with: Xwayland v: 22.1.5
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: nvidia
    dri: radeonsi,nouveau gpu: nvidia,amdgpu resolution: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: AMD Radeon Graphics (renoir LLVM
    14.0.6 DRM 3.48 6.0.7-zen1-1-zen)
mmahmoudian commented 1 year ago

can you both confirm that you were using the KDE Wayland before this as well.

andreacorinti commented 1 year ago

can you both confirm that you were using the KDE Wayland before this as well.

yep

actually, after some yay and updates, for me the issue was automatically solved...but sometimes happens again: don't really sure what's the cause (beside KDE Wayland, I guess)

ms-vs commented 1 year ago

Same here, also with version v12.1.0 (-)

I'm on Fedora, not Arch, but also use KDE Wayland

When I start flameshot gui normally I also get qt.qpa.wayland: Wayland does not support QWindow::requestActivate() so I don't think opening another issue is needed

Also, it works when launching with the env QT_QPA_PLATFORM=xcb as suggested here but then keybinds won't work

alxndr13 commented 1 year ago

Got the same issue, but without KDE. I'm using sway.

dvoytik commented 1 year ago

Same problem on sway. Executing it according to https://github.com/flameshot-org/flameshot/blob/master/docs/Sway%20and%20wlroots%20support.md

koloved commented 1 year ago

I have the same problem, but it kinda works but it always open on second monitor (it use right monitor on AMD gpu)

Also it didnt copy URL to clipboard after uploading

xrandr --listactivemonitors Monitors: 2 0: +*XWAYLAND1 1920/530x1080/300+1920+0 XWAYLAND1 1: +XWAYLAND0 1920/710x1080/400+0+0 XWAYLAND0

inxi --graphics --system --width=80 System: Host: green-b660mitxac Kernel: 6.1.6-zen1-1-zen arch: x86_64 bits: 64 Desktop: KDE Plasma v: 5.26.5 Distro: Garuda Linux Graphics: Device-1: NVIDIA GA106 [Geforce RTX 3050] driver: nvidia v: 525.78.01 Device-2: ANYKA V380 FHD Camera type: USB driver: snd-usb-audio,uvcvideo Display: wayland server: X.org v: 1.21.1.6 with: Xwayland v: 22.1.7 compositor: kwin_wayland driver: N/A resolution: 1: 1920x1080 2: 1920x1080 API: OpenGL v: 4.6.0 NVIDIA 525.78.01 renderer: NVIDIA GeForce RTX 3050/PCIe/SSE2

flameshot gui qt.qpa.wayland: Wayland does not support QWindow::requestActivate() flameshot: info: Screenshot aborted.

DragoonAethis commented 1 year ago

Fixed it on my system, but how it got into the broken state in the first place, I have no idea.

In your ~/.config/kwinrc, go to section [Plugins], find screenshotEnabled=false and set it to true. This is apparently an internal plugin that can be disabled in KCM Workspace Behavior -> Desktop Effects (if you click on the Filter icon and uncheck Exclude Internal Effects).

adamant-pwn commented 1 year ago

I recently started having the same problem on Hyprland. Worked fine before...

italovieira commented 1 year ago

I'm having the same problem:

flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
Flameshot v12.1.0 (-)
Compiled with Qt 5.15.5

inxi output

System:
  Host: home Kernel: 6.4.12-arch1-1 arch: x86_64 bits: 64 Desktop: sway
    v: 1.8.1 Distro: Arch Linux
Graphics:
  Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] driver: amdgpu v: kernel
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.2.0
    compositor: sway v: 1.8.1 driver: gpu: amdgpu resolution: 1920x1080~75Hz
  Message: No known Wayland EGL/GBM data sources. API: EGL/GBM

I have grim xdg-desktop-portal and xdg-desktop-portal-wlr installed as suggested in https://wiki.archlinux.org/index.php?title=Flameshot&oldid=778281#Flameshot_starts_with_an_error_on_Sway_/_wlroots.

Monirzadeh commented 1 year ago

same here