Hello,
there are 2 camera , first camera with MMAPI/FFMPEG functions and second run with a C++/Gstreamer functions (see3cam CU130).
That’s work and record well … but , when i stop first camera , there have a crash after closes of the NvVideoConverter and the NvVideoEncoder.
Show log :
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvConvertHEVC :01645: convertFrame(): recv Image with an null imageData buffer
WARN: NvConvertHEVC :01272: LoopConvertFrame(): LoopConvertFrame Close
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvInterfaceHEVC :00131: CloseHEVC(): wait for stopping Converter
WARN: NvConvertHEVC :00171: cleanmBufferI420(): DROP BUFFER I420 IMAGE
WARN: NvConvertHEVC :00171: cleanmBufferI420(): DROP BUFFER I420 IMAGE
WARN: NvConvertHEVC :00171: cleanmBufferI420(): DROP BUFFER I420 IMAGE
WARN: NvConvertHEVC :01275: LoopConvertFrame(): LoopConvertFrame cleanup DONE
WARN: NvConvertHEVC :01277: LoopConvertFrame(): LoopConvertFrame image : END
CloseHEVC m_Encoder_HEVC
ERROR: NvInterfaceHEVC :00156: CloseHEVC(): wait for stopping Encoder
ERROR: NvEncoderHEVC :01894: encodeFrame(): Could not read complete frame from input stream
ERROR: NvEncoderHEVC :01925: encodeFrame(): File read complete.
ERROR: NvEncoderHEVC :01351: StopStream(): Send EOS to ENC output plane
ERROR: NvEncoderHEVC :01364: StopStream(): Send -1 to waitForDQThread EOS
ERROR: NvEncoderHEVC :01370: StopStream(): Stop ENC output plane
ERROR: NvEncoderHEVC :01375: StopStream(): capture_plane.setStreamStatus
INFO: NvEncoderHEVC :01380: StopStream(): Camera video streaming off ...
WARN: NvEncoderHEVC#011:01748:#011 LoopCompressFrame():#011LoopCompressFrame DONE
kernel: [ 734.119206] autorecord[2061]: unhandled level 2 translation fault (11) at 0x00000018, esr 0x92000006
kernel: [ 734.119222] pgd = ffffffc0dee10000
kernel: [ 734.119244] [00000018] *pgd=000000016c131003, *pmd=0000000000000000
kernel: [ 734.119261]
kernel: [ 734.119269] CPU: 1 PID: 2061 Comm: autorecord Not tainted 3.10.96+ #1
kernel: [ 734.119275] task: ffffffc0c4f34c00 ti: ffffffc0c4f38000 task.ti: ffffffc0c4f38000
kernel: [ 734.119284] PC is at 0x7f8009d01c
kernel: [ 734.119287] LR is at 0x7f8009d01c
kernel: [ 734.119292] pc : [<0000007f8009d01c>] lr : [<0000007f8009d01c>] pstate: 60000000
kernel: [ 734.119295] sp : 0000007f0f63fe40
kernel: [ 734.119298] x29: 0000007f0f641610 x28: 0000007f0f640890
kernel: [ 734.119304] x27: 0000000000000000 x26: 0000007f0f640ad8
kernel: [ 734.119309] x25: 0000007f0f640a90 x24: 0000000000000001
kernel: [ 734.119313] x23: 0000000000000000 x22: 0000007f44f2fee0
kernel: [ 734.119318] x21: 0000000000000001 x20: 0000007f180007e8
kernel: [ 734.119322] x19: 0000007f0f640558 x18: 0000000000000000
kernel: [ 734.119327] x17: 0000007f8a27a340 x16: 0000007f800b0328
kernel: [ 734.119331] x15: 0000000000000000 x14: 0000000000000000
kernel: [ 734.119335] x13: 0000000000000870 x12: 0000000000000000
kernel: [ 734.119340] x11: 0000000000000000 x10: 0000000000000f00
kernel: [ 734.119344] x9 : 0000000000000004 x8 : 0000007f0f640760
kernel: [ 734.119349] x7 : 0000000000000000 x6 : 000000000000003f
kernel: [ 734.119353] x5 : 0000000000000040 x4 : ffffffffffffffe0
kernel: [ 734.119357] x3 : 0000000000000020 x2 : 0000000000000000
kernel: [ 734.119362] x1 : 0000000000000000 x0 : 0000007f0f640558
kernel: [ 734.119366]
kernel: [ 734.119388] Library at 0x7f8009d01c: 0x7f8008f000 /usr/lib/aarch64-linux-gnu/tegra/libnvddk_2d_v2.so
kernel: [ 734.119398] Library at 0x7f8009d01c: 0x7f8008f000 /usr/lib/aarch64-linux-gnu/tegra/libnvddk_2d_v2.so
kernel: [ 734.119407] vdso base = 0x7f8b454000
[Switching to Thread 0x7f3bffee20 (LWP 2219)]
0x0000007fac14701c in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvddk_2d_v2.so
(gdb) bt
#0 0x0000007fac14701c in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvddk_2d_v2.so
#1 0x0000007fac13bef0 in NvDdk2dBlitExt () from /usr/lib/aarch64-linux-gnu/tegra/libnvddk_2d_v2.so
#2 0x0000007f672fcd38 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_video.so
#3 0x0000007f672cfa20 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_video.so
#4 0x0000007f672bab7c in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_video.so
#5 0x0000007f67279fa4 in NvMMLiteBlockDoWork () from /usr/lib/aarch64-linux-gnu/tegra/libnvmmlite_utils.so
#6 0x0000007f6728ba10 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvmmlite.so
#7 0x0000007f4835293c in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvomx.so
#8 0x0000007f48347e54 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvomx.so
#9 0x0000007f48315224 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvomx.so
#10 0x0000007f4831f4a4 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvomx.so
#11 0x0000007fac0ed40c in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvos.so
#12 0x0000007fb6ef7fc4 in start_thread (arg=0x7fac0ed3d0) at pthread_create.c:335
#13 0x0000007fb6e702e0 in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:89
can i run 2 cameras with Nvidia Converter ?!
I didn’t find information about NvRmMemHanldeAllocAttr in MMAPI
kernel: [ 663.604911] nvmap_alloc_handle: PID 1932: autorecord: WARNING: All NvMap Allocations must have a tag to identify the subsystem allocating memory.Plase pass the tag to the API call NvRmMemHanldeAllocAttr() or relevant.