您好,在使用最新的Demo时,长时间运行依然会出现崩溃,三星C7和mate10都会出现(运行扫描后静置,几分钟后就会出现),频繁长时间使用也会出现
2019-09-05 10:14:31.397 21660-22232/me.devilsen.czxing I/CrashReport-Native: Successfully handled this native crash in Java profile.
2019-09-05 10:14:31.397 21660-22232/me.devilsen.czxing D/CrashReport-Native: Finished waiting 396 ms.
2019-09-05 10:14:31.397 21660-22232/me.devilsen.czxing I/CrashReport-Native: Clear eupInfo object.
2019-09-05 10:14:31.397 21660-22232/me.devilsen.czxing I/CrashReport-Native: Try to unlock file: /data/user/0/me.devilsen.czxing/app_bugly/../files/native_record_lock
2019-09-05 10:14:31.397 21660-22232/me.devilsen.czxing I/CrashReport-Native: Successfully unlock file: /data/user/0/me.devilsen.czxing/app_bugly/../files/native_record_lock
2019-09-05 10:14:31.397 21660-22232/me.devilsen.czxing D/CrashReport-Native: Restored signal handlers.
2019-09-05 10:14:31.397 21660-22232/me.devilsen.czxing D/CrashReport-Native: Unregister signal handlers.
2019-09-05 10:14:31.397 21660-22232/me.devilsen.czxing D/CrashReport-Native: Re-sending signal 'SIGSEGV' to thread: 22232
--------- beginning of crash
2019-09-05 10:14:31.398 21660-22232/me.devilsen.czxing A/libc: Fatal signal 11 (SIGSEGV), code 0, fault addr 0x549c in tid 22232 (Binder:21660_5)
使用Demo结束扫描,跳转到结果Activity页面,阻塞ScanActivityUI时间太长,onPause 到onStop 相差5秒+,下面日志的时间9秒
@OverRide
protected void onPause() {
ALog.e("onPause:");
super.onPause();
}
@Override
protected void onStop() {
ALog.e("onStop:");
mScanView.stopScan();
mScanView.closeCamera(); // 关闭摄像头预览,并且隐藏扫描框
super.onStop();
}
2019-09-05 10:07:20.947 21660-21660/me.devilsen.czxing D/CZXing >>>: 对焦测光成功
2019-09-05 10:07:20.965 21660-21660/me.devilsen.czxing V/ScanActivity:
2019-09-05 10:07:20.965 21660-21660/me.devilsen.czxing E/ScanActivity: [.(ScanActivity.java:105)onPause] onPause:
2019-09-05 10:07:20.969 21660-21660/me.devilsen.czxing D/CrashReport: >>> me.sam.czxing.ScanActivity onPaused <<<
2019-09-05 10:07:20.973 21660-21660/me.devilsen.czxing I/CrashReport-Native: Set native info: isAppForeground(false)
2019-09-05 10:07:20.996 21660-21660/me.devilsen.czxing D/CrashReport: >>> me.devilsen.czxing.ResultActivity onCreated <<<
2019-09-05 10:07:21.033 21660-21660/me.devilsen.czxing D/CrashReport: >>> me.devilsen.czxing.ResultActivity onResumed <<<
2019-09-05 10:07:21.036 21660-21660/me.devilsen.czxing I/CrashReport-Native: Set native info: isAppForeground(true)
2019-09-05 10:07:21.044 21660-21660/me.devilsen.czxing D/InputTransport: Input channel constructed: fd=80
2019-09-05 10:07:21.045 21660-21660/me.devilsen.czxing D/ViewRootImpl@377f772[ResultActivity]: setView = DecorView@ba547c3[ResultActivity] TM=true MM=false
2019-09-05 10:07:21.048 21660-21660/me.devilsen.czxing D/ViewRootImpl@6f0140c[ScanActivity]: MSG_WINDOW_FOCUS_CHANGED 0
2019-09-05 10:07:21.052 21660-21660/me.devilsen.czxing V/InputMethodManager: Not IME target window, ignoring
2019-09-05 10:07:21.053 21660-21660/me.devilsen.czxing D/ViewRootImpl@377f772[ResultActivity]: dispatchAttachedToWindow
2019-09-05 10:07:21.076 21660-21660/me.devilsen.czxing V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
2019-09-05 10:07:21.077 21660-21660/me.devilsen.czxing D/ViewRootImpl@377f772[ResultActivity]: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1920] result=0x7 surface={valid=true 3551907840} changed=true
2019-09-05 10:07:21.081 21660-21811/me.devilsen.czxing D/OpenGLRenderer: eglCreateWindowSurface = 0xd3effee0
2019-09-05 10:07:21.095 21660-21660/me.devilsen.czxing W/Activity: AppLock checkAppLockState locked:false verifying:false pkgName = me.devilsen.czxing isInMultiWindowMode:false showWhenLocked:false
2019-09-05 10:07:21.174 21660-21660/me.devilsen.czxing D/ViewRootImpl@377f772[ResultActivity]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1920) ci=Rect(0, 63 - 0, 0) vi=Rect(0, 63 - 0, 0) or=1
2019-09-05 10:07:21.175 21660-21660/me.devilsen.czxing D/ViewRootImpl@377f772[ResultActivity]: MSG_WINDOW_FOCUS_CHANGED 1
2019-09-05 10:07:21.183 21660-21660/me.devilsen.czxing V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@5b30ea5 nm : me.devilsen.czxing ic=null
2019-09-05 10:07:21.183 21660-21660/me.devilsen.czxing I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
2019-09-05 10:07:21.185 21660-21660/me.devilsen.czxing D/InputTransport: Input channel constructed: fd=81
2019-09-05 10:07:21.186 21660-21660/me.devilsen.czxing D/InputTransport: Input channel destroyed: fd=83
2019-09-05 10:07:21.199 21660-21660/me.devilsen.czxing D/SurfaceView: BG show() Surface(name=Background for - SurfaceView - me.devilsen.czxing/me.sam.czxing.ScanActivity@ffb876a@0) me.devilsen.czxing.camera.CameraSurface{ffb876a V.E...... ........ 0,0-1080,1920}
2019-09-05 10:07:21.200 21660-21660/me.devilsen.czxing D/SurfaceView: surfaceDestroyed 1 #2 me.devilsen.czxing.camera.CameraSurface{ffb876a V.E...... ........ 0,0-1080,1920}
2019-09-05 10:07:21.325 21660-21660/me.devilsen.czxing D/SensorManager: unregisterListener :: 7184, BOSCH Accelerometer Sensor,
2019-09-05 10:07:21.326 21660-21660/me.devilsen.czxing D/SurfaceView: BG destroy() Surface(name=Background for - SurfaceView - me.devilsen.czxing/me.sam.czxing.ScanActivity@ffb876a@0) me.devilsen.czxing.camera.CameraSurface{ffb876a V.E...... ........ 0,0-1080,1920}
2019-09-05 10:07:21.329 21660-21811/me.devilsen.czxing D/OpenGLRenderer: eglDestroySurface = 0xd3ebf660
2019-09-05 10:07:21.335 21660-21660/me.devilsen.czxing D/ViewRootImpl@6f0140c[ScanActivity]: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x5 surface={valid=false 0} changed=true
2019-09-05 10:07:30.994 21660-21660/me.devilsen.czxing V/ScanActivity:
2019-09-05 10:07:30.994 21660-21660/me.devilsen.czxing E/ScanActivity: [.(ScanActivity.java:111)onStop] onStop:
2019-09-05 10:07:31.345 21660-21660/me.devilsen.czxing D/CrashReport: >>> me.sam.czxing.ScanActivity onDestroyed <<<