Closed xblax closed 2 months ago
Good one, don't have a camera so never tested it properly. Including libmpv would probably fix it, shoud't be too much of an issue.
Btw. most webcams supported by Linux should work, if you have any. Also don't have the original camera yet.
Good point, should have one somewhere, ancient logitech thing so should work. Pro should arrive in a few days, maybe I'll just wait for that.
I'll also run a ldd on all the compiled modules in klipperscreen to check what it uses as well, just to be sure.
Was going to report this last night, but thought someone might have already :)
Tried with a camera plugged in and removed, same error both times
Selecting the info icon on the main menu (bottom left corner) also crashes klipper, "Klipper has shutdown, Shutdown due to webhooks request" only a firmware restart gets it working again, klipper restart ends in another error.
Tried with a camera plugged in and removed, same error both times
That's the be expected though. The library which is missing gets loaded quite early. I'll check if it's the simple missing lib error by adding it tonight (need to rebuild anyway due to the mismatch in setsid) and see if that fixes it.
firmware restart gets it working again, klipper restart ends in another error.
if you know how to ssh to the machine (see docks for login credentials) execute:
/etc/init.d/S80klipperscreen stop
/etc/init.d/S80klipperscreen start
And it should restart.
There is no simple "patch" so for now try avoid the camera panel.
Selecting the info icon on the main menu (bottom left corner) also crashes klipper, "Klipper has shutdown, Shutdown due to webhooks request" only a firmware restart gets it working again, klipper restart ends in another error.
That's to be expected as it's the emergency abort. Same as pressing the emergency abort in mainsail/fluidd.
Just edited the message; That's the emergency abort, it kills everything. Same as in mainsail/fluidd. Pretty much what it's supposed to do afaik :) It it's not let me know, I usually do the emergency shutdown by unplugging mains.
Just edited the message; That's the emergency abort, it kills everything. Same as in mainsail/fluidd. Pretty much what it's supposed to do afaik :)
Ye just seen the edit, I'd never noticed it before on other klipper machines I've had.
Thanks for getting back to me anyway
I'd never noticed it before on other klipper machines I've had
If I'm not mistaken you can disable it so the others might have done that or just not added it to their interface. But since it's alpha/beta software better let it be in there just to be sure.
Note: this pulls in ffmpeg. The tarball will get a LOT bigger. Ok not that a lot, just 15mb.
Unable to load panel camera libass.so.9
Now it's just messing with me
It works ... but ... at about 0.000000001 FPS. still waiting for the first frame to render.
...
I can report the OOM daemon works as expected.
Mar 14 19:36:21 ADM5 kern.info kernel: [ 576.880423] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),task=python3,pid=1657,uid=0
I guess the best option is to disable the camerascreen. Unless klipperscreen can manage some DMA magic and render directly to screen this is not going to happen. It pretty much collects the raw input, processes it though ffmpeg (libs) and then renders it on screen with a software scaler. This is all VERY memory intensive and also very very very .... very slow.
Yes, just disable it then. I guess showing the camera on the printer screen is a bit pointless anyway.
The good thing coming from this excersise is the proper test of the OOM killer I guess. Since Klipperscreen is the lowest (highest niceness) it gets killed as it should.
I'll create a patch which disables the panel in config. Should be possible. If not I'll hard-disable it in code.
"Fixed" in https://github.com/consp/KlipperScreen/commit/f6af6e5bbdc97a97c7a050982b9e240b59a4623b since it will crash klipper (and maybe the system) due tot memory overusage forcing the OOM to kick in.
Tested the 'Camera' function of KlipperScreen. It fails to load on shows an error, on screen and in the log. After pressing the button 'Back' it Klipper Screen seems to hang. The screen just stays black.
Might be fixed by enabling libmpv in buildroot.