Crash on Android from CameraDevice.java(line 297)

+2 votes
asked Nov 12, 2018 by yannick (430 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? 

2 Answers

+1 vote
answered Nov 15, 2018 by yannick (430 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.
0 votes
answered Feb 20, 2019 by sbeck27 (700 points)
I experience the same thing when I try to pause the engine. Help would be appreciated!
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...