flutter_sound
flutter_sound copied to clipboard
[BUG]:Fatal Exception: java.lang.RuntimeException on FlautoBackgroundAudioService.java line 20
Flutter Sound Version : 7.8.4
-
FULL or LITE flavor ? FULL
-
Important: Result of the command :
flutter pub deps | grep flutter_sound
Severity
-
Crash ? Yes
-
Result is not what expected ? Yes
-
Cannot build my App ? No
-
Minor issue ? Trending stability issues
Platforms you faced the error
Android
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Fatal Exception: java.lang.RuntimeException
Unable to create service com.dooboolab.TauEngine.FlautoBackgroundAudioService: java.lang.NullPointerException: Attempt to invoke interface method 'android.media.session.ISessionController android.media.session.ISession.getController()' on a null object reference
android.app.ActivityThread.handleCreateService (ActivityThread.java:4589)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)
Caused by java.lang.NullPointerException
Attempt to invoke interface method 'android.media.session.ISessionController android.media.session.ISession.getController()' on a null object reference
android.media.session.MediaSession. (MediaSession.java:199)
android.support.v4.media.session.MediaSessionCompat. (MediaSessionCompat.java:6)
com.dooboolab.TauEngine.FlautoBackgroundAudioService.b (FlautoBackgroundAudioService.java:20)
com.dooboolab.TauEngine.FlautoBackgroundAudioService.onCreate (FlautoBackgroundAudioService.java:6)
android.app.ActivityThread.handleCreateService (ActivityThread.java:4577)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)
Logs!!!!
I could not record the Log. Because this issue is coming from my Production Android app.
I do not see :
@Override
public void onCreate()
{
super.onCreate();
// This service has been created, then initialize the media player and all the
// stuff
// related to it.
initMediaPlayer();
initMediaSession();
// Do not initialize the noisy receiver if we should not include audio player
// features
// if(includeAudioPlayerFeatures) {
initNoisyReceiver();
// }
}
Probably this
is incorrect.
But this is a callback called by Android...
If someone else have any idea ...
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.