boltgolt / howdy

🛡️ Windows Hello™ style facial authentication for Linux
MIT License
5.9k stars 307 forks source link

``sudo`` or ``su`` Sometimes cannot work #896

Open KeysBit opened 8 months ago

KeysBit commented 8 months ago

sudo or su command randomly got Unknow error. When it got error, the terminal shows:


(python3:15864): GStreamer-CRITICAL **: 19:46:42.051: 
Trying to dispose element pipeline0, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

[ WARN:0@0.267] global ./modules/videoio/src/cap_gstreamer.cpp (1356) open OpenCV | GStreamer warning: unable to start pipeline

(python3:15864): GStreamer-CRITICAL **: 19:46:42.051: 
Trying to dispose element videoconvert0, but it is in PAUSED instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

[ WARN:0@0.267] global ./modules/videoio/src/cap_gstreamer.cpp (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

(python3:15864): GStreamer-CRITICAL **: 19:46:42.051: 
Trying to dispose element appsink0, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.

Unknown error: -11

But when it works fine, the terminal shows:

[ WARN:0@0.247] global ./modules/videoio/src/cap_gstreamer.cpp (2401) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not read from resource.
[ WARN:0@0.248] global ./modules/videoio/src/cap_gstreamer.cpp (1356) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0@0.248] global ./modules/videoio/src/cap_gstreamer.cpp (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0@1.021] global ./modules/imgcodecs/src/loadsave.cpp (773) imwrite_ imwrite_('/usr/lib/security/howdy/snapshots/20240307T114918.jpg'): can't open file for writing: permission denied

I`m sure I give the howdy folder o+x permission by running: sudo chmod o+x /usr/lib/security/howdy and sudo chmod o+x /usr/lib/security/howdy

Whats working

screen lock(sddm,kde plasma wayland), auth by KDE UAC(I don`t konw what it`s exactly called)

I guess it might be a bug of opencv?


I've searched for similar issues already, and my issue has not been reported yet.

Linux distribution (if applicable):

uname -a Linux KUbuntu-ThinkPad 6.5.0-25-generic #25-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 7 14:58:39 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Howdy version (sudo howdy version):

Howdy 2.6.1

KeysBit commented 8 months ago

One more thing, I can`t find any file called cap_gstreamer.cpp or loadsave.cpp by find / -name xxx?