Greenstand / treetracker-android

Treetracker is Greenstands open source Android app to track and verify reforestation efforts globally. NEW DEVELOPERS: Please refer to the README for is issue milestones and topics! https://github.com/Greenstand/treetracker-android/blob/master/README.md
GNU Affero General Public License v3.0
92 stars 88 forks source link

2 Crashes - Fatal Exception: java.lang.RuntimeException: Camera is being used after Camera.release() was called #52

Closed Davidezrajay closed 6 years ago

Davidezrajay commented 6 years ago
 at android.hardware.Camera.setPreviewSurface(Camera.java)
   at android.hardware.Camera.setPreviewDisplay(Camera.java:702)
   at org.greenstand.android.TreeTracker.camera.CameraPreview.surfaceCreated(CameraPreview.java:40)
   at android.view.SurfaceView.updateWindow(SurfaceView.java:712)
   at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:316)
   at android.view.View.dispatchWindowVisibilityChanged(View.java:10435)
   at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1330)
   at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1330)
   at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1330)
   at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1330)
   at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1330)
   at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1751)
   at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1438)
   at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7416)
   at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
   at android.view.Choreographer.doCallbacks(Choreographer.java:695)
   at android.view.Choreographer.doFrame(Choreographer.java:631)
   at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
   at android.os.Handler.handleCallback(Handler.java:739)
   at android.os.Handler.dispatchMessage(Handler.java:95)
   at android.os.Looper.loop(Looper.java:158)
   at android.app.ActivityThread.main(ActivityThread.java:7230)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Davidezrajay commented 6 years ago

org.greenstand.android.treetracker.debug_issue_34_crash_5A99F2EB032500014EBF2E49E210C0FA_DNE_0_v2.txt

Davidezrajay commented 6 years ago

From Galaxy J1

Davidezrajay commented 6 years ago

Issue #8 on Fabric.io

ZavenArra commented 6 years ago

I believe this has been resolved and is not longer relevant. We don't see these crashes in the current builds.