flameshot-org / flameshot

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

screenshot teared/corrupted with "flameshot screen" on main monitor #2910

Open Teal2CA opened 2 years ago

Teal2CA commented 2 years ago

Flameshot Version

Flameshot v12.1.0 (-) Compiled with Qt 5.15.4

Installation Type

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

Operating System type and version

Linux (void linux) 5.18.19_1

Description

i have an issue with "flameshot screen" where the result screenshot contains tearing/corruption only on my main monitor.

Steps to reproduce

  1. run flameshot screen -d 2000
  2. quickly move cursor to main monitor

Screenshots or screen recordings

screenshots taken on main monitor, notice how it glitches through wallpaper and firefox which is on second monitor and how retaking the same screen without changes over and over produces different results 2022-09-17_11-57 2022-09-17_11-58 2022-09-17_11-58_3

expected result: 2022-09-17_12-40

System Information

uname -a

Linux hostname 5.18.19_1 #1 SMP PREEMPT_DYNAMIC Thu Aug 25 14:36:55 UTC 2022 x86_64 GNU/Linux

inxi --width 80 --system --graphics

System:
  Host: hostname Kernel: 5.18.19_1 arch: x86_64 bits: 64 Desktop: bspwm
    v: 0.9.10 Distro: Void Linux
Graphics:
  Device-1: NVIDIA GP108 [GeForce GT 1030] driver: nvidia v: 515.65.01
  Display: server: X.Org v: 21.1.4 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia resolution:
    1: 1920x1080~60Hz 2: 1280x1024~60Hz
  OpenGL: renderer: NVIDIA GeForce GT 1030/PCIe/SSE2
    v: 4.6.0 NVIDIA 515.65.01

monitor configuration:

xrandr --listactivemonitors

Monitors: 2
 0: +*DP-0 1920/477x1080/268+1280+0  DP-0
 1: +HDMI-0 1280/300x1024/230+0+0  HDMI-0

layout (sorry!)

#####################################
#            #                      #
#            #                      #
#   HDMI-0   #         DP-0         #
#            #                      #
##############                      #
             ########################

wm: bspwm 0.9.10 compositor: picom v9.1

cantenna commented 2 years ago

Have the same issue on Arch, latest updates.

Have tried pacman and AUR flameshot-git, issue persists.

I tried downgrading too, still present.

Issue must then be related to a dependency

TheBeardOfTruth commented 1 year ago

Can confirm, discovered this when poking around for #3027

Screenshot_2022-12-17_14-23-49

Screenshot_2022-12-17_14-08-47

Screen 0: minimum 8 x 8, current 11520 x 2160, maximum 32767 x 32767

DP-0 connected 3840x2160+7680+0 (normal left inverted right x axis y axis) 620mm x 340mm

DP-2 connected 3840x2160+0+0 (normal left inverted right x axis y axis) 620mm x 340mm

DP-4 connected primary 3840x2160+3840+0 (normal left inverted right x axis y axis) 620mm x 340mm

Fractional scaling off, seems to only affect flameshot screen.

Specifically it appears that flameshot ends up identifying more than one screen as active at once and interleaves them, in the first screenshot it appears to be my leftmost and rightmost screen and in the second one it's the center screen interleaved with itself.