VoiceJourney 发表于 2019-6-25 14:08:08

相机isp调试

官方给的库有问题吗
pen /usr/lib/libcam_ia.so failed, error /usr/lib/libcam_ia.so: undefined symbol: __cxa_pure_virtual
Load libcam_engine_cifisp.so successed
dlsym rkisp_start success
device manager start, capture dev fd: 4
rkisp_demo: symbol lookup error: /usr/lib/libcam_engine_cifisp.so: undefined symbol: pthread_mutexattr_init


penguin 发表于 2019-6-25 18:07:32

什么固件,16.04还是18.04用18.04试一下

VoiceJourney 发表于 2019-6-26 17:06:27

penguin 发表于 2019-6-25 18:07
什么固件,16.04还是18.04用18.04试一下

用的是18.04,目前官方给的动态库报错,不开源,感觉没法搞了。

zzq 发表于 2019-7-29 10:12:16

你好,我也遇到了同样的问题,以下是我的详细报错信息,请问有解决办法了吗?

===============================================================================

pi@nanopineo4:/usr/lib$ sudo gst-camera.sh
password for pi:
/usr/bin/gst-camera.sh: line 196:2442 Terminated            gst-launch-1.0 rkisp device=/dev/video1 io-mode=4 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! kmssink
====================================================
=== GStreamer 1.1 command:
=== gst-launch-1.0 rkisp device=/dev/video1 io-mode=4 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! kmssink
====================================================
XCAM ERROR device_manager.cpp:88: open /usr/lib/libcam_ia.so failed
XCAM ERROR device_manager.cpp:94: open /usr/lib/libcam_engine_cifisp.so failed
Setting pipeline to PAUSED ...
XCAM WARNING v4l2_device.cpp:171: set capture mode(0x00004000) failed but continue
XCAM WARNING v4l2_device.cpp:171: set capture mode(0x00004000) failed but continue
XCAM INFO x3a_image_process_center.cpp:48: Add processor(IspImageProcessor) into image processor center
Pipeline is live and does not need PREROLL ...
XCAM INFO v4l2_device.cpp:322: device(/dev/video1) set format(w:1280, h:720, pixelformat:NV12, bytesperline:1280)
XCAM WARNING rkisp_device.cpp:48: atomisp device(/dev/video1) get framerate failed
XCAM ERROR rkisp_device.cpp:72: atomisp device(/dev/video1) try subdev format failed
XCAM WARNING v4l2_device.cpp:233: device(/dev/video1) pre_set_format failed
XCAM ERROR v4l2_device.cpp:244: Fail to set format: Invalid argument
CAMHALError:ERR(getSensorModeData): RK_VIDIOC_SENSOR_MODE_DATA failed, err: Inappropriate ioctl for device

Setting pipeline to PLAYING ...
CAMHALInfo:   init:tuningFile /etc/cam_iq.xml
CAMHALInfo:   load tunning file failed..
CAMHALError:init: initstatic failed
CAMHALInfo:   rkisp_start: interface isp dev started
XCAM INFO v4l2_device.cpp:473: request buffers in device(/dev/video1)
XCAM INFO v4l2_device.cpp:476: device(/dev/video1) starts failed on VIDIOC_REQBUFS
XCAM ERROR v4l2_device.cpp:408: device(/dev/video1) start failed
XCAM ERROR device_manager.cpp:227: capture device start failed
XCAM INFO xcam_analyzer.cpp:226: Analyzer(X3aAnalyzerSimple) stopped.
XCAM INFO xcam_analyzer.cpp:178: Analyzer(X3aAnalyzerSimple) deinited.
CAMHALInfo:   rkisp_stop: rkisp interface ready to deinit
XCAM INFO v4l2_device.cpp:457: device(/dev/video1) stopped
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstXCamSrc:xcamsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstXCamSrc:xcamsrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000594066
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
XCAM INFO xcam_analyzer.cpp:226: Analyzer(X3aAnalyzerSimple) stopped.
XCAM INFO xcam_analyzer.cpp:178: Analyzer(X3aAnalyzerSimple) deinited.
CAMHALInfo:   rkisp_stop: rkisp interface ready to deinit
/usr/bin/gst-camera.sh: line 196:3126 Bus error               gst-launch-1.0 rkisp device=/dev/video1 io-mode=4 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! kmssink

===============================================================================

dolbyyu 发表于 2019-7-29 11:21:41

我是/usr/local/bin下的双摄测试都无法运行

wx_郭名宝_n18bE 发表于 2019-7-29 15:03:41

这个问题是你的交叉编译工具问题,你看下内核使用的哪个版本交叉编译工具,SO库交叉编译工具是哪个版本,如果不一样肯定无法调用

nostalgy03 发表于 2020-2-23 15:52:47

我收到以下错误 ,我根本不了解原因 ,你能告诉我吗?

pi@SOM-RK3399:~$ gst-camera.sh --action preview
====================================================
=== GStreamer 1.1 command:
=== gst-launch-1.0 rkisp device=/dev/video1 io-mode=4 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! rkximagesink
====================================================
Setting pipeline to PAUSED ...
media get entity by name: lens is null
XCAM ERROR v4l2_device.cpp:254: VIDIOC_QUERYCAP returned: -1 (Inappropriate ioctl for device)
XCAM ERROR v4l2_device.cpp:254: VIDIOC_QUERYCAP returned: -1 (Inappropriate ioctl for device)
XCAM ERROR rkisp_control_loop_impl.cpp:99: failed to get camera module info
XCAM ERROR rkisp_control_loop_impl.cpp:166: can't access iq file /etc/cam_iq/tc35874x.xml
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
XCAM ERROR rkisp_device.cpp:72: atomisp device(/dev/video1) try subdev format failed
XCAM ERROR rkiq_handler.cpp:1287: ISP control device is null
pi@SOM-RK3399:~$ ERROR: from element /GstPipeline:pipeline0/GstRkXImageSink:rkximagesink0: Output window was closed
Additional debug info:
ximagesink.c(1055): gst_x_image_sink_handle_xevents (): /GstPipeline:pipeline0/GstRkXImageSink:rkximagesink0
Execution ended after 0:00:05.299548694
Setting pipeline to PAUSED ...
Setting pipeline to READY ...

pi@SOM-RK3399:~$ dmesg | grep ov13850
[    1.751920] ov13850 1-0010: driver version: 00.01.01
[    1.752423] ov13850 1-0010: could not get module information!
[    1.752989] ov13850 1-0010: GPIO lookup for consumer reset
[    1.753011] ov13850 1-0010: using device tree for GPIO lookup
[    1.753078] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/i2c@ff110000/ov13850@10' - status (0)
[    1.753142] ov13850 1-0010: GPIO lookup for consumer pwdn
[    1.753163] ov13850 1-0010: using device tree for GPIO lookup
[    1.753228] of_get_named_gpiod_flags: parsed 'pwdn-gpios' property of node '/i2c@ff110000/ov13850@10' - status (0)
[    1.757662] ov13850 1-0010: Unexpected sensor id(000000), ret(-5)
[    1.758615] ov13850 2-0010: driver version: 00.01.01
[    1.759068] ov13850 2-0010: could not get module information!
[    1.759614] ov13850 2-0010: GPIO lookup for consumer reset
[    1.759624] ov13850 2-0010: using device tree for GPIO lookup
[    1.759654] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/i2c@ff120000/ov13850@10' - status (0)
[    1.759686] ov13850 2-0010: GPIO lookup for consumer pwdn
[    1.759695] ov13850 2-0010: using device tree for GPIO lookup
[    1.759721] of_get_named_gpiod_flags: parsed 'pwdn-gpios' property of node '/i2c@ff120000/ov13850@10' - status (0)
[    1.763367] ov13850 2-0010: Unexpected sensor id(000000), ret(-5)

dafeng0103 发表于 2020-2-25 21:28:30

如果是mipi raw,很有可能是调教文件xml内容不对

chaojiguoguo 发表于 2020-6-15 17:38:15

nostalgy03 发表于 2020-2-23 15:52
我收到以下错误 ,我根本不了解原因 ,你能告诉我吗?

你好,我遇到同样问题,请问你有没有解决掉,我是安装的ubutnu18.04版本,用示例项目打开相机,release之后再次打开会上报同样的问题且不能打开
页: [1]
查看完整版本: 相机isp调试