0

120 degree spy camera errors out
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

120 degree spy camera errors out

by jpspoonhower on Wed May 18, 2022 9:28 am

20220518_093705.jpg
20220518_093705.jpg (385.23 KiB) Viewed 142 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?

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

Re: 120 degree spy camera errors out

by mikeysklar on Wed May 18, 2022 7:08 pm

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?

mikeysklar
 
Posts: 7752
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

by jpspoonhower on Thu May 19, 2022 8:27 am

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

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

Re: 120 degree spy camera errors out

by mikeysklar on Thu May 19, 2022 5:58 pm

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 | TOGGLE FULL SIZE
sudo raspi-config


Advanced Options --> enable Glamor graphic acceleration

reboot.

mikeysklar
 
Posts: 7752
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

by jpspoonhower on Thu May 19, 2022 6:27 pm

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

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

Re: 120 degree spy camera errors out

by mikeysklar on Thu May 19, 2022 9:02 pm

Two more things to try:

1) make sure you fully updated.

Code: Select all | TOGGLE FULL SIZE
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

mikeysklar
 
Posts: 7752
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

by jpspoonhower on Thu May 19, 2022 9:27 pm

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 ***

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

Re: 120 degree spy camera errors out

by mikeysklar on Thu May 19, 2022 11:47 pm

Okay, I see the issue.

There is conflict with using VNC and the camera.

Can you run the command over ssh?

mikeysklar
 
Posts: 7752
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

by jpspoonhower on Fri May 20, 2022 6:44 am

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 ***

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

Re: 120 degree spy camera errors out

by mikeysklar on Fri May 20, 2022 4:28 pm

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

Code: Select all | TOGGLE FULL SIZE
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window


It is now (via ssh) only the:

Code: Select all | TOGGLE FULL SIZE
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 | TOGGLE FULL SIZE
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 | TOGGLE FULL SIZE
export DISPLAY=:0

mikeysklar
 
Posts: 7752
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

by jpspoonhower on Fri May 20, 2022 5:51 pm

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.

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

Re: 120 degree spy camera errors out

by mikeysklar on Sat May 21, 2022 4:03 pm

Thanks for trying raspistill.

Let's get back to your original command:

Code: Select all | TOGGLE FULL SIZE
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 | TOGGLE FULL SIZE
 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

mikeysklar
 
Posts: 7752
Joined: Mon Aug 01, 2016 8:10 pm

Re: 120 degree spy camera errors out

by jpspoonhower on Sun May 22, 2022 11:16 am

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....

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

Re: 120 degree spy camera errors out

by mikeysklar on Mon May 23, 2022 6:14 pm

Please contact support@adafruit.com requesting a refund. Include your invoice# and a link to this forum thread.

mikeysklar
 
Posts: 7752
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.