republik / app

The app: a thin wrapper for persistent auth, app store presence, notification, background audio and convenience.
https://www.republik.ch/app
Other
11 stars 2 forks source link

trackplayer crash #248

Closed ovbm closed 3 years ago

ovbm commented 3 years ago

https://play.google.com/console/u/1/developers/5027121202214205556/app/4975641939341220182/vitals/crashes/7c483523/details?installedFrom=PLAY_STORE&days=30&versionCode=135

https://github.com/react-native-kit/react-native-track-player/issues/391 https://github.com/react-native-kit/react-native-track-player/pull/903

probable fix: stopWithApp: true

marioot commented 3 years ago

I have stopWithApp: true, and this crash still happens regularly...


com.guichaguri.trackplayer.module.MusicModule.waitForConnection

java.lang.IllegalStateException: 
  at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1617)
  at android.app.ContextImpl.startService (ContextImpl.java:1572)
  at android.content.ContextWrapper.startService (ContextWrapper.java:669)
  at android.content.ContextWrapper.startService (ContextWrapper.java:669)
  at com.guichaguri.trackplayer.module.MusicModule.waitForConnection (MusicModule.java:106)
  at com.guichaguri.trackplayer.module.MusicModule.stop (MusicModule.java:334)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:158)
  at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:29)
  at android.os.Looper.loop (Looper.java:214)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:232)
  at java.lang.Thread.run (Thread.java:919)```