Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera getParameters crashes #1400

Open
Fanalea opened this issue Mar 2, 2021 · 0 comments
Open

Camera getParameters crashes #1400

Fanalea opened this issue Mar 2, 2021 · 0 comments

Comments

@Fanalea
Copy link

Fanalea commented Mar 2, 2021

Describe the bug
Application crashes when user try to take a picture with CameraView

To Reproduce
Use standard CameraView Fuse module

Smartphone (please complete the following information):

  • Device: [Samsung Galaxy Note10+, Samsung Galaxy Note20 Ultra, Samsung Galaxy S10e]
  • OS: [Android 10 (SDK 29), Android 11 (SDK 30), Android 9 (SDK 28)]

Additional context

java.lang.RuntimeException: 
  at android.hardware.Camera.native_getParameters (Native Method)
  at android.hardware.Camera.getParameters (Camera.java:2132)
  at com.fuse.controls.cameraview.CameraImpl.updatePreview (CameraImpl.java:139)
  at com.fuse.controls.cameraview.CameraImpl.onSurfaceTextureSizeChanged (CameraImpl.java:125)
  at android.view.TextureView.onSizeChanged (TextureView.java:377)
  at android.view.View.sizeChange (View.java:23955)
  at android.view.View.setFrame (View.java:23888)
  at android.view.View.layout (View.java:23747)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1829)
  at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1673)
  at android.widget.LinearLayout.onLayout (LinearLayout.java:1582)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1829)
  at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1673)
  at android.widget.LinearLayout.onLayout (LinearLayout.java:1582)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
  at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
  at com.android.internal.policy.DecorView.onLayout (DecorView.java:1099)
  at android.view.View.layout (View.java:23750)
  at android.view.ViewGroup.layout (ViewGroup.java:7277)
  at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:3712)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:3164)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2225)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:9126)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:999)
  at android.view.Choreographer.doCallbacks (Choreographer.java:797)
  at android.view.Choreographer.doFrame (Choreographer.java:732)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:984)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:8167)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants