flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

[BUG]:Fatal Exception: java.lang.RuntimeException on FlautoBackgroundAudioService.java line 20

Open vernalclareai opened this issue 3 years ago • 3 comments

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.


vernalclareai avatar Jun 25 '21 09:06 vernalclareai

image

vernalclareai avatar Jun 25 '21 10:06 vernalclareai

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 ...

Larpoux avatar Jun 25 '21 13:06 Larpoux

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.

github-actions[bot] avatar Dec 15 '23 01:12 github-actions[bot]