120 degree spy camera errors out

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jpspoonhower
 
Posts: 13
Joined: Sat Mar 30, 2019 11:34 am

120 degree spy camera errors out

Post by jpspoonhower »

20220518_093705.jpg
20220518_093705.jpg (385.23 KiB) Viewed 850 times
I am attempting to install an adafruit 120 degree spy camera onto a pi zero W running bullseye raspberry pi OS.
The pi zero runs headless; I connect using VNC.
The red led on the camera cable is lit, so power at least, is available to the camera. However, the camera fails with this error
when I run a command from a terminal:

libcamera-hello -t 0
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:03:19.326408576] [1109] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3424-e68e0f1e
ERROR: *** no cameras available ***

How do I correct this?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

Post by mikeysklar »

Just to confirm did you buy the model that is specifically for Pi Zeros?

https://www.adafruit.com/product/5389

Are you using a Pi Zero or Pi Zero 2?

User avatar
jpspoonhower
 
Posts: 13
Joined: Sat Mar 30, 2019 11:34 am

Re: 120 degree spy camera errors out

Post by jpspoonhower »

I am using a pi zero W (v1.1).

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

Post by mikeysklar »

Assuming you are using adafruit product id# 5389 it should just be a configuration issue on your Pi.

Make sure you enable "Glamor" graphic acceleration. That appears to be the main culprit for this message.

Code: Select all

sudo raspi-config
Advanced Options --> enable Glamor graphic acceleration

reboot.

User avatar
jpspoonhower
 
Posts: 13
Joined: Sat Mar 30, 2019 11:34 am

Re: 120 degree spy camera errors out

Post by jpspoonhower »

I confirm the product is a p5389.
"Glamor" is enabled using raspi-config.
I get the same error.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

Post by mikeysklar »

Two more things to try:

1) make sure you fully updated.

Code: Select all

sudo apt update
sudo apt full-upgrade
2) again go back to raspi-config and enable legacy camera. It is located under interface options.

reboot

User avatar
jpspoonhower
 
Posts: 13
Joined: Sat Mar 30, 2019 11:34 am

Re: 120 degree spy camera errors out

Post by jpspoonhower »

1) sudo apt update and sudo apt full-upgrade were completed.
2) legacy camera support enabled in raspi-config.
3) reboot.
4) after boot, the red LED on the camera cable is no longer illuminated.
5) the VNC display size is changed (smaller display)
6) same error:
ibcamera-hello -t 0
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:02:12.960370542] [1062] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

Post by mikeysklar »

Okay, I see the issue.

There is conflict with using VNC and the camera.

Can you run the command over ssh?

User avatar
jpspoonhower
 
Posts: 13
Joined: Sat Mar 30, 2019 11:34 am

Re: 120 degree spy camera errors out

Post by jpspoonhower »

ssh shows the same result:
libcamera-hello -t 0
Preview window unavailable
[9:23:53.584064503] [1609] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

Post by mikeysklar »

It no longer gives the original beginning of the error message?

Code: Select all

libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
It is now (via ssh) only the:

Code: Select all

Preview window unavailable
[9:23:53.584064503] [1609] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
There are also other camera interfaces. You could try:

Code: Select all

raspistill -o cam.jpeg
If you really want to use libcamera you might need to add a monitor / keyboard / mouse for troubleshooting purposes. I believe you need to have X running with a valid DISPLAY=:0 setting.

Code: Select all

export DISPLAY=:0

User avatar
jpspoonhower
 
Posts: 13
Joined: Sat Mar 30, 2019 11:34 am

Re: 120 degree spy camera errors out

Post by jpspoonhower »

Yes, with ssh the initial response is different. Is this a big surprise, given there is no X-window environment? I do not understand your point..

here is what raspistill produces:
pi@pizerocam:~ $ raspistill -o cam.jpeg
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly


seems like the problem persists...

why does the red LED get disabled when legacy camera is enabled in raspi-config? seems bizarre to me.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

Post by mikeysklar »

Thanks for trying raspistill.

Let's get back to your original command:

Code: Select all

libcamera-hello -t 0
libcamera-hello A simple "hello world" application which starts a camera preview stream and displays it on the screen.
It is failing to launch a preview window with no valid X11 display.

You have a few options:

1) Do you have a valid display to export to (another X11 machine)?

2) Plugin a keyboard/mouse/monitor to your Pi to confirm the command can run with its preview window on a local X11 environment.

3) Try libcamera-still which can omit the preview window.

Code: Select all

 libcamera-still -o test.jpg
libcamera-still A more complex still image capture application which emulates more of the features of raspistill.
https://www.raspberrypi.com/documentati ... amera.html

User avatar
jpspoonhower
 
Posts: 13
Joined: Sat Mar 30, 2019 11:34 am

Re: 120 degree spy camera errors out

Post by jpspoonhower »

I chose method #2.
from a terminal window on the desktop , here's the response.
pi@pizerocam:~ $ libcamera-hello -t 0
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:03:17.334778766] [1098] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
pi@pizerocam:~ $ libcamera-still
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:12:31.393368946] [1126] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
pi@pizerocam:~ $ raspistill -o cam.jpg
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly

pi@pizerocam:~ $
It all looks like the same problem to me regardless of the working environment.
How do I return this camera for a credit?
I have spent way too much time on this....

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

Post by mikeysklar »

Please contact [email protected] requesting a refund. Include your invoice# and a link to this forum thread.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”