MaixPy icon indicating copy to clipboard operation
MaixPy copied to clipboard

RunTimeError : Value is null and camera suddenly shutdown while using yolov8n

Open Diqtra opened this issue 1 year ago • 5 comments

Screenshot 2024-06-23 151912 My Maixcam has an error when using yolov8n, and the message says, "RuntimeError: Value is Null: Camera read failed." I'm using the yolov8n that comes with MaixPy. The camera works but only for a little while before stopping.

Diqtra avatar Jun 25 '24 09:06 Diqtra

Hi, from the logs it looks like you're launching multiple apps, please make sure that the MaixVision app and the MaixCAM app aren't launching at the same time (MaixCAM black screen means no apps are running) . If that doesn't solve the problem, you can try to get the latest image from release, update it and try again!

lxowalle avatar Jun 26 '24 03:06 lxowalle

It also happened to me, Maixvision app was just for knowing the log file, the fact is the program was installed and then exit with code 1... This happened even with the latest MaixPy suddenly exit by itself but sometimes it doesn't...

IMG20240626104731~3.jpg

JimlyAdam avatar Jun 26 '24 03:06 JimlyAdam

This may not be a software problem, but the camera is not connected properly, you can open the back cover to check if the camera cable is loose.

lxowalle avatar Jun 26 '24 08:06 lxowalle

Unfortunately, I have two MaixCAM, but it happened at both, I've tried to replace the MicroSD and check all the flexible but those was safe

JimlyAdam avatar Jun 26 '24 10:06 JimlyAdam

I still haven't reproduced your problem, can you try the old mirror first?

lxowalle avatar Jun 28 '24 08:06 lxowalle