-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
[Bug]: ALS.webcam makes webcam hang #41
Comments
Hi @vega-d , Can you please try to stop all applications trying to access your webcam, including wluma. If this module unloading success, try Is it working or still black image? If still black, try to unload and load uvcvideo module a second time, then list all supported format by your webcam with Can you also paste me the output of |
@cyrinux
It worked once, opened a window and showed me my webcam feed. I gently closed
Right now it's in it's glitched state. The light is on, the feed is black.
|
I'm gonna go boot from a usb stick and see if the issue is software or hardware |
Do you use your webcam a lot before using it with luma ? Its weird, look like kernel module/driver issue maybe ? 🤔 When you try to unload after gently close of ffplay are we agree wluma was not trying to start too ? I try to reproduce on my side with same steps but I can't reproduce the bug.
|
Yeah, I've been attending some online lectures and it always worked just fine. Specifically when I ran wluma as a systemd service it all went to shit. I also just booted into live cd of ubuntu 21.10 and behavior is exactly the same, indicating a hardware failure. doing
|
Very sorry this has happened to you! I'll honestly say that I have a very hard time imaging how a userspace app like wluma, even if executed via systemd, could damage a hardware device. We aren't gonna quickly dismiss this, and I've also been trying out webcam today (so far both of us were unable to reproduce), but we should also consider a possibility that this could also be an unfortunate coincidence, where the webcam would have died on that day anyway. Let's not jump to conclusions, I only say this to keep the mind open. Do you also have a way to disable webcam in BIOS? Maybe it's worth to try that, disabling it there, booting up, and then rebooting again and enabling it back? Just wondering if this would somehow "reset" some internal failure... |
My best idea is that because wluma polled it too fast and in too little windows? And that was harmful to it in some way?
I feel like I should get a sacrificial usb webcam and see if it dies too XD |
At this moment I would not be surprised by anything 😅 For reference, what wluma does is takes a single camera frame in the lowest possible camera resolution once every 2 seconds... That doesn't seem like a lot to ask, compared to video chats that ask for lots of frames in highest possible resolution...? But who knows, you might be right 🤷♂️ Would love to get to the bottom of this! |
I booted windows portable edition from a usb stick, to totally reassure myself it's not some crazy linux issue, and I can confirm, even windows experiences this issue |
I have observed previously unnoticed behavior. If I "glitch" the webcam so the light is stuck on, then pull my laptop to C3 sleep - the webcam light goes off! It shows the same pattern with a full reboot, but instead of a complete reboot that's just a sleep. I have a new theory - webcam is supposed to be powered down while not used, and something broke - now it doesn't turn off the power. Doing a reboot with a complete power down on USB rails (just reboot doesn't cut it) or doing sleep which also powers down USB power rails resets it to a normal state. Perhaps there could be done some piece of script trickery telling usb controller to stop supplying power to |
This theory is easy to test, simply run |
It dawned on me to check dmesg, and I found this being outputted when anything tries to access webcam when it's glitched:
|
This is quite google-able, with varying results - try perhaps some "quirks" as in this thread https://forums.linuxmint.com/viewtopic.php?p=1954908&sid=84b2937204ce2dcda89793bbc2acf2ab#p1954908 |
no luck. I am substituting it with my phone right now, but in the long run I will be looking into replacing the camera. And also perhaps the screen, kinda want a glossy covering instead of matte one. |
Hey @vega-d, have you ever had any further progress in this mysterious issue? I haven't heard any similar feedback from others, and to be honest, while I don't want to ignore an issue like this, to be honest I just don't know what to do about it, on wluma's side. |
I seem to have encountered this problem as well, no time yet, maybe some ideas will come up over the weekend |
Steps for reproducing the issue
What is the buggy behavior?
upon waking up webcam starts behaving weirdly, very.
outdoors
brightness mode, even if I cover the camera with my finger.ffplay /dev/video0
shows nothing but a 720p black screen.ffplay
returns NaN instead of a video stream.What is the expected behavior?
Well perhaps wluma should not murder my webcam.
Logs
Version
version 4.1.0, from the built artifact in releases folder
Environment
The text was updated successfully, but these errors were encountered: