BRCAChallenge / BRCAMobile

0 stars 0 forks source link

random crash on Android after long period of inactivity #23

Open falquaddoomi opened 6 years ago

falquaddoomi commented 6 years ago

After a long period of inactivity, the debug version of the app will occasionally display its debug menu overlay (usually triggered by shaking the phone while the app is in the foreground) even though the app is inactive. Interacting with the menu or dismissing it and then launching the app will cause it to crash. This is apparently a known issue on our version of React Native, 0.49.5:

The logcat crash log contains the following:

11-27 08:18:53.366 19540 19614 E AndroidRuntime: FATAL EXCEPTION: Thread-3
11-27 08:18:53.366 19540 19614 E AndroidRuntime: Process: com.brcamobile, PID: 19540
11-27 08:18:53.366 19540 19614 E AndroidRuntime: java.lang.RuntimeException: java.lang.InterruptedException
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.common.futures.SimpleSettableFuture.getOrThrow(SimpleSettableFuture.java:102)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.bridge.queue.MessageQueueThreadImpl.startNewBackgroundThread(MessageQueueThreadImpl.java:199)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.bridge.queue.MessageQueueThreadImpl.create(MessageQueueThreadImpl.java:146)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.bridge.queue.ReactQueueConfigurationImpl.create(ReactQueueConfigurationImpl.java:87)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.bridge.CatalystInstanceImpl.<init>(CatalystInstanceImpl.java:105)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.bridge.CatalystInstanceImpl.<init>(CatalystInstanceImpl.java:39)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.bridge.CatalystInstanceImpl$Builder.build(CatalystInstanceImpl.java:569)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.ReactInstanceManager.createReactContext(ReactInstanceManager.java:1015)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.ReactInstanceManager.access$600(ReactInstanceManager.java:107)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.ReactInstanceManager$4.run(ReactInstanceManager.java:832)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at java.lang.Thread.run(Thread.java:764)
11-27 08:18:53.366 19540 19614 E AndroidRuntime: Caused by: java.lang.InterruptedException
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1326)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:232)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.common.futures.SimpleSettableFuture.get(SimpleSettableFuture.java:66)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    at com.facebook.react.common.futures.SimpleSettableFuture.getOrThrow(SimpleSettableFuture.java:100)
11-27 08:18:53.366 19540 19614 E AndroidRuntime:    ... 10 more
jose920405 commented 6 years ago

In IOS too