Closed alexbagg03 closed 6 years ago
We are looking into this. We will update when we have more info.
Awesome, thanks. Also, I just found that the issue was still occurring for any apps I ran that were using sceneform 1.3. I rebooted my device and it seemed to fix the issue, but have no clue how or why the problem started. Anyhow, that said, it seems that it wasn't just a version-specific issue but an underlying bug related to the AR Session. I can now run apps with sceneform 1.4 👍
Glad it is resolved.
Our response is that based on the log it seems that multiple sessions are open and trying to connect to the same camera at the same time, or possibly there is an app in the background attempting to control the camera. Our recommendation would have been to restart to phone to make sure there isn't a bad app holding onto the camera.
Based on your post I think that confirms it. Closing the issue.
Hi Google Ar Devs,
I'm trying to run a sample of AR from https://github.com/google-ar/arcore-android-sdk/tree/master/samples/ But keep getting following error. Tried with modifying Scene images in using Camera option & Restarting the Emulator. But nothing seems to work.
09-07 16:07:01.346 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.347 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) 09-07 16:07:01.418 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.419 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) 09-07 16:07:01.494 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.495 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) 09-07 16:07:01.570 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.571 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) 09-07 16:07:01.646 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.646 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) 09-07 16:07:01.681 1481-4329/? E/Camera3-Stream: getBuffer: wait for output buffer return timed out after 3000ms (max_buffers 3) 09-07 16:07:01.682 1481-4329/? E/Camera3-Device: RequestThread: Can't get output buffer, skipping request: Connection timed out (-110) 09-07 16:07:01.682 4263-4282/com.raywenderlich.whacardroid D/ACameraDevice: Device error received, code 3, frame number 1103, request ID 0, subseq ID 0 09-07 16:07:01.682 4263-4323/com.raywenderlich.whacardroid E/native: android_camera.cc:1096 Camera capture failed! frame: 1103 reason: 1 09-07 16:07:01.722 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.723 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) 09-07 16:07:01.799 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.801 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) 09-07 16:07:01.878 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.879 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270) 09-07 16:07:01.955 4263-4285/com.raywenderlich.whacardroid E/BackgroundRenderer: Draw: glError 1282 09-07 16:07:01.956 4263-4285/com.raywenderlich.whacardroid E/HelloArActivity: Exception on the OpenGL thread java.lang.RuntimeException: Draw: glError 1282 at com.android.arsample.render.ShaderUtil.checkGLError(ShaderUtil.java:60) at com.android.arsample.render.BackgroundRenderer.draw(BackgroundRenderer.java:169) at com.android.arsample.main.HelloArActivity.onDrawFrame(HelloArActivity.java:279) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
I'm running it on Emulator (with Pixel 2 XL API 27) & ArCore has been updated with ARCore_1_4_x86_for_emulator.apk, manually. Please help to resolve this.
Thanks
com.google.ar.core.exceptions.SessionPausedException
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:145)
at com.google.ar.core.Session.nativeCreateAnchor(Native Method)
at com.google.ar.core.Session.createAnchor(Session.java:93)
at com.xyz.xyz.main.arloop.main.ARNode.setImage(ARNode.kt:142)
at com.xyz.xyz.main.arloop.main.MainActivity$onUpdateFrame$2.run(MainActivity.kt:184)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7116)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:925)
Hello Google AR Devs,
I've been developing an app using the 1.3 sceneform sdk, but just saw that the sdk was updated to 1.4 and so I tried updating my app to use 1.4. After doing so, I found that the app crashes immediately on startup. The app is set up in a very similar way to the hellosceneform sample app in that it uses an ArFragment in the MainActivity.
I also tried to run the hellosceneform sample app (now using sceneform 1.4) and get the same crash/exception -- here's the full log:
I'm trying to run on a Pixel (8.1.0). I'll probably stick with using sceneform 1.3 for now, but wanted to make you aware of this issue.
Thanks!