AnsweredAssumed Answered

Running camera as background service in Android9, IMX8qxp

Question asked by wasim nazir on Apr 14, 2020
Latest reply on Apr 14, 2020 by Bio_TICFSL

Hi Guys,

 

I need to run camera app as background java service in Android9, IMX8qxp. For which I use built-in camera app as background service and trying to run in background at BOOT_COMPLETE.

I am facing this crash, few times on reboot

 

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

--------- beginning of crash
04-13 15:16:31.790 3131 3221 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe0000c in tid 3221 (MessageThread), pid 3131 (provider@2.4-se)
04-13 15:16:31.740 3131 3221 I chatty : uid=1047(cameraserver) MessageThread identical 1 line
04-13 15:16:31.782 3131 3221 I FslCameraHAL: handleFrameByOpencl:688, opencl don't support format convert from 0x25 to 0x103
04-13 15:16:31.893 4062 4062 I crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
04-13 15:16:31.895 3178 3178 I /system/bin/tombstoned: received crash request for pid 3221
04-13 15:16:31.901 4062 4062 I crash_dump32: performing dump of process 3131 (target tid = 3221)
04-13 15:16:31.914 4062 4062 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-13 15:16:31.915 4062 4062 F DEBUG : Build fingerprint: 'Android/mek_8q/mek_8q:9/2.3.0-ga-rc2/wasim.nazir04131243:userdebug/dev-keys'
04-13 15:16:31.915 4062 4062 F DEBUG : Revision: '0'
04-13 15:16:31.915 4062 4062 F DEBUG : ABI: 'arm'
04-13 15:16:31.915 4062 4062 F DEBUG : pid: 3131, tid: 3221, name: MessageThread >>> /vendor/bin/hw/android.hardware.camera.provider@2.4-service <<<
04-13 15:16:31.915 4062 4062 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe0000c
04-13 15:16:31.916 4062 4062 F DEBUG : r0 00e0000c r1 00e00000 r2 e9a80000 r3 e9ad0e00
04-13 15:16:31.916 4062 4062 F DEBUG : r4 e9a80000 r5 00e00000 r6 eb813308 r7 e9ad0e00
04-13 15:16:31.916 4062 4062 F DEBUG : r8 00e0000c r9 e9ad0e00 r10 ea5db448 r11 00000000
04-13 15:16:31.916 4062 4062 F DEBUG : ip ec16e62c sp ea5db390 lr ec133ea5 pc ec12e540
04-13 15:16:31.942 4062 4062 F DEBUG :
04-13 15:16:31.942 4062 4062 F DEBUG : backtrace:
04-13 15:16:31.943 4062 4062 F DEBUG : #00 pc 00064540 /system/lib/libc.so (pthread_mutex_lock+4)
04-13 15:16:31.943 4062 4062 F DEBUG : #01 pc 00069ea1 /system/lib/libc.so (je_arena_dalloc_large+20)
04-13 15:16:31.943 4062 4062 F DEBUG : #02 pc 0007df39 /system/lib/libc.so (je_free+72)
04-13 15:16:31.943 4062 4062 F DEBUG : #03 pc 0001755f /system/lib/vndk-sp-28/libhwbinder.so (android::hardware::Parcel::freeDataNoInit()+182)
04-13 15:16:31.943 4062 4062 F DEBUG : #04 pc 00017491 /system/lib/vndk-sp-28/libhwbinder.so (android::hardware::Parcel::~Parcel()+4)
04-13 15:16:31.943 4062 4062 F DEBUG : #05 pc 00010931 /system/lib/vndk-28/android.hardware.camera.device@3.4.so (android::hardware::camera::device::V3_4::BpHwCameraDeviceCallback::_hidl_processCaptureResult_3_4(android::hardware::IInterface*, android::hardware::details::HidlInstrumentor*, android::hardware::hidl_vec<android::hardware::camera::device::V3_4::CaptureResult> const&)+364)
04-13 15:16:31.943 4062 4062 F DEBUG : #06 pc 00010b33 /system/lib/vndk-28/android.hardware.camera.device@3.4.so (android::hardware::camera::device::V3_4::BpHwCameraDeviceCallback::processCaptureResult_3_4(android::hardware::hidl_vec<android::hardware::camera::device::V3_4::CaptureResult> const&)+14)
04-13 15:16:31.943 4062 4062 F DEBUG : #07 pc 00010a03 /vendor/lib/camera.device@3.4-impl.so (android::hardware::camera::device::V3_4::implementation::CameraDeviceSession::ResultBatcher_3_4::invokeProcessCaptureResultCallback_3_4(android::hardware::hidl_vec<android::hardware::camera::device::V3_4::CaptureResult>&, bool)+410)
04-13 15:16:31.943 4062 4062 F DEBUG : #08 pc 00010495 /vendor/lib/camera.device@3.4-impl.so (android::hardware::camera::device::V3_4::implementation::CameraDeviceSession::ResultBatcher_3_4::processOneCaptureResult_3_4(android::hardware::camera::device::V3_4::CaptureResult&)+172)
04-13 15:16:31.943 4062 4062 F DEBUG : #09 pc 0000fe53 /vendor/lib/camera.device@3.4-impl.so (android::hardware::camera::device::V3_4::implementation::CameraDeviceSession::ResultBatcher_3_4::processCaptureResult_3_4(android::hardware::camera::device::V3_4::CaptureResult&)+106)
04-13 15:16:31.943 4062 4062 F DEBUG : #10 pc 0000d8f7 /vendor/lib/camera.device@3.4-impl.so (android::hardware::camera::device::V3_4::implementation::CameraDeviceSession::sProcessCaptureResult_3_4(camera3_callback_ops const*, camera3_capture_result const*)+746)
04-13 15:16:31.943 4062 4062 F DEBUG : #11 pc 00009a9b /vendor/lib/hw/camera.imx8.so (CaptureRequest::onCaptureDone(StreamBuffer*)+90)
04-13 15:16:31.943 4062 4062 F DEBUG : #12 pc 0000b37f /vendor/lib/hw/camera.imx8.so (VideoStream::processCaptureRequest(StreamBuffer&, android::sp<CaptureRequest>)+94)
04-13 15:16:31.943 4062 4062 F DEBUG : #13 pc 0000b101 /vendor/lib/hw/camera.imx8.so (VideoStream::handleCaptureFrame()+412)
04-13 15:16:31.943 4062 4062 F DEBUG : #14 pc 0000b50b /vendor/lib/hw/camera.imx8.so (VideoStream::handleMessage()+338)
04-13 15:16:31.943 4062 4062 F DEBUG : #15 pc 0000b655 /vendor/lib/hw/camera.imx8.so (VideoStream::MessageThread::threadLoop()+8)
04-13 15:16:31.943 4062 4062 F DEBUG : #16 pc 0000c0cb /system/lib/vndk-sp-28/libutils.so (android::Thread::_threadLoop(void*)+286)
04-13 15:16:31.943 4062 4062 F DEBUG : #17 pc 00063c15 /system/lib/libc.so (__pthread_start(void*)+22)
04-13 15:16:31.943 4062 4062 F DEBUG : #18 pc 0001e085 /system/lib/libc.so (__start_thread+22)

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

 

 

What can be the issue for the crash. Is it because the camera/media native services are not ready at BOOT_COMPLETE. Full log is attached below.

 

Any suggestions will be helpful.

 

 

Thanks in Advance,

Wasim

Attachments

Outcomes