AnsweredAssumed Answered

VPU Encoding fails intermittently

Question asked by Saurabh Patel on Mar 23, 2014
Latest reply on Sep 28, 2014 by Saurabh Patel

Hi,

 

I am using custom hardware based in IMX6q and jb4.3_1.1.0 is ported on it.

 

I am getting media server crash and restarted my system while 1280x720 H264 encoding.

 

Please find the attached log.

 

03-23 11:19:58.168 E/v_gralloc( 2313): Failed to register buffer handle=0x4004ac00

03-23 11:19:58.168 W/GraphicBufferMapper( 2313): registerBuffer(0x4004abc8) failed -22 (Invalid argument)

03-23 11:19:58.168 E/GraphicBuffer( 2313): unflatten: registerBuffer failed: Invalid argument (-22)

03-23 11:19:58.168 E/v_gralloc( 2313): Failed to register buffer handle=0x4004ae58

03-23 11:19:58.168 W/GraphicBufferMapper( 2313): registerBuffer(0x4004ae20) failed -22 (Invalid argument)

03-23 11:19:58.168 E/GraphicBuffer( 2313): unflatten: registerBuffer failed: Invalid argument (-22)

03-23 11:19:58.178 E/v_gralloc( 2313): Failed to register buffer handle=0x4217c4c8

03-23 11:19:58.178 W/GraphicBufferMapper( 2313): registerBuffer(0x4217c490) failed -22 (Invalid argument)

03-23 11:19:58.178 E/GraphicBuffer( 2313): unflatten: registerBuffer failed: Invalid argument (-22)

03-23 11:19:58.188 E/v_gralloc( 2313): Failed to register buffer handle=0x4217c748

03-23 11:19:58.188 W/GraphicBufferMapper( 2313): registerBuffer(0x4217c710) failed -22 (Invalid argument)

03-23 11:19:58.188 E/GraphicBuffer( 2313): unflatten: registerBuffer failed: Invalid argument (-22)

03-23 11:19:58.198 E/v_gralloc( 2313): Failed to register buffer handle=0x4217c9b8

03-23 11:19:58.198 W/GraphicBufferMapper( 2313): registerBuffer(0x4217c980) failed -22 (Invalid argument)

03-23 11:19:58.198 E/GraphicBuffer( 2313): unflatten: registerBuffer failed: Invalid argument (-22)

03-23 11:19:58.198 I/OMXPlayer( 2313): GM_STATE_LOADED DONE

03-23 11:19:58.198 V/MX.Player.Joint( 6890): Video size: 1280 x 720

03-23 11:19:58.198 V/MX.Player.Joint( 6890): 1st prepared. duration=447424ms

03-23 11:19:58.208 I/vpu-lib ( 2313): <gpu> alloc handle: 0x4004afa8, paddr: 0x716ac000, vaddr: 0x4471d000

03-23 11:19:58.218 V/MX.Player.Joint( 6890): start

03-23 11:19:58.218 I/OMXPlayer( 2313): start player.

03-23 11:19:58.218 I/OMXPlayer( 2313): Clock State: 1

03-23 11:19:58.218 I/OMXPlayer( 2313): Clock State: 1

03-23 11:19:58.218 F/libc    ( 2313): Fatal signal 11 (SIGSEGV) at 0x585cfb4c (code=1), thread 6939 (mediaserver)

03-23 11:19:58.278 I/DEBUG   ( 2306): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

03-23 11:19:58.278 I/DEBUG   ( 2306): Build fingerprint: 'Freescale/sabresd_6dq/sabresd_6dq:4.3/1.1.0-rc4/20131206:eng/dev-keys'

03-23 11:19:58.278 I/DEBUG   ( 2306): Revision: '405522'

03-23 11:19:58.278 I/DEBUG   ( 2306): pid: 2313, tid: 6939, name: mediaserver  >>> /system/bin/mediaserver <<<

03-23 11:19:58.278 I/DEBUG   ( 2306): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 585cfb4c

03-23 11:19:58.288 W/NativeCrashListener( 2655): Couldn't find ProcessRecord for pid 2313

03-23 11:19:58.298 D/dalvikvm( 4284): GC_CONCURRENT freed 486K, 18% free 2720K/3312K, paused 3ms+2ms, total 28ms

03-23 11:19:58.298 D/dalvikvm( 4284): WAIT_FOR_CONCURRENT_GC blocked 13ms

03-23 11:19:58.428 I/DEBUG   ( 2306):     r0 585cfb38  r1 00000000  r2 ffffffdc  r3 40cace68

03-23 11:19:58.428 I/DEBUG   ( 2306):     r4 585cfad0  r5 534a2de8  r6 585cfad0  r7 00000001

03-23 11:19:58.428 I/DEBUG   ( 2306):     r8 00159000  r9 0000001c  sl 00000000  fp 4198f428

03-23 11:19:58.428 I/DEBUG   ( 2306):     ip 40cacef0  sp 534a2c70  lr 40c458ab  pc 40c25efa  cpsr 400f0030

03-23 11:19:58.428 I/DEBUG   ( 2306):     d0  40fe666666666666  d1  0000000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d2  0000000000000000  d3  0000000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d4  3fb562a9750d03a2  d5  bebbae4c1fc4fae5

03-23 11:19:58.428 I/DEBUG   ( 2306):     d6  3e66376972bea4d0  d7  0001000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d8  0000000022637f0c  d9  0000000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d10 0000000000000000  d11 0000000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d12 0000000000000000  d13 0000000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d14 0000000000000000  d15 0000000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d16 40f0000000000000  d17 40b999999999999a

03-23 11:19:58.428 I/DEBUG   ( 2306):     d18 000000000049b848  d19 3f80000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d20 3fc54daff75d0b41  d21 bf66b5c5bba6444b

03-23 11:19:58.428 I/DEBUG   ( 2306):     d22 3fd1abcdaa00af36  d23 3fb0000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d24 3fa7ca9ee311f87c  d25 bfa7ca9ee9a07449

03-23 11:19:58.428 I/DEBUG   ( 2306):     d26 3f6328e1cb8c85e0  d27 4000000000000000

03-23 11:19:58.428 I/DEBUG   ( 2306):     d28 3ffb950c957fd432  d29 bfd58aa5d4340e89

03-23 11:19:58.428 I/DEBUG   ( 2306):     d30 3ff0000000000000  d31 3fb562a9750d03a2

03-23 11:19:58.428 I/DEBUG   ( 2306):     scr 88000010

03-23 11:19:58.428 I/DEBUG   ( 2306):

03-23 11:19:58.428 I/DEBUG   ( 2306): backtrace:

03-23 11:19:58.428 I/DEBUG   ( 2306):     #00  pc 0000fefa  /system/lib/libGAL.so

03-23 11:19:58.428 I/DEBUG   ( 2306):     #01  pc 0002f8a7  /system/lib/libGAL.so

03-23 11:19:58.428 I/DEBUG   ( 2306):     #02  pc 0002fa17  /system/lib/libGAL.so

03-23 11:19:58.428 I/DEBUG   ( 2306):     #03  pc 000325eb  /system/lib/libGAL.so (gcoSURF_CPUCacheOperation+18)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #04  pc 000021b5  /system/lib/hw/gralloc_viv.imx6.so (gc_gralloc_unlock(gralloc_module_t const*, native_handle const*)+76)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #05  pc 00001693  /system/lib/hw/gralloc.imx6.so (gralloc_unlock(gralloc_module_t const*, native_handle const*)+16)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #06  pc 000070c9  /system/lib/libui.so (android::GraphicBufferMapper::unlock(native_handle const*)+32)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #07  pc 00003289  /system/lib/lib_omx_surface_render_arm11_elinux.so (SurfaceRender::WriteDevice(OMX_BUFFERHEADERTYPE*)+252)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #08  pc 0001c97b  /system/lib/lib_omx_common_v2_arm11_elinux.so (VideoRender::RenderFrame(OMX_BUFFERHEADERTYPE*)+18)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #09  pc 0001cac5  /system/lib/lib_omx_common_v2_arm11_elinux.so (VideoRender::ProcessClkBuffer()+324)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #10  pc 0000cd53  /system/lib/lib_omx_common_v2_arm11_elinux.so (ExecutingState::ProcessBuffer()+10)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #11  pc 0000ca4b  /system/lib/lib_omx_common_v2_arm11_elinux.so (DoThread(void*)+150)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #12  pc 0000ca78  /system/lib/libc.so (__thread_entry+72)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #13  pc 0000cbf4  /system/lib/libc.so (pthread_create+208)

03-23 11:19:58.428 I/DEBUG   ( 2306):     #14  pc 00007f9c  <unknown>

03-23 11:19:58.428 I/DEBUG   ( 2306):

Original Attachment has been moved to: vpu_gralloc_crash.log.zip

Outcomes