flameshot
flameshot copied to clipboard
Flameshot captures wrong screen
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
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
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
Same problem with flameshot-git.
This seems to fix it but Keybinds dont work https://github.com/flameshot-org/flameshot/issues/2364#issuecomment-1072917949
Which keybinding?
Every keybind like CTRL+C, CTRL+S, ... doesnt work with QT_QPA_PLATFORM=xcb
Any news?
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
@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
)
that file doesnt exist on my machine
Sorry, I mis-typed this is the address:
(~/.config/flameshot/flameshot.ini
)
[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
I see similar things even when emptying my config.
Same here :-(
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.
I have the same issue running flameshot-git. Running manually flameshot gui
give the same log as OP.
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.
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.
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