Open kiki-kanri opened 1 day ago
Using tag v0.3.2+rpt20240927 build works fine!
Hi everyone,
I also had a Segmentation fault when trying to use libcamera with tuning file options:
rpicam-still -o test.png --tuning-file /home/tactonom/tuning-files/imx219_70d.json
Error:
$ rpicam-still -o test.png --tuning-file /home/tactonom/tuning-files/imx219_70d.json
[0:08:49.763123151] [1122] INFO Camera camera_manager.cpp:325 libcamera v0.3.2+98-75fe515a
[0:08:49.801658431] [1126] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:08:49.804591582] [1126] WARN RPI vc4.cpp:393 Mismatch between Unicam and CamHelper for embedded data usage!
[0:08:49.805831088] [1126] INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media4 and ISP device /dev/media2
[0:08:49.806039586] [1126] INFO RPI pipeline_base.cpp:1120 Using configuration file '/usr/local/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Preview window unavailable
Mode selection for 1640:1232:12:P
SRGGB10_CSI2P,640x480/0 - Score: 4504.81
SRGGB10_CSI2P,1640x1232/0 - Score: 1000
SRGGB10_CSI2P,1920x1080/0 - Score: 1541.48
SRGGB10_CSI2P,3280x2464/0 - Score: 1718
SRGGB8,640x480/0 - Score: 5504.81
SRGGB8,1640x1232/0 - Score: 2000
SRGGB8,1920x1080/0 - Score: 2541.48
SRGGB8,3280x2464/0 - Score: 2718
[0:08:49.815790426] [1122] INFO Camera camera.cpp:1197 configuring streams: (0) 1640x1232-YUV420 (1) 1640x1232-SBGGR10_CSI2P
[0:08:49.816456397] [1126] INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA
Segmentation fault
Libcamera version:
rpicam-apps build: v1.5.3 50958df98d3c 13-11-2024 (16:55:55)
rpicam-apps capabilites: egl:1 qt:1 drm:1 libav:1
libcamera build: v0.3.2+98-75fe515a
However, as @kiki-kanri, by changing to version tag v0.3.2+rpt20240927 I have no errors when I do:
rpicam-still -o test.png --tuning-file /home/tactonom/tuning-files/imx219_70d.json
rpicam-apps build: v1.5.3 50958df98d3c 14-11-2024 (17:45:16)
rpicam-apps capabilites: egl:1 qt:1 drm:1 libav:1
libcamera build: v0.3.2+27-7330f29b
I've not been able to reproduce this in my brief testing. I'll try again tomorrow and report back.
@kiki-kanri are you using a custom/modified json tuning file? I still cannot seem to reproduce this bug.
@kiki-kanri are you using a custom/modified json tuning file? I still cannot seem to reproduce this bug.
I don't use json tuning files, but I do set up the compilation and linking parameters, I'll test it on a clean system sometime.
Just simply run rpicam-hello -n
.
Here's the program in order and compiled by me:
What compiler have you setup?
What compiler have you setup?
Here's the compilation and linking parameters that work for me on v0.3.2+rpt20240927.
cflags:
-fipa-pta
-floop-block
-floop-interchange
-floop-strip-mine
-flto=4
-fomit-frame-pointer
-funroll-loops
-I/opt/openssl3/include
-march=armv8.2-a
-mtune=cortex-a76
-O3
-pthread
ldflags: -L/opt/openssl3/lib
build libcamera command:
CFLAGS="$BASE_CFLAGS" CPPFLAGS="$BASE_CFLAGS -Wno-unused-parameter" CXXFLAGS="$BASE_CFLAGS" LD_LIBRARY_PATH="/opt/openssl3/lib:$LD_LIBRARY_PATH" meson setup ./build \
--backend=ninja \
--buildtype=release \
-Db_lto=true \
-Db_ndebug=true \
-Db_pch=true \
-Dcam=disabled \
-Ddocumentation=disabled \
-Dgstreamer=disabled \
-Dipas=rpi/pisp,rpi/vc4 \
-Dlc-compliance=disabled \
-Dpipelines=rpi/pisp,rpi/vc4 \
-Dpycamera=disabled \
-Dqcam=disabled \
-Dstrip=true \
-Dtest=false \
-Dtracing=disabled \
-Dv4l2=true
Since there are so many variables, I need to find the time to test again on a clean system if the then current parameters are usable in the new version.
I'm compiling libcamera and rpicam-apps on a Raspberry Pi 5, but when I run it I encounter
Segmentation fault
error.Build with the latest main commit.
Kernel version used: 6.6.47+rpt-rpi-2712
Installed kernels:
Error content: