Crash on Android from CameraDevice.java(line 297)

+1 vote
asked Nov 12 by yannick (250 points)

I started receiving crash report with this error and call stack : 

Fatal Exception: java.lang.RuntimeException

Unable to pause activity {com.editionsalaska.ra/com.editionsalaska.ra.ARScannerActivity}: java.lang.RuntimeException: getParameters failed (empty parameters)

android.hardware.Camera.native_getParameters (Camera.java)
android.hardware.Camera.getParameters (Camera.java:1952)
cn.easyar.engine.CameraDevice.getSize (CameraDevice.java:297)
cn.easyar.engine.EasyARNative.onPause (EasyARNative.java)
cn.easyar.engine.EasyAR.onPause (EasyAR.java:111)
cn.easyar.Engine.onPause (Engine.java:21)
com.editionsalaska.ra.easyar.GLView.onPause (GLView.java:101)
com.editionsalaska.ra.ARScannerActivity.onPause (ARScannerActivity.java:146)

Any ideas why? 

1 Answer

+1 vote
answered Nov 15 by yannick (250 points)
Seems to be happening only on Samsung devices... 66% of the time in Android 8, and 63% of the time when app is in background state.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...