flameshot-org / flameshot

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

black screen when starting flameshot #2419

Open alexandre-eymael opened 2 years ago

alexandre-eymael commented 2 years ago

Flameshot Version

Flameshot v11.0.0 ()

Installation Type

Snap from Snapcraft

Operating System type and version

Ubuntu 20.04.3

Description

When I run flameshot gui, both of my screens go black. It worked when I was using Linux Mint, but I changed my OS to ubuntu recently and it does not work anymore. If I disconnect my secondary monitor, flameshot works as expected.

Here is the error :

Qt: Session management error: Could not open network socket propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.115\" (uid=1000 pid=14609 comm=\"/snap/flameshot/180/usr/local/bin/flameshot gui \" label=\"snap.flameshot.flameshot (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=664 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.115\" (uid=1000 pid=14609 comm=\"/snap/flameshot/180/usr/local/bin/flameshot gui \" label=\"snap.flameshot.flameshot (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=664 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")" "Object path cannot be empty" flameshot: info: Screenshot aborted.

Steps to reproduce

  1. run flameshot gui

Screenshots or screen recordings

I have recorded the problem if it can help you: https://wetransfer.com/downloads/ca17eccf95f2b5b911f956deff39dd2b20220213152902/5f6e45d45e47fccade0a6d462e35a0fb20220213152914/1ca56b

(the video was too big to be uploaded on github, sorry)

System Information

System: Host: e Kernel: 5.13.0-28-generic x86_64 bits: 64 Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.3 LTS (Focal Fossa) Graphics: Device-1: NVIDIA GP104 [GeForce GTX 1070] driver: nvidia v: 470.103.01 Display: x11 server: X.Org 1.20.13 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 470.103.01

Monitors: 2 0: +*DP-2 4096/596x2304/335+3840+0 DP-2 1: +HDMI-0 3840/476x2160/268+0+144 HDMI-0

cstsunfu commented 2 years ago

I got the similar error.

Qt: Session management error: Could not open network socket
propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.264\" (uid=1000 pid=104816 comm=\"/snap/flameshot/x1/usr/local/bin/flameshot gui \" label=\"snap.flameshot.flameshot (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=885 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.264\" (uid=1000 pid=104816 comm=\"/snap/flameshot/x1/usr/local/bin/flameshot gui \" label=\"snap.flameshot.flameshot (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=885 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
"Object path cannot be empty"
/usr/share/libdrm/amdgpu.ids: No such file or directory
^[flameshot: info: Screenshot aborted.
mrhappyma commented 2 years ago

I am experiencing a similar issue, however only with one monitor.

Qt: Session management error: Could not open network socket
flameshot: info: Screenshot aborted.
mmahmoudian commented 2 years ago

@mrhappyma please provide your system's information including distro, the way you have installed flameshot, flameahot version, DE, X or Wayland,...