AnsweredAssumed Answered

OMX layer crash when enabling VPU encoder imx8qxp

Question asked by Anantha Raman on Jun 11, 2020
Latest reply on Jul 6, 2020 by Joan Xie

Hi,

Am using imx8qxp SoC B0 revision with AOSP-9.2.2.0 .

I am facing some issue when enabling the VPU Encoder and trying to stream using the same in vysor but getting a crash from OMX layer for some reason. Any help on the same would be great

 

In DTS

&vpu_encoder {

   status = "okay"

};

This is the cash am getting

--------- beginning of crash
06-11 07:21:41.799  2911  4337 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-11 07:21:41.799  2911  4337 F DEBUG   : Build fingerprint: 'simrad/navico_naiad/naiad_8qxp:9/STG-0.55.25.100/anantha.r06110931:userdebug/dev-keys'
06-11 07:21:41.799  2911  4337 F DEBUG   : Revision: '0'
06-11 07:21:41.799  2911  4337 F DEBUG   : ABI: 'arm'
06-11 07:21:41.799  2911  4337 F DEBUG   : pid: 2911, tid: 4337, name: omx@1.0-service  >>> media.codec <<<
06-11 07:21:41.799  2911  4337 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3c
06-11 07:21:41.799  2911  4337 F DEBUG   : Cause: null pointer dereference
06-11 07:21:41.799  2911  4337 F DEBUG   :     r0  00000000  r1  41424752  r2  00000001  r3  7f000001
06-11 07:21:41.799  2911  4337 F DEBUG   :     r4  41424752  r5  00000000  r6  00000000  r7  00000010
06-11 07:21:41.800  2911  4337 F DEBUG   :     r8  80001005  r9  f29d9004  r10 f1af64b9  r11 f1af6490
06-11 07:21:41.800  2911  4337 F DEBUG   :     ip  f1aa7de4  sp  f05af760  lr  f1a9b9e5  pc  f1a9b990
06-11 07:21:41.808  2911  2989 I OMXPlayer: OMXCOMP(OMX.Freescale.std.video_encoder.avc.hw-based):
06-11 07:21:41.808  2911  2989 I OMXPlayer: EmptyThisBuffer: Buffer: 0xF2E8F790, Offset: 0x0, FilledLen: 0xC(12), Flag: 0x10
06-11 07:21:41.808  2911  2989 I OMXPlayer: LEVEL: 5 FUNCTION: DoEmptyThisBuffer LINE: 229
06-11 07:21:41.808  2911  2989 I OMXPlayer: OMX.Freescale.std.video_encoder.avc.hw-based EmptyBuffer 0xf2ea7788.
06-11 07:21:41.808  2911  2989 I OMXPlayer: LEVEL: 5 FUNCTION: DoEmptyThisBuffer LINE: 249
06-11 07:21:41.808  2911  2989 I OMXPlayer: OMX.Freescale.std.video_encoder.avc.hw-based Sending Input buffer[0xf2ea7788]
06-11 07:21:41.810  2911  4337 F DEBUG   :
06-11 07:21:41.810  2911  4337 F DEBUG   : backtrace:
06-11 07:21:41.810  2911  4337 F DEBUG   :     #00 pc 00007990  /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (V4l2Object::IsFormatSupported(unsigned int)+8)
06-11 07:21:41.810  2911  4337 F DEBUG   :     #01 pc 000079e1  /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (V4l2Object::SetFormat(V4l2ObjectFormat*)+36)
06-11 07:21:41.810  2911  4337 F DEBUG   :     #02 pc 0000cf57  /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (IsiColorConvert::setParam()+78)
06-11 07:21:41.810  2911  4337 F DEBUG   :     #03 pc 0000d1a5  /vendor/lib/lib_omx_v4l2_common_arm11_elinux.so (IsiColorConvert::AddInputFrame(OMX_BUFFERHEADERTYPE*)+156)
06-11 07:21:41.810  2911  4337 F DEBUG   :     #04 pc 00006e77  /vendor/lib/lib_omx_v4l2_enc_arm11_elinux.so (V4l2Enc::ProcessInputBuffer()+274)
06-11 07:21:41.810  2911  4337 F DEBUG   :     #05 pc 000066e9  /vendor/lib/lib_omx_v4l2_enc_arm11_elinux.so (V4l2Enc::ProcessDataBuffer()+500)
06-11 07:21:41.810  2911  4337 F DEBUG   :     #06 pc 00009eab  /vendor/lib/lib_omx_common_v2_arm11_elinux.so (DoThread(void*)+114)
06-11 07:21:41.811  2911  4337 F DEBUG   :     #07 pc 00063c95  /system/lib/libc.so (__pthread_start(void*)+22)
06-11 07:21:41.811  2911  4337 F DEBUG   :     #08 pc 0001e095  /system/lib/libc.so (__start_thread+22)
06-11 07:21:41.823  2911  2989 I OMXPlayer: OMXCOMP(OMX.Freescale.std.video_encoder.avc.hw-based):

Outcomes