NeuroTechX/eeg-101

BCI slides crash the app on tablets

hubertjb opened this issue · 3 comments

From testing on a few different tablets (Samsung Galaxy Tab II, ASUS Zen Pad), the BCI slides crash the app when trying to run the app.

I just took a look at the code and the developer crash reports and nothing jumps out to me as being an easy fix. I'll need to borrow the tablet to address this

I noticed some weird errors and crashing being thrown due to Victory Native updates. We should try the tablet with the newest release version and see if it still crashes

I think it's this error, related to react-native-torch

java.lang.IllegalArgumentException: 
 
  at android.hardware.camera2.CameraManager.throwAsPublicException (CameraManager.java:626)
 
  at android.hardware.camera2.CameraManager$CameraManagerGlobal.setTorchMode (CameraManager.java:883)
 
  at android.hardware.camera2.CameraManager.setTorchMode (CameraManager.java:495)
 
  at com.cubicphuse.RCTTorch.RCTTorchModule.switchState (RCTTorchModule.java:41)
 
  at java.lang.reflect.Method.invoke (Native Method)
 
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:374)
 
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:162)
 
  at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
 
  at android.os.Handler.handleCallback (Handler.java:751)
 
  at android.os.Handler.dispatchMessage (Handler.java:95)
 
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:31)
 
  at android.os.Looper.loop (Looper.java:154)
 
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run (MessageQueueThreadImpl.java:194)
 
  at java.lang.Thread.run (Thread.java:762)
Caused by: android.os.ServiceSpecificException: 
 
  at android.os.Parcel.readException (Parcel.java:1707)
 
  at android.os.Parcel.readException (Parcel.java:1646)
 
  at android.hardware.ICameraService$Stub$Proxy.setTorchMode (ICameraService.java:497)
 
  at android.hardware.camera2.CameraManager$CameraManagerGlobal.setTorchMode (CameraManager.java:881)