Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Crashes after close playing app in foreground mode #54

Open
spy-reality opened this issue Jun 3, 2021 · 0 comments
Open

Crashes after close playing app in foreground mode #54

spy-reality opened this issue Jun 3, 2021 · 0 comments

Comments

@spy-reality
Copy link

spy-reality commented Jun 3, 2021

`Fatal Exception: java.lang.RuntimeException: Unable to start service danielr2001.audioplayer.audioplayers.ForegroundAudioPlayer@67be8e6 with Intent { act=com.daniel.exoPlayer.action.pause flg=0x10000000 cmp=com.example.app/danielr2001.audioplayer.audioplayers.ForegroundAudioPlayer bnds=[564,1137][708,1281] }: java.lang.NullPointerException: Attempt to invoke virtual method 'd.a.c.a d.a.e.a.d()' on a null object reference
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3698)
       at android.app.ActivityThread.access$1600(ActivityThread.java:205)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1687)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:280)
       at android.app.ActivityThread.main(ActivityThread.java:6706)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)`

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'd.a.c.a d.a.e.a.d()' on a null object reference
       at danielr2001.audioplayer.audioplayers.ForegroundAudioPlayer.onStartCommand(ForegroundAudioPlayer.java:151)
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3679)
       at android.app.ActivityThread.access$1600(ActivityThread.java:205)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1687)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:280)
       at android.app.ActivityThread.main(ActivityThread.java:6706)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

If close playing app in foreground mode, the app crashed and show a message "Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: danielr2001/audioplayer. Response ID: 0"

And when start again app not play.
The message "Can't start more than 1 service at a time, to stop service call release method"

@spy-reality spy-reality changed the title Crashes Crashes after close playing app in foreground mode Jun 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant