EasyAR scan camera failed on S20+ device

0 votes
asked Sep 16 by khoadong (140 points)

We use EasyAR with Unity in our project and we got problems with EasyAR scan session on S20+ sm-g985f (Samsung device)
The log :
CameraFlashlight: prepareDeviceOpen: prepare for device open(cameraId=0)
EasyAR  : Camera1:
EasyAR  : java.io.IOException: setPreviewTexture failed
EasyAR  :     at android.hardware.Camera.setPreviewTexture(Native Method)
EasyAR  :     at cn.easyar.engine.CameraDeviceCamera.start(CameraDeviceCamera.java:181)
EasyAR  :     at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
EasyAR  :     at com.unity3d.player.UnityPlayer.access$300(Unknown Source:0)
EasyAR  :     at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
EasyAR  :     at android.os.Handler.dispatchMessage(Handler.java:102)
EasyAR  :     at android.os.Looper.loop(Looper.java:246)
EasyAR  :     at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)

Please help us check the case.


1 Answer

0 votes
answered Sep 18 by kenn (14,250 points)
Could you provide more details about usage, including version strings printed in the log and features/samples you are using.

Does the sample fail in the same way?

And...have you removed anything from the log?
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.