When attempting to playback a recorded AR session, ARSceneView crashes with TextureNotSetException
com.google.ar.core.exceptions.TextureNotSetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at com.google.ar.core.Session.throwExceptionFromArStatus(Session.java:16)
at com.google.ar.core.Session.nativeUpdate(Native Method)
at com.google.ar.core.Session.update(Session.java:2)
at io.github.sceneview.ar.arcore.ARSession.updateOrNull(ArSession.kt:103)
at io.github.sceneview.ar.ARSceneView.onFrame(ARSceneView.kt:477)
at io.github.sceneview.SceneView$FrameCallback.doFrame(SceneView.kt:876)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1035)
at android.view.Choreographer.doCallbacks(Choreographer.java:845)
at android.view.Choreographer.doFrame(Choreographer.java:775)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1022)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
When attempting to playback a recorded AR session,
ARSceneView
crashes withTextureNotSetException
Recording and playback https://developers.google.com/ar/develop/java/recording-and-playback/developer-guide#kotlin
Configure session block:
I moving the set to an event and waiting a minute and calling:
and end up with the same behavior