flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

Flameshot captures wrong screen

Open OhaDerErste opened this issue 2 years ago • 18 comments

Flameshot Version

Flameshot v12.1.0 (-) Compiled with Qt 5.15.5 linux: 6.1.11-zen1-1-zen arch: unknown

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

Arch Linux

Description

Flameshot captures the wrong display https://user-images.githubusercontent.com/77100649/218283768-c05d6873-4daf-44bc-80c6-60c4e4d01686.mp4 This is the error I'm getting in the terminal Unable to get current screen, starting to use primary screen. It may be a cause of logical error and working with a wrong screen. Unable to get current screen, starting to use primary screen. It may be a cause of logical error and working with a wrong screen. qt.qpa.wayland: Wayland does not support QWindow::requestActivate() Unable to get current screen, starting to use primary screen. It may be a cause of logical error and working with a wrong screen. Unable to get current screen, starting to use primary screen. It may be a cause of logical error and working with a wrong screen. flameshot: info: Screenshot aborted.

Steps to reproduce

run flameshot gui

Screenshots or screen recordings

https://user-images.githubusercontent.com/77100649/218283768-c05d6873-4daf-44bc-80c6-60c4e4d01686.mp4

System Information

Monitor configuration image System information:

Operating System: Arch Linux KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.8 Kernel Version: 6.1.11-zen1-1-zen (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor Memory: 31.3 GiB of RAM Graphics Processor: AMD Radeon RX 6600 XT Manufacturer: ASUS

OhaDerErste avatar Feb 11 '23 22:02 OhaDerErste

Might have been fixed by #3035. Would you please try the AUR and see if it works? AUR is maintained by us and is building against HEAD

mmahmoudian avatar Feb 11 '23 22:02 mmahmoudian

Same problem with flameshot-git.

OhaDerErste avatar Feb 12 '23 10:02 OhaDerErste

This seems to fix it but Keybinds dont work https://github.com/flameshot-org/flameshot/issues/2364#issuecomment-1072917949

OhaDerErste avatar Feb 14 '23 16:02 OhaDerErste

Which keybinding?

mmahmoudian avatar Feb 14 '23 16:02 mmahmoudian

Every keybind like CTRL+C, CTRL+S, ... doesnt work with QT_QPA_PLATFORM=xcb

OhaDerErste avatar Feb 14 '23 17:02 OhaDerErste

Any news?

OhaDerErste avatar Feb 16 '23 19:02 OhaDerErste

I'm still having the same screens issue even on the Git version from the AUR.

Flameshot v12.1.0 (3ededae5) Compiled with Qt 5.15.8

image

gianmarcogg03 avatar Mar 30 '23 19:03 gianmarcogg03

@OhaDerErste

Every keybind like CTRL+C, CTRL+S, ... doesnt work with QT_QPA_PLATFORM=xcb

Can you share your flameshot config (./config/flameshot/flameshot.ini)

mmahmoudian avatar Apr 02 '23 06:04 mmahmoudian

that file doesnt exist on my machine

OhaDerErste avatar Apr 02 '23 15:04 OhaDerErste

Sorry, I mis-typed this is the address:

(~/.config/flameshot/flameshot.ini)

mmahmoudian avatar Apr 02 '23 16:04 mmahmoudian

[General] autoCloseIdleDaemon=true contrastOpacity=204 disabledTrayIcon=false drawColor=#ff0005 drawThickness=3 ignoreUpdateToVersion=12.1.0 showStartupLaunchMessage=true

[Shortcuts] TYPE_ARROW=A TYPE_CIRCLE=C TYPE_CIRCLECOUNT= TYPE_COMMIT_CURRENT_TOOL=Ctrl+Return TYPE_COPY=Ctrl+C TYPE_DELETE_CURRENT_TOOL=Del TYPE_DRAWER=D TYPE_EXIT=Ctrl+Q TYPE_MARKER=M TYPE_MOVESELECTION=Ctrl+M TYPE_MOVE_DOWN=Down TYPE_MOVE_LEFT=Left TYPE_MOVE_RIGHT=Right TYPE_MOVE_UP=Up TYPE_OPEN_APP=Ctrl+O TYPE_PENCIL=P TYPE_PIN= TYPE_PIXELATE=B TYPE_RECTANGLE=R TYPE_REDO=Ctrl+Shift+Z TYPE_RESIZE_DOWN=Shift+Down TYPE_RESIZE_LEFT=Shift+Left TYPE_RESIZE_RIGHT=Shift+Right TYPE_RESIZE_UP=Shift+Up TYPE_SAVE=Ctrl+S TYPE_SELECTION=S TYPE_SELECTIONINDICATOR= TYPE_SELECT_ALL=Ctrl+A TYPE_TEXT=T TYPE_TOGGLE_PANEL=Space TYPE_UNDO=Ctrl+Z

OhaDerErste avatar Apr 03 '23 08:04 OhaDerErste

I see similar things even when emptying my config.

teto avatar Jul 19 '23 21:07 teto

Same here :-(

patrick7 avatar Aug 04 '23 19:08 patrick7

Can you try downloading and running the nightly builds (for instance AppImage or Flatpak) and see of the issue persists? If you are on Arch-based distro we also provide AUR.

mmahmoudian avatar Aug 05 '23 07:08 mmahmoudian

I have the same issue running flameshot-git. Running manually flameshot gui give the same log as OP.

kilaketia avatar Sep 28 '23 08:09 kilaketia

I'm seeing the same behavior but only with a single monitor, so I'm not sure if this is necessarily a multi-monitor issue as implied in the OP (or perhaps a separate issue).

I don't see anything in the logs but when I capture something with flameshot gui the image to be captured is something that was recently on my (single) monitor but not currently.

Flameshot v12.1.0 (0bbb9528) Compiled with Qt 5.15.10 GPU: NVIDIA Corporation GA107GLM [RTX A1000 6GB Laptop GPU] CPU: 13th Gen Intel(R) Core(TM) i7-13800H Desktop: xmonad OS: Arch Kernel: 6.1.55-lts

Furthermore, the only reason I noticed this issue was because I recently moved my configuration from another laptop on which this was working fine. The configuration and software are the same, but the hardware is obviously different. This older laptop uses a GTX 1050 Nvidia GPU with an Intel i5-9300H CPU, and notably the older laptop requires optimus-manager to get GPU switching to work whereas the new one above does not.

ndwarshuis avatar Oct 16 '23 18:10 ndwarshuis

This issue fixed itself for me with a kernel update. Not sure which one did it but I'm on 6.6.17 right now and flameshot is still 12.1.0, so definitely not a flameshot issue.

ndwarshuis avatar Feb 22 '24 15:02 ndwarshuis

Hy, I have 6.6.31 here and still the bug.

@OhaDerErste Do you have a panning ?

I have similar setup that you (my main screen middle) so I have a panning and it screenshot the first always.

$ xrandr -q
Screen 0: minimum 320 x 200, current 5760 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 309mm x 174mm

Notice the +1920+0.

I have digged a bit and it seems to be related to Qscreen. IIRC (I wasn't able to finish the fix I was working on) it is related on this kind of snippet. where x is 0 for all screen because it is related to the actual physical screen and not viewport. https://github.com/flameshot-org/flameshot/blob/a1dda59108d420a26d603a40d1c7d25e4114d748/src/utils/screengrabber.cpp#L168-L180

Et7f3 avatar Jun 03 '24 09:06 Et7f3