flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

Visual tear/glitch when capturing area

Open YalandHong opened this issue 2 years ago • 22 comments

Flameshot Version

Flameshot v11.0.0 () Compiled with Qt 5.15.3 linux: 5.13.0-30-generic ubuntu-core: 20

Installation Type

Snap from Snapcraft

Operating System type and version

Ubuntu 20.04.4 LTS amd64

Description

When selecting active area, the selection box glitches considerably. See the recording below.

Strangely, when I was recording this issue using screen recorder (e.g. Kazam), the glitch became much less noticeable. And Kazam didn't record any glitch at all. So I have to record this issue using my mobile phone.

I have also tried some other screenshot tools like Shutter and not seen such issue.

Steps to reproduce

  1. Run flameshot from GNOME desktop icon.
  2. Double click system tray icon to activate area capture mode.
  3. Drag or resize the selection box with mouse.

Screenshots or screen recordings

https://user-images.githubusercontent.com/52960068/156920489-a0771603-104f-4b80-917f-886f972ce8ba.mp4

System Information

  1. OS info from uname -a:
Linux focalwnlo 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  1. Monitor information: I have only one ViewSonic monitor. Here's the output of xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080     60.00*+
   1600x1200     60.00  
   1680x1050     59.95  
   1400x1050     59.98  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x960      60.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   640x480       75.00    72.81    66.67    59.94  
   720x400       70.08 
  1. Desktop information, output by inxi --width 80 --system --graphics:
System:
  Host: focalwnlo Kernel: 5.13.0-30-generic x86_64 bits: 64 
  Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.4 LTS (Focal Fossa) 
Graphics:
  Device-1: Intel driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: i915 resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel Graphics (RKL GT1) v: 4.6 Mesa 21.2.6
  1. Graphic card information, output by sudo lshw -class display:
  *-display                 
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 04
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list fb
       configuration: depth=32 driver=i915 latency=0 mode=1920x1080 visual=truecolor xres=1920 yres=1080
       resources: iomemory:600-5ff iomemory:400-3ff irq:142 memory:6000000000-6000ffffff memory:4000000000-400fffffff ioport:4000(size=64) memory:c0000-dffff

YalandHong avatar Mar 06 '22 11:03 YalandHong

I've got the same thing!

uname -a: Linux 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

*-display                 
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 03
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:141 memory:b0000000-b0ffffff memory:a0000000-afffffff ioport:4000(size=64) memory:c0000-dffff

inxi:

System:
  Host: Gary Kernel: 5.13.0-35-generic x86_64 bits: 64 Desktop: Budgie 10.5.1 
  Distro: Ubuntu 20.04.4 LTS (Focal Fossa) 
Graphics:
  Device-1: Intel driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CML GT2) v: 4.6 Mesa 21.2.6

DoubleDroz avatar Mar 14 '22 23:03 DoubleDroz

Same problem :disappointed: uname -a

Linux trunov 5.13.0-35-generic #40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

xrandr

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+  50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.95  
   1280x1024     75.02    60.02  
   1440x900      59.89  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      75.03    70.07    60.00  
   832x624       74.55  
   800x600       72.19    75.00    60.32    56.25  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       75.00    72.81    66.67    60.00    59.94  
   720x400       70.08  
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
HDMI-3 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)

inxi --width 80 --system --graphics

System:
  Host: trunov Kernel: 5.13.0-35-generic x86_64 bits: 64 Desktop: Gnome 3.36.4 
  Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Graphics:
  Device-1: Intel driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: i915 resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CML GT2) v: 4.6 Mesa 21.2.6 

sudo lshw -class display

  *-display                 
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 03
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:144 memory:50000000-50ffffff memory:40000000-4fffffff ioport:3000(size=64) memory:c0000-dffff

artitrue avatar Mar 15 '22 17:03 artitrue

It seems everyone here are using the same setup:

  • Ubuntu 20.04
  • X11
  • Intel graphics cards with mesa driver.

mmahmoudian avatar Mar 15 '22 22:03 mmahmoudian

It does feel like a new problem, the overlay seems to be having trouble rendering

DoubleDroz avatar Mar 15 '22 22:03 DoubleDroz

I have the same problem

$ uname -a

Linux y540 5.15.11-76051511-generic #202112220937~1640185481~21.04~b3a2c21-Ubuntu SMP Mon Jan 3 16:5 x86_64 x86_64 x86_64 GNU/Linux
$ xrandr

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080    144.00*+  60.01    59.97    59.96    59.93
   1680x1050     84.94    74.89    69.88    59.95    59.88
   1600x1024     60.17
   1400x1050     85.00    74.76    70.00    59.98
   1600x900      59.99    59.94    59.95    59.82
   1280x1024     85.02    75.02    60.02
   1440x900      59.89
   1400x900      59.96    59.88
   1280x960      85.00    60.00
   1440x810      60.00    59.97
   1368x768      59.88    59.85
   1360x768      59.80    59.96
   1280x800      59.99    59.97    59.81    59.91
   1152x864     100.00    85.06    85.00    75.00    75.00    70.00    60.00
   1280x720      60.00    59.99    59.86    59.74
   1024x768      85.00    75.05    60.04    85.00    75.03    70.07    60.00
   1024x768i     86.96
   960x720       85.00    75.00    60.00
   928x696       75.00    60.05
   896x672       75.05    60.01
   1024x576      59.95    59.96    59.90    59.82
   960x600       59.93    60.00
   832x624       74.55
   960x540       59.96    59.99    59.63    59.82
   800x600       85.00    75.00    70.00    65.00    60.00    85.14    72.19    75.00    60.32    56.25
   840x525       85.02    74.96    69.88    60.01    59.88
   864x486       59.92    59.57
   800x512       60.17
   700x525       85.08    74.76    70.06    59.98
   800x450       59.95    59.82
   640x512       85.02    75.02    60.02
   720x450       59.89
   700x450       59.96    59.88
   640x480       85.09    60.00    85.01    72.81    75.00    59.94
   720x405       59.51    58.99
   720x400       85.04
   684x384       59.88    59.85
   680x384       59.80    59.96
   640x400       59.88    59.98    85.08
   576x432      100.11    85.15    85.09    75.00    75.00    70.00    60.06
   640x360       59.86    59.83    59.84    59.32
   640x350       85.08
   512x384       85.00    75.03    70.07    60.00
   512x384i      87.06
   512x288       60.00    59.92
   416x312       74.66
   480x270       59.63    59.82
   400x300       85.27    72.19    75.12    60.32    56.34
   432x243       59.92    59.57
   320x240       85.18    72.81    75.00    60.05
   360x202       59.51    59.13
   360x200       85.04
   320x200       85.27
   320x180       59.84    59.32
   320x175       85.27
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
$ sudo lshw -class display

  *-display
       description: VGA compatible controller
       product: TU117M [GeForce GTX 1650 Mobile / Max-Q]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:149 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:4000(size=128) memory:a4080000-a40fffff
  *-display
       description: VGA compatible controller
       product: CoffeeLake-H GT2 [UHD Graphics 630]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:141 memory:a2000000-a2ffffff memory:b0000000-bfffffff ioport:5000(size=64) memory:c0000-dffff
$ inxi --width 80 --system --graphics

System:
  Host: y540 Kernel: 5.15.11-76051511-generic x86_64 bits: 64
  Desktop: GNOME 3.38.4 Distro: Pop!_OS 21.04
Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] driver: nvidia
  v: 470.86
  Device-3: Acer SunplusIT Integrated Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting,nvidia
  unloaded: fbdev,nouveau,vesa resolution: 1920x1080~144Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 21.2.2

alperyilmaz avatar Mar 16 '22 00:03 alperyilmaz

@alperyilmaz Which graphics card did you use?

I have a laptop with the same dual graphics card drivers as you (NVIDIA GTX 1650 + Intel UHD 630). But I have no problem when I switch my graphics card to NVIDIA.

YalandHong avatar Mar 16 '22 01:03 YalandHong

@YalandHong I'm using "hybrid graphics" mode. I'm guessing flameshot is using integrated graphics then.. I checked nvidia-smi and it shows Xorg is using nvidia. Let me restart, switch to "nvidia graphics" power settings and see if the issue is fixed. Thanks

alperyilmaz avatar Mar 16 '22 01:03 alperyilmaz

This might be a bug in mesa Intel driver. Does this happen to any other software on your computer?

mmahmoudian avatar Mar 16 '22 07:03 mmahmoudian

OMG, flameshot group is very active and helpful. thanks for the follow-up. I don't have this problem with any other software. However, I'm using common software (fiirefox, libreoffice, pdf reader, terminal) so it might be difficult to observe similar problem in such software. If there are any other software (probably capture related) you want me to test, I can install and test. Again, thanks for this great product. It is an invaluable and time-saving tool. And thanks for the follow-up.

alperyilmaz avatar Mar 16 '22 07:03 alperyilmaz

Same here.

uname -a
Linux Jupiter 5.13.0-37-generic #42~20.04.1-Ubuntu SMP Tue Mar 15 15:44:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
*-display                 
       description: VGA compatible controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 04
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:129 memory:50000000-50ffffff memory:40000000-4fffffff ioport:3000(size=64) memory:c0000-dffff
inxi --width 80 --system --graphics
System:
  Host: Jupiter Kernel: 5.13.0-37-generic x86_64 bits: 64 
  Desktop: Cinnamon 5.2.7 Distro: Linux Mint 20.3 Una 
Graphics:
  Device-1: Intel driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel Graphics (RKL GT1) v: 4.6 Mesa 21.2.6 

ybolu avatar Mar 28 '22 17:03 ybolu

I have also seen this problem in Ksnip, another Qt-based screenshot tool.

YalandHong avatar Apr 18 '22 06:04 YalandHong

Exactly the same issue here, Ubuntu 20.04.4 LTS amd64, Flameshot v11.0.0.

inxi --width 80 --system --graphics
System:
  Host: ni-67223-1p Kernel: 5.13.0-40-generic x86_64 bits: 64 
  Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.4 LTS (Focal Fossa) 
Graphics:
  Device-1: Intel UHD Graphics driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: i915 tty: N/A 
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.2.6

AmandaBSobrinho avatar Apr 28 '22 23:04 AmandaBSobrinho

@AmandaBSobrinho would you please also provide the output of the following command:

inxi --width 80 --system --graphics

mmahmoudian avatar Apr 29 '22 06:04 mmahmoudian

@mmahmoudian, done! Sorry to not post it before.

AmandaBSobrinho avatar Apr 29 '22 12:04 AmandaBSobrinho

After updating my kernel version to 5.13.0-41, the glitch is gone (still using Flameshot v11.0.0 ()):

inxi --width 80 --system --graphics

System:
  Host: ni-67223-1p Kernel: 5.13.0-41-generic x86_64 bits: 64 
  Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.4 LTS (Focal Fossa) 
Graphics:
  Device-1: Intel UHD Graphics driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: i915 tty: N/A 
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 21.2.6

AmandaBSobrinho avatar May 11 '22 13:05 AmandaBSobrinho

Thanks for reporting back! I suggest we close this then as a bug unrelated to flameshot.

borgmanJeremy avatar May 11 '22 14:05 borgmanJeremy

I have updated to 5.13.0-41 and problem is still here :disappointed:

But I have slightly different versions of Gnome and Ubuntu:

System:
  Host: trunov Kernel: 5.13.0-41-generic x86_64 bits: 64 Desktop: Gnome 3.36.4 
  Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Graphics:
  Device-1: Intel driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: i915 resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CML GT2) v: 4.6 Mesa 21.2.6 

artitrue avatar May 11 '22 18:05 artitrue

Problem still here with kernel update.

System:
  Host: Jupiter Kernel: 5.13.0-41-generic x86_64 bits: 64 
  Desktop: Cinnamon 5.2.7 Distro: Linux Mint 20.3 Una 
Graphics:
  Device-1: Intel driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel Graphics (RKL GT1) v: 4.6 Mesa 21.2.6

Same with:

  • Flameshot 0.6.0+git20191001-2(Debian) Compiled with Qt 5.12.5" from software repository
  • Flameshot v11.0.0 (ad1bf28) Compiled with Qt 5.12.8 AppImage
  • Flameshot v11.0.0 () Compiled with Qt 5.15.3 Flatpak

ybolu avatar May 11 '22 19:05 ybolu

Please re-open this issue. I don't think it is resolved.

As alperyilmaz says, this problem happens in Linux 5.15.11. So a newer version of kernel may not help. I'm using Linux 5.14.0 OEM kernel and the problem also exists.

It is more likely a bug related to Intel driver or Qt framework.

Besides, I have found that #1850 is the same problem, meaning that such bug has been existing for a long time. But I think #1850 is not well-formatted and lacking of information. So I suggest re-open the current issue. Thanks!

YalandHong avatar May 12 '22 12:05 YalandHong

Yeah, I think it should be reopened as well. Looking with more attention, the glitch has diminished (the buttons around the marked area are no longer affected by it), but it is not gone. Sorry for the mistake, everyone.

AmandaBSobrinho avatar May 12 '22 12:05 AmandaBSobrinho

I had the same issue. I run LinuxMint 20.3 which is based on Ubuntu 20.04 with vanilla kernel 5.4 and mesa 21.2.6. My DE is XFCE. My CPU is Intel i5-9400 with integrated graphics UHD 630.

I resolved the issue by disabling the option "display fullscreen overlay windows directly under Settings -> Window Manager Tweaks -> Compositor

Hope that helps.

ostaszewskik avatar May 25 '22 11:05 ostaszewskik

I have the same issue. My PC has i5-10400, Mesa UHD 630, Ubuntu 20.04.4 LTS. Flameshot: 12.1.0 The funny thing is: when I'm using Record a short screencast to record (Shift+Ctrl+Alt+R), the glitch is gone.

Video recording: https://youtu.be/MPV1RJfuAto

daoducminh avatar Jul 21 '22 04:07 daoducminh

Upgraded to Linux Mint 21 yesterday.

System:
  Host: Jupiter Kernel: 5.15.0-46-generic x86_64 bits: 64
    Desktop: Cinnamon 5.4.10 Distro: Linux Mint 21 Vanessa
Graphics:
  Device-1: Intel RocketLake-S GT1 [UHD Graphics 730] driver: i915 v: kernel
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel Graphics (RKL GT1) v: 4.6 Mesa 22.0.5

Installed Flameshot from Software Manager.

Flameshot v11.0.0 (11.0.0-2 Debian)
Compiled with Qt 5.15.2
linux: 5.15.0-46-generic
linuxmint: 21

Problem is gone. I observe no tearing now.

ybolu avatar Aug 14 '22 08:08 ybolu

Problem is gone after update to Ubuntu 22.04.1 LTS.

artitrue avatar Aug 21 '22 18:08 artitrue

Problem is gone after update to Ubuntu 22.04.1 LTS

This is most likely because you are now on Wayland and not X11 anymore

mmahmoudian avatar Aug 22 '22 05:08 mmahmoudian

Problem is gone after update to Ubuntu 22.04.1 LTS

This is most likely because you are now on Wayland and not X11 anymore

Mine is still x11. Am I wrong? See my post just above.

ybolu avatar Aug 22 '22 18:08 ybolu

@ybolu

Mine is still x11. Am I wrong? See my post just above

You are using Mint, which is not identical to Ubuntu. As far as I know there is mo Wayland for Cinnamon yet, and perhaps what have solved your issue is qt update or graphic driver update.

mmahmoudian avatar Aug 22 '22 22:08 mmahmoudian

I upgraded my Mesa driver to v22.1.7 following this article. And the problem seems gone now.

I think it is likely that there's something wrong within the older version of Mesa. If so, FlameShot actually can't do anything to solve this problem.

YalandHong avatar Sep 05 '22 13:09 YalandHong