Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo or su Sometimes cannot work #896

Open
KeysBit opened this issue Mar 7, 2024 · 1 comment
Open

sudo or su Sometimes cannot work #896

KeysBit opened this issue Mar 7, 2024 · 1 comment
Labels
v2 Old version of Howdy (2.*)

Comments

@KeysBit
Copy link

KeysBit commented Mar 7, 2024

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
Copy link
Author

KeysBit commented Mar 7, 2024

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

@musikid musikid added the v2 Old version of Howdy (2.*) label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Old version of Howdy (2.*)
Projects
None yet
Development

No branches or pull requests

2 participants