2025-04-25 8:26 AM
Hello.
We're having issues after installing the libcamera package for the VD56G3 sensor from https://www.st.com/en/embedded-software/stsw-img502.html
The ST IPA is (apparently) being treated as untrusted and we're being forced into IPA isolation, crashing the application.
[10:02:34.005492925] [181325] ERROR IPCPipe ipc_pipe_unixsocket.cpp:134 Call timeout!
[10:02:34.005523463] [181325] ERROR IPCPipe ipc_pipe_unixsocket.cpp:66 Failed to call sync
[10:02:34.005531333] [181325] ERROR IPAProxy raspberrypi_ipa_proxy.cpp:261 Failed to call start
[10:02:34.009190798] [181325] ERROR IPCUnixSocket ipc_unixsocket.cpp:192 Failed to send: Connection refused
[10:02:34.009221799] [181325] ERROR IPCPipe ipc_pipe_unixsocket.cpp:66 Failed to call sync
[10:02:34.009228836] [181325] ERROR IPAProxy raspberrypi_ipa_proxy.cpp:432 Failed to call mapBuffers
[10:02:34.067543539] [181325] ERROR IPCUnixSocket ipc_unixsocket.cpp:192 Failed to send: Transport endpoint is not connected
[10:02:34.067573243] [181325] ERROR IPCPipe ipc_pipe_unixsocket.cpp:80 Failed to call async
[10:02:34.067580317] [181325] ERROR IPAProxy raspberrypi_ipa_proxy.cpp:508 Failed to call prepareIsp
We've already raised the issue at camera_ros and libcamera repos and were directed here.
The discussion started in this issue https://github.com/christianrauch/camera_ros/issues/115
And later moved to https://github.com/raspberrypi/libcamera/issues/258
There's a lot of information in those issues so I'll be brief and not flood you with more logs, and instead wait for your directions/requests.
Thanks.
Solved! Go to Solution.
2025-04-29 8:01 AM
Hi,
We updated packages, so now you have both the libcamera and libcamera-ipa. Since they're build together they're now signed with the same key and allow the IPA to run without isolation mode.
Could you try it and report if you have new error messages ?
2025-04-29 8:01 AM
Hi,
We updated packages, so now you have both the libcamera and libcamera-ipa. Since they're build together they're now signed with the same key and allow the IPA to run without isolation mode.
Could you try it and report if you have new error messages ?
2025-05-01 7:34 AM
At first, it didn't work because I couldn't install packages that depend on `libcamera0.4.0`.
$ sudo apt install libcamera-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libcamera-dev : Depends: libcamera0.4 (= 0.4.0+rpt20250213-1) but 0.4.0+rpt20250213+st20250428-1 is to be installed
E: Unable to correct problems, you have held broken packages.
So I unpacked the .deb (from the updated packages) and added this to `/DEBIAN/control`: `Provides: libcamera0.4 (= 0.4.0+rpt20250213-1)`. After repacking and reinstalling, I was able to install `libcamera-dev`.
I forgot to check libcamera-hello before adding libcamera-dev, if I run hello or a ROS2 node, I'm getting WARNs:
$ libcamera-hello -t 500 --camera 0
[0:18:31.370178196] [94842] INFO Camera camera_manager.cpp:327 libcamera v0.0.0+5334-9da90c62-dirty (2025-04-28T14:26:09UTC)
[0:18:31.384923301] [94845] INFO RPI pisp.cpp:720 libpisp version v1.1.0 e7974a156008 27-01-2025 (21:50:51)
[0:18:31.386308105] [94845] WARN CameraSensorProperties camera_sensor_properties.cpp:473 No static properties available for 'vd56g3'
[0:18:31.386325831] [94845] WARN CameraSensorProperties camera_sensor_properties.cpp:475 Please consider updating the camera sensor properties database
[0:18:31.389883425] [94845] WARN CameraSensor camera_sensor_legacy.cpp:501 'vd56g3 10-0010': No sensor delays found in static properties. Assuming unverified defaults.
[0:18:31.390427400] [94845] INFO RPI pisp.cpp:1179 Registered camera /base/axi/pcie@1000120000/rp1/i2c@88000/fox@10 to CFE device /dev/media2 and ISP device /dev/media0 using PiSP variant BCM2712_C0
[0:18:31.390493654] [94845] INFO RPI pisp.cpp:720 libpisp version v1.1.0 e7974a156008 27-01-2025 (21:50:51)
[0:18:31.403754861] [94845] INFO RPI pisp.cpp:1179 Registered camera /base/axi/pcie@1000120000/rp1/i2c@80000/imx219@10 to CFE device /dev/media3 and ISP device /dev/media1 using PiSP variant BCM2712_C0
Preview window unavailable
Mode selection for 562:682:12:P
R8,320x240/0 - Score: 3558.98
R8,480x640/0 - Score: 2470.14
R8,640x480/0 - Score: 2614.48
R8,768x1024/0 - Score: 2359.14
R8,1024x768/0 - Score: 2327.98
R8,720x1280/0 - Score: 2973.64
R8,1024x1280/0 - Score: 2337.14
R8,1120x1360/0 - Score: 2310.55
R8,1124x1364/0 - Score: 2311
R10_CSI2P,320x240/0 - Score: 2558.98
R10_CSI2P,480x640/0 - Score: 1470.14
R10_CSI2P,640x480/0 - Score: 1614.48
R10_CSI2P,768x1024/0 - Score: 1359.14
R10_CSI2P,1024x768/0 - Score: 1327.98
R10_CSI2P,720x1280/0 - Score: 1973.64
R10_CSI2P,1024x1280/0 - Score: 1337.14
R10_CSI2P,1120x1360/0 - Score: 1310.55
R10_CSI2P,1124x1364/0 - Score: 1311
Stream configuration adjusted
[0:18:31.408576773] [94842] INFO Camera camera.cpp:1202 configuring streams: (0) 562x682-YUV420 (1) 1120x1360-MONO_PISP_COMP1
[0:18:31.408749954] [94845] INFO RPI pisp.cpp:1484 Sensor: /base/axi/pcie@1000120000/rp1/i2c@88000/fox@10 - Selected sensor format: 1120x1360-Y10_1X10 - Selected CFE format: 1120x1360-PC1M
[0:18:31.411202094] [94850] WARN IPARPI ipa_base.cpp:1114 Could not set SHARPNESS - no sharpen algorithm
[0:18:31.411249066] [94850] WARN IPARPI pisp.cpp:502 Could not set NOISE_REDUCTION_MODE - no Denoise algorithm
[0:18:31.471828183] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
[0:18:31.505286269] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.505406144] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
[0:18:31.538606292] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.538716887] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
[0:18:31.572031465] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.572172270] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
[0:18:31.605303423] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.605443338] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
[0:18:31.638664842] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.638796682] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
[0:18:31.671992144] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.672139043] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
[0:18:31.705332134] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.705464122] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
#0 (0.00 fps) exp 1022.00 ag 1.00 dg 1.00
[0:18:31.738664196] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.738800444] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
#1 (30.00 fps) exp 1022.00 ag 1.00 dg 1.00
[0:18:31.771999925] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.772143397] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
#2 (30.00 fps) exp 1422.00 ag 1.00 dg 1.00
[0:18:31.805276291] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.805410410] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
#3 (30.00 fps) exp 707.00 ag 1.00 dg 1.01
[0:18:31.838609409] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.838742102] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
#4 (30.00 fps) exp 799.00 ag 1.00 dg 1.01
[0:18:31.871947287] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.872088870] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
#5 (30.00 fps) exp 1114.00 ag 1.00 dg 1.00
[0:18:31.905282054] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.905414690] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
#6 (30.00 fps) exp 584.00 ag 1.00 dg 1.00
[0:18:31.938612004] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.938743659] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
#7 (30.00 fps) exp 614.00 ag 1.00 dg 1.01
[0:18:31.971951383] [94850] WARN RPiAgc agc_channel.cpp:733 No lux level found
[0:18:31.972084927] [94850] WARN RPiCcm ccm.cpp:153 no lux value found
I get image, that's the good news, only thing is that for continuously streaming, that warning (that I may be able to silent, is a new thing now).
2025-05-05 1:05 AM
Glad you got it working.
The WARN is expected. It was hidden when the IPA ran is isolated mode, and now it correctly output warnings.
A better libcamera support is on our roadmap, and will get rid of the warning. You can safely ignore it for now.
The libcamera-dev dependency is more problematic. This might be a solid point to deliver only the whole source code for you to build instead of debian packages, since it's becoming difficult to maintain. Thank you for your inputs.