Automattic / stories-android

Loop concept app - WP Stories library
GNU General Public License v2.0
20 stars 6 forks source link

Crash on Camera2 when taking several still pictures #37

Open mzorz opened 5 years ago

mzorz commented 5 years ago

While working on enabling flash mode setting selection in Camera2 in #33, got a total crash after taking 3-4 pictures one after the other:

2019-08-21 15:28:32.766 741-5665/? I/jpeg_hw: jpege_lib_hw_fe_buffer_cfg:305] w 4032 h 3024 stride 4032 scanline 3072
2019-08-21 15:28:32.769 814-29344/? I/Camera2ClientBase: Closed Camera 0. Client was: com.automattic.portkey (PID 5289, UID 10318)
2019-08-21 15:28:32.771 5289-5289/com.automattic.portkey W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored
2019-08-21 15:28:32.774 741-5634/? I/mm-camera: <IMGLIB>< INFO> 3892: module_faceproc_client_print_config: FD CONFIG : engine=FACEPROC_ENGINE_HW, mode=1, enable_bsgc=0, fd_face_info_mask=0x2, chromatix id=3, chromatix used = fd_hw_chromatix_detect_qc.h sw_detect=0, enable_upfront=1
2019-08-21 15:28:32.774 741-5634/? I/mm-camera: <IMGLIB>< INFO> 3907: module_faceproc_client_print_config: FD CONFIG : min_face_size=40, min_face_size_ratio=0.000000, speed=3, max_fps=0 (0 means max possible), thresholds= 100, 680 625 500, 720 680 500, search_cycles=7 10
2019-08-21 15:28:32.774 741-5634/? I/mm-camera: <IMGLIB>< INFO> 3912: module_faceproc_client_print_config: FD CONFIG : Frame width=640, height=480, stride=640, scanline=480
2019-08-21 15:28:32.777 741-5628/? W/HdrPlusClientImpl: notifyFrameMetadata: Frame metadata is not valid.
2019-08-21 15:28:32.791 741-5672/? I/mm-camera: <IMGLIB>< INFO> 444: jpegdma_util_check_params: Src wxh 1280x968 stxsl 1280x968, Dest wxh 1280x968 stxsl 1280x968, Yuv fmt 101, Framerate 30, Crop lxt 0x0 wxh 0x0
2019-08-21 15:28:32.793 741-5665/? I/QCamera: <JPEG><INFO> mm_jpeg_fbd: 3549: count 0 
2019-08-21 15:28:32.793 741-5665/? I/QCamera: <JPEG><INFO> mm_jpeg_fbd: 3550: KPI Perf] : PROFILE_JPEG_FBD
2019-08-21 15:28:32.799 741-5665/? I/QCamera: <HAL><INFO> jpegEvtHandle: 3478: Issue Jpeg Callback frameNumber = 804 status = 0
2019-08-21 15:28:32.810 741-5574/? I/mm-camera: <CPP   >< INFO> 378: cpp_hardware_set_clock: Set clock 200000000 BW avg 157464000 BW inst 157464000
2019-08-21 15:28:32.815 741-5622/? E/SourceCaptureBlock: EASEL (28:32.815 P33 T38): notifyFrameMetadata: AP may have dropped a frame with Easel timestamp 548519286193491
2019-08-21 15:28:32.815 741-5622/? E/SourceCaptureBlock: EASEL (28:32.815 P33 T38): notifyFrameMetadata: AP may have dropped a frame with Easel timestamp 548519319512181
2019-08-21 15:28:32.815 741-5622/? W/HdrPlusProcessingBlock: EASEL (28:32.815 P33 T49): doWorkLocked: Not enough inputs (1 but need 3).
2019-08-21 15:28:32.816 741-5594/? V/qomx_image_core: OMX_FreeHandle:338] 
2019-08-21 15:28:32.816 741-5594/? D/qomx_image_core: get_idx_from_handle:297] comp_idx 2 inst_idx 1
2019-08-21 15:28:32.816 741-5594/? I/qomx_image_core: OMX_FreeHandle:370] Error Component is still Active
2019-08-21 15:28:32.816 741-5594/? V/qomx_image_core: OMX_FreeHandle:373] Success
2019-08-21 15:28:32.817 741-5594/? I/QCamera: <HAL><INFO> encodeData: 1745: Src Buffer cnt = 3, res = 4032X3072 len = 18579456 rot = 0 src_dim = 4032X3024 dst_dim = 4032X3024
2019-08-21 15:28:32.817 741-5594/? I/QCamera: <HAL><INFO> encodeData: 1756: Src THUMB buf_cnt = 0, res = 0X0 len = 0 rot = 0 src_dim = 4032X3024, dst_dim = 0X0
2019-08-21 15:28:32.817 741-5594/? I/qomx_image_core: OMX_GetHandle:243] get instance pts is 0xf1e6a800
2019-08-21 15:28:32.817 741-5594/? D/qomx_image_core: OMX_GetHandle:261] handle = 0xf1e6a804 Instanceindex = 1,comp_idx 2 g_ptr 0xf1c44200
2019-08-21 15:28:32.817 741-5594/? I/qomx_image_core: OMX_GetHandle:267] Success
2019-08-21 15:28:32.819 741-5594/? I/QCamera: <HAL><INFO> encodeData: 1874: Main image idx = 2 src w/h (4032x3024), dst w/h (4032x3024)
2019-08-21 15:28:32.826 741-5677/? I/mm-still: startEncode:640] Start Encode 1
2019-08-21 15:28:32.826 741-5677/? I/jpeg_hw: jpege_lib_hw_fe_buffer_cfg:305] w 4032 h 3024 stride 4032 scanline 3072
2019-08-21 15:28:32.844 741-5622/? W/HdrPlusProcessingBlock: EASEL (28:32.844 P33 T49): doWorkLocked: Not enough inputs (2 but need 3).
2019-08-21 15:28:32.850 741-5684/? I/mm-camera: <IMGLIB>< INFO> 444: jpegdma_util_check_params: Src wxh 1280x976 stxsl 1280x976, Dest wxh 1280x976 stxsl 1280x976, Yuv fmt 101, Framerate 30, Crop lxt 0x0 wxh 0x0
2019-08-21 15:28:32.853 741-5677/? I/QCamera: <JPEG><INFO> mm_jpeg_fbd: 3549: count 0 
2019-08-21 15:28:32.853 741-5677/? I/QCamera: <JPEG><INFO> mm_jpeg_fbd: 3550: KPI Perf] : PROFILE_JPEG_FBD
2019-08-21 15:28:32.859 741-5677/? I/QCamera: <HAL><INFO> jpegEvtHandle: 3478: Issue Jpeg Callback frameNumber = 805 status = 0
2019-08-21 15:28:32.869 5289-5687/com.automattic.portkey A/libc: Fatal signal 7 (SIGBUS), code 2, fault addr 0x7e71566c00 in tid 5687 (glide-source-th), pid 5289 (omattic.portkey)
2019-08-21 15:28:32.901 5691-5691/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2019-08-21 15:28:32.901 846-846/? I//system/bin/tombstoned: received crash request for pid 5289
2019-08-21 15:28:32.905 5691-5691/? I/crash_dump64: performing dump of process 5289 (target tid = 5687)
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG: Build fingerprint: 'google/walleye/walleye:8.1.0/OPM2.171026.006.G1/4820017:user/release-keys'
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG: Revision: 'MP1'
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG: ABI: 'arm64'
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG: pid: 5289, tid: 5687, name: glide-source-th  >>> com.automattic.portkey <<<
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG: signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0x7e71566c00
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     x0   00000000780ec00c  x1   0000007e71566c00  x2   0000000000000400  x3   00000000780ec000
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     x4   0000007e71567000  x5   00000000780ec40c  x6   0000007e71566c00  x7   0000000000000000
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     x8   00000000780ec000  x9   000000000000000c  x10  0000007e717802d4  x11  0000007e8dd997a8
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     x12  0000007e77f00d20  x13  0000007e8dcb3d84  x14  0000007e8dcb3de4  x15  0000000000000000
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     x16  0000007e8dd96550  x17  0000007f11f9e2f0  x18  0000000000000005  x19  0000000000000400
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     x20  0000000000000000  x21  0000007e71566c00  x22  0000007e77f00d20  x23  00000000780ec000
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     x24  0000007e78033c00  x25  0000007e78033c00  x26  0000007e71789588  x27  0000007e71789588
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     x28  0000007e8dcd94ab  x29  0000007e717801b0  x30  0000007e8dafe214
2019-08-21 15:28:32.905 5691-5691/? A/DEBUG:     sp   0000007e717800f0  pc   0000007f11f9e3d8  pstate 0000000020000000
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG: backtrace:
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #00 pc 000000000001c3d8  /system/lib64/libc.so (memcpy+232)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #01 pc 0000000000395210  /system/lib64/libart.so (_ZN3art3JNI23SetPrimitiveArrayRegionIP11_jbyteArrayaNS_6mirror14PrimitiveArrayIaEEEEvP7_JNIEnvT_iiPKT0_+780)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #02 pc 0000000000119534  /system/lib64/libart.so (art::CheckJNI::SetPrimitiveArrayRegion(char const*, art::Primitive::Type, _JNIEnv*, _jarray*, int, int, void const*)+928)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #03 pc 000000000030ea34  /system/framework/arm64/boot-core-libart.oat (offset 0xd5000) (libcore.io.Memory.peekByteArray [DEDUPED]+196)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #04 pc 000000000054ae4c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #05 pc 00000000000dc5d0  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+264)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #06 pc 000000000029b49c  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #07 pc 0000000000295a90  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+700)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #08 pc 0000000000533f50  /system/lib64/libart.so (MterpInvokeStatic+264)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #09 pc 000000000053ca94  /system/lib64/libart.so (ExecuteMterpImpl+14612)
2019-08-21 15:28:33.179 5691-5691/? A/DEBUG:     #10 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #11 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #12 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #13 pc 0000000000532ad8  /system/lib64/libart.so (MterpInvokeVirtual+652)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #14 pc 000000000053c914  /system/lib64/libart.so (ExecuteMterpImpl+14228)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #15 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #16 pc 0000000000525450  /system/lib64/libart.so (artQuickToInterpreterBridge+1052)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #17 pc 0000000000553d0c  /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #18 pc 000000000054ab88  /system/lib64/libart.so (art_quick_invoke_stub+584)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #19 pc 00000000000dc594  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+204)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #20 pc 000000000046edc8  /system/lib64/libart.so (art::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::ArgArray*, art::JValue*, char const*)+100)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #21 pc 000000000047025c  /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+432)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #22 pc 000000000034e0f4  /system/lib64/libart.so (art::JNI::CallIntMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+616)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #23 pc 00000000001108ac  /system/lib64/libart.so (art::CheckJNI::CallMethodV(char const*, _JNIEnv*, _jobject*, _jclass*, _jmethodID*, std::__va_list, art::Primitive::Type, art::InvokeType)+1944)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #24 pc 00000000000fe7dc  /system/lib64/libart.so (art::CheckJNI::CallIntMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+84)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #25 pc 000000000010f168  /system/lib64/libandroid_runtime.so (_JNIEnv::CallIntMethod(_jobject*, _jmethodID*, ...)+120)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #26 pc 000000000012e3e8  /system/lib64/libandroid_runtime.so (JavaInputStreamAdaptor::doRead(void*, unsigned long)+76)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #27 pc 000000000012e298  /system/lib64/libandroid_runtime.so (JavaInputStreamAdaptor::read(void*, unsigned long)+60)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #28 pc 000000000060234c  /system/lib64/libskia.so (FrontBufferedStream::read(void*, unsigned long)+292)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #29 pc 00000000001e3d2c  /system/lib64/libskia.so (sk_fill_buffered_input_buffer(jpeg_decompress_struct*)+40)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #30 pc 0000000000025168  /system/lib64/libjpeg.so (jpeg_fill_bit_buffer+168)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #31 pc 0000000000026438  /system/lib64/libjpeg.so (decode_mcu+3720)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #32 pc 000000000001ff5c  /system/lib64/libjpeg.so (decompress_onepass+148)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #33 pc 0000000000027584  /system/lib64/libjpeg.so (process_data_simple_main+80)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #34 pc 000000000001d1b4  /system/lib64/libjpeg.so (jpeg_read_scanlines+148)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #35 pc 00000000001e29fc  /system/lib64/libskia.so (SkJpegCodec::readRows(SkImageInfo const&, void*, unsigned long, int, SkCodec::Options const&)+304)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #36 pc 00000000001e311c  /system/lib64/libskia.so (SkJpegCodec::onGetScanlines(void*, int, unsigned long)+44)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #37 pc 00000000001dd5e8  /system/lib64/libskia.so (SkCodec::getScanlines(void*, int, unsigned long)+104)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #38 pc 00000000001ebcd8  /system/lib64/libskia.so (SkSampledCodec::sampledDecode(SkImageInfo const&, void*, unsigned long, SkAndroidCodec::AndroidOptions const&)+1068)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #39 pc 00000000001eb728  /system/lib64/libskia.so (SkSampledCodec::onGetAndroidPixels(SkImageInfo const&, void*, unsigned long, SkAndroidCodec::AndroidOptions const&)+532)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #40 pc 00000000001d8920  /system/lib64/libskia.so (SkAndroidCodec::getAndroidPixels(SkImageInfo const&, void*, unsigned long, SkAndroidCodec::AndroidOptions const*)+316)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #41 pc 000000000012a748  /system/lib64/libandroid_runtime.so (doDecode(_JNIEnv*, SkStreamRewindable*, _jobject*, _jobject*)+2716)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #42 pc 0000000000b188b0  /system/framework/arm64/boot-framework.oat (offset 0x613000) (android.graphics.BitmapFactory.nativeDecodeStream [DEDUPED]+256)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #43 pc 000000000054ae4c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #44 pc 00000000000dc5d0  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+264)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #45 pc 000000000029b49c  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #46 pc 0000000000295a90  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+700)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #47 pc 0000000000533f50  /system/lib64/libart.so (MterpInvokeStatic+264)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #48 pc 000000000053ca94  /system/lib64/libart.so (ExecuteMterpImpl+14612)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #49 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #50 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #51 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #52 pc 0000000000533f50  /system/lib64/libart.so (MterpInvokeStatic+264)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #53 pc 000000000053ca94  /system/lib64/libart.so (ExecuteMterpImpl+14612)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #54 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #55 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #56 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #57 pc 0000000000533f50  /system/lib64/libart.so (MterpInvokeStatic+264)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #58 pc 000000000053ca94  /system/lib64/libart.so (ExecuteMterpImpl+14612)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #59 pc 0000000000275c00  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #60 pc 000000000027b7cc  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #61 pc 0000000000295a70  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #62 pc 0000000000533f50  /system/lib64/libart.so (MterpInvokeStatic+264)
2019-08-21 15:28:33.180 5691-5691/? A/DEBUG:     #63 pc 000000000053ca94  /system/lib64/libart.so (ExecuteMterpImpl+14612)
2019-08-21 15:28:33.181 741-5622/? I/libgcam: EASEL (28:33.181 P33 T52): [viewfinder.cc:80]: Smart Metering: Invalidating background AE results (0.504 seconds old).
2019-08-21 15:28:33.534 846-846/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_09
2019-08-21 15:28:33.535 1093-5711/? W/ActivityManager:   Force finishing activity com.automattic.portkey/.compose.ComposeLoopFrameActivity
2019-08-21 15:28:33.537 1093-1134/? I/BootReceiver: Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)
2019-08-21 15:28:33.540 1093-1131/? I/ActivityManager: Showing crash dialog for package com.automattic.portkey u0

Confirmed it is independent of the flash mode setting

mzorz commented 5 years ago

Looking into the logs - probably related to GLide? 2019-08-21 15:28:32.771 5289-5289/com.automattic.portkey W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored

2019-08-21 15:28:32.869 5289-5687/com.automattic.portkey A/libc: Fatal signal 7 (SIGBUS), code 2, fault addr 0x7e71566c00 in tid 5687 (glide-source-th), pid 5289 (omattic.portkey) 2

Also tried delaying using Glide by 500 millis and seemed to be a bit better - also tried flagging onClick until ImageSaveListener returned (either successfully or with an error), but still found other issues there. Will be good to get back at this later if we need to use Camera2 (note this issue has not been seen in CameraX).