intel / ipu6-camera-hal

Apache License 2.0
39 stars 32 forks source link

Failed to open PSYS #125

Open matejc opened 18 hours ago

matejc commented 18 hours ago

Hey, I am trying to fix issues on nixpkgs/NixOS with ipu6

Versions/revisions: Kernel: 6.11.1 icamerasrc: tag 20240926_1446 ipu6-camera-hal: commit f98f72b156563fe8373e4f8d017a9f609676bb33 ivsc-firmware: commit 74a01d1208a352ed85d76f959c68200af4ead918 ipu6-camera-bins: commit 98ca6f2a54d20f171628055938619972514f7a07

And when running the command:

GST_DEBUG=2 gst-launch-1.0 icamerasrc buffer-count=7 ! video/x-raw,format=NV12,width=1280,height=720 ! videoconvert ! ximagesink

I get this crash:

Setting pipeline to PAUSED ...
[10-08 13:14:25.606] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[10-08 13:14:25.606] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[10-08 13:14:25.606] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-08 13:14:25.606] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-08 13:14:25.607] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-08 13:14:25.607] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-08 13:14:25.607] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-08 13:14:25.607] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-08 13:14:25.607] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-08 13:14:25.607] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[10-08 13:14:25.651] CamHAL[ERR] Failed to open PSYS, error: No such file or directory
[10-08 13:14:25.651] CamHAL[ERR] Failed to initialize Context
[10-08 13:14:25.651] CamHAL[ERR] create PG 187 error
[10-08 13:14:25.651] CamHAL[ERR] Failed to create PGs for executor: ipu6_lb_video_bayer
[10-08 13:14:25.651] CamHAL[ERR] Failed to create pipe for executor:ipu6_lb_video_bayer
[10-08 13:14:25.651] CamHAL[ERR] @configure, create psys executors failed
[10-08 13:14:25.651] CamHAL[ERR] @configure configure psys dag failed:-2147483648
[10-08 13:14:25.651] CamHAL[ERR] Configure processor failed with:-2147483648
[10-08 13:14:25.651] CamHAL[ERR] @configure configure post processor failed with:-2147483648
[10-08 13:14:25.651] CamHAL[ERR] failed to config streams.
0:00:00.131668055 321114 0x7f3920000b70 ERROR             icamerasrc gstcamerasrc.cpp:2796:gst_camerasrc_set_caps: CameraId=0, StreamId=0 failed to config stream for format NV12 1280x720.
0:00:00.131687626 321114 0x7f3920000b70 WARN              CamBaseSrc gstcambasesrc.cpp:3156:gst_cam_base_src_loop:<camerasrc0> error: src pad: Internal data flow error.
0:00:00.131690434 321114 0x7f3920000b70 WARN              CamBaseSrc gstcambasesrc.cpp:3156:gst_cam_base_src_loop:<camerasrc0> error: streaming task paused, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0: src pad: Internal data flow error.
Additional debug info:
gstcambasesrc.cpp(3156): gst_cam_base_src_loop (): /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.040921869
Setting pipeline to NULL ...
Freeing pipeline ...

I guess the main error is Failed to open PSYS, error: No such file or directory I ran strace on the command, I could not find the missing file issue, maybe I missed something...

I am aware that this might be compiling issue on nixpkgs end, but I would appreciate if you can help me a bit here.