java.io.IOException: setPreviewTexture failed

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Carpetfizz
, 10 months ago
setPreviewTexture failed
via GitHub by fahimk
, 2 years ago
setPreviewTexture failed
via GitHub by anjawahl
, 1 year ago
setPreviewTexture failed
via GitHub by Seroga88i
, 1 year ago
setPreviewTexture failed
java.io.IOException: setPreviewTexture failed
at android.hardware.Camera.setPreviewSurface(Native Method)
at me.dm7.barcodescanner.core.CameraPreview.showCameraPreview(CameraPreview.java:83)
at me.dm7.barcodescanner.core.CameraPreview.surfaceChanged(CameraPreview.java:68)
at android.view.SurfaceView.updateWindow(SurfaceView.java:630)
at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:161)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2205)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6337)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
at android.view.Choreographer.doCallbacks(Choreographer.java:686)
at android.view.Choreographer.doFrame(Choreographer.java:621)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

Users with the same issue

3 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.