java.io.IOException: setPreviewTexture failed

GitHub | Carpetfizz | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    setPreviewTexture failed

    GitHub | 4 months ago | Carpetfizz
    java.io.IOException: setPreviewTexture failed
  2. 0
    samebug tip
    This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 2#267042491

    GitHub | 5 months ago | hussainbadri21
    java.lang.RuntimeException: setParameters failed

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      setPreviewTexture failed

      at android.hardware.Camera.setPreviewSurface()
    2. Android Platform
      Camera.setPreviewDisplay
      1. android.hardware.Camera.setPreviewSurface(Native Method)
      2. android.hardware.Camera.setPreviewDisplay(Camera.java:629)
      2 frames
    3. me.dm7.barcodescanner
      CameraPreview.surfaceChanged
      1. me.dm7.barcodescanner.core.CameraPreview.showCameraPreview(CameraPreview.java:83)
      2. me.dm7.barcodescanner.core.CameraPreview.surfaceChanged(CameraPreview.java:68)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.view.SurfaceView.updateWindow(SurfaceView.java:630)
      2. android.view.SurfaceView$3.onPreDraw(SurfaceView.java:161)
      3. android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
      4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2205)
      5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)
      6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6337)
      7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
      8. android.view.Choreographer.doCallbacks(Choreographer.java:686)
      9. android.view.Choreographer.doFrame(Choreographer.java:621)
      10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
      11. android.os.Handler.handleCallback(Handler.java:751)
      12. android.os.Handler.dispatchMessage(Handler.java:95)
      13. android.os.Looper.loop(Looper.java:154)
      14. android.app.ActivityThread.main(ActivityThread.java:6119)
      14 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
      2 frames