imx8mp isp Basler baa2500 camera

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mp isp Basler baa2500 camera

81 Views
vraevsky
Contributor II

Dear NXP support,

We have an issue with a Balser da2500-60mci sensor.

CPU: imx8mp

Linux kernel 5.5.71

The isp_media_server get crashed with this stack:

 

root@ucm-imx8m-plus:~# cd /opt/imx8-isp/bin/
root@ucm-imx8m-plus:/opt/imx8-isp/bin# gdb ./isp_media_server
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "aarch64-poky-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./isp_media_server...
(No debugging symbols found in ./isp_media_server)
(gdb) r CAMERA0
Starting program: /opt/imx8-isp/bin/isp_media_server CAMERA0
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
INFO : [ISP_MEDIA_SERVER] ******************************************************************
INFO : [ISP_MEDIA_SERVER] VIV ISP Media Control Framework V4.2.2p20 (Mar 03 2023)
INFO : [ISP_MEDIA_SERVER] ******************************************************************

[New Thread 0xfffff751f100 (LWP 774)]
[ 108.172886] enter isp_mi_stop
[ 108.400670] enter isp_mi_stop
INFO : [MediaPipeline] NativeSensor Creat
INFO : [NativeSensor] VIV_VIDIOC_S_MODEINFO, index 1, bounds 1920x1080, size (l 0, t 0, w 1920, h 1080), fps 60, bayer_pattern 1, bit_width 12
INFO : [NativeSensor] setFormat isp input: bounds 1920X1080 left 0 top 0 size 1920X1080

INFO : [NativeSensor] setFormat 8 1920 1080, type 0, port: 0
INFO : [MediaPipeline] NativeDewarp Creat
INFO : [DewarpDriver] open: opening dw100 driver.
DEBUG : [DEWARP_HW] enter create
INFO : [DEWARP_HW] dwe type /dev/v4l-subdev0 0
INFO : [DEWARP_HW] dwe type /dev/v4l-subdev1 1
INFO : [DEWARP_HW] dwe type /dev/v4l-subdev2 2
INFO : [MediaPipeline] V4l2Control Creat
INFO : [V4l2Event] Compose: left=0,top=0,width=3840,height=2160

INFO : [NativeSensor] jsonRequest 0xa01f
INFO : [NativeSensor] jsonRequest 0x8100d
INFO : [MediaPipeline] MEDIA_EVENT_STREAM_OPEN
INFO : [MediaPipeline] stream0 connect NativeSensor:0 ---> NativeDewarp:0
INFO : [MediaPipeline] stream0 connect NativeDewarp:0 ---> V4l2Control:0
INFO : [MediaPipeline] MEDIA_EVENT_STREAM_SET_FMT
INFO : [MediaPipeline] set format:0 res: 3840 2160 1
INFO : [NativeSensor] setFormat isp crop: bounds 1920X1080 left 0 top 0 size 1920X1080

INFO : [NativeSensor] setFormat isp scale: bounds 1920X1080 left 0 top 0 size 1920X1080

terminate called after throwing an instance of 'std::runtime_error'
what(): Could not find requested MCM section of type 0.

Thread 2 "isp_media_serve" received signal SIGABRT, Aborted.
[Switching to Thread 0xfffff751f100 (LWP 774)]
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
44 pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x0000fffff7ac1ed8 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x0000fffff7a7dd50 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x0000fffff7a6af64 in __GI_abort () at abort.c:79
#4 0x0000fffff7cc4674 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#5 0x0000fffff7cc2010 in ?? () from /usr/lib/libstdc++.so.6
#6 0x0000fffff7cc2094 in std::terminate() () from /usr/lib/libstdc++.so.6
#7 0x0000fffff7cc23e4 in __cxa_throw () from /usr/lib/libstdc++.so.6
#8 0x0000fffff6cd8f90 in ?? () from daA2500_60mc.drv
#9 0x0000fffff6cd53d4 in ?? () from daA2500_60mc.drv
#10 0x0000fffff6cd273c in ?? () from daA2500_60mc.drv
#11 0x0000fffff6cd2040 in ?? () from daA2500_60mc.drv
#12 0x0000fffff6cc87b0 in ?? () from daA2500_60mc.drv
#13 0x0000fffff6cc9508 in ?? () from daA2500_60mc.drv
#14 0x0000fffff79012ec in IsiCreateSensorIss () from /usr/lib/libisi.so
#15 0x0000fffff7ef5940 in camdev::SensorOps::open() () from /usr/lib/libcam_device.so
#16 0x0000fffff7f13d10 in camdev::CitfSensor::sensorOpen(Json::Value&, Json::Value&) () from /usr/lib/libcam_device.so
#17 0x0000fffff7f8347c in NativeSensor::setFormat(int, MediaCap&, int) () from /usr/lib/libmedia_server.so
#18 0x0000fffff7f78020 in MediaPipeline::setFormat(int, MediaCap&) () from /usr/lib/libmedia_server.so
#19 0x0000aaaaaaaae61c in V4l2Event::eventLoop() ()
#20 0x0000fffff7cef0b0 in ?? () from /usr/lib/libstdc++.so.6
#21 0x0000fffff7ac02a8 in start_thread (arg=0xfffffffff7c7) at pthread_create.c:442
#22 0x0000fffff7b27bdc in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:79
(gdb) [ 124.024469] enter isp_set_stream 1

 

I'd appreciate it if you could shed light on the issue.

Full details are at attached file.

 

TiA,

Valentin.

0 Kudos
Reply
3 Replies

56 Views
joanxie
NXP TechSupport
NXP TechSupport

could you give me the logfile when you use the command ./start_isp.sh?

0 Kudos
Reply

44 Views
vraevsky
Contributor II

Attached the start_isp.sh log.

 

0 Kudos
Reply

30 Views
joanxie
NXP TechSupport
NXP TechSupport

I couldn't reproduce this issue and didn't find such issue before, did you have daA3840-30mc? this is default basler which is supported by the nxp bsp, if you have it, you can try this firstly, then porting baa2500 based on this, and I don't know how you build your isp sdk, you linux kernel should be 5.15.71, right?(you said 5.5.71, is this typo?) refer to the 5.15.71 release note, the isp-imx version is isp-imx-4.2.2.20.0.bin, but your logfile shows V4.2.2p22.5, I don't know if this is would be issue, you can rebuld the isp imx to bring up the camera agin, you can refer to the link as below

https://github.com/nxp-imx/meta-imx/tree/kirkstone-5.15.71-2.2.0/meta-bsp/recipes-bsp/isp-imx

0 Kudos
Reply