XamarinMediaManager: Description cannot be null

πŸ› Bug Report

Description cannot be null In my Logs I can see such error

The object type cannot be specified "Mono.Debugger.Soft.PointerValue" to type "Mono.Debugger.Soft.PrimitiveValue".

and after that

  --- End of managed Java.Lang.IllegalArgumentException stack trace ---
java.lang.IllegalArgumentException: Description cannot be null
	at android.support.v4.media.session.MediaSessionCompat$QueueItem.<init>(MediaSessionCompat.java:1962)
	at android.support.v4.media.session.MediaSessionCompat$QueueItem.<init>(MediaSessionCompat.java:1954)
	at com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator.publishFloatingQueueWindow(TimelineQueueNavigator.java:226)
	at com.google.android.exoplayer2.ext.mediasession.TimelineQueueNavigator.onTimelineChanged(TimelineQueueNavigator.java:119)
	at com.google.android.exoplayer2.ext.mediasession.MediaSessionConnector$ComponentListener.onTimelineChanged(MediaSessionConnector.java:1122)
	at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.lambda$run$0$ExoPlayerImpl$PlaybackInfoUpdate(ExoPlayerImpl.java:804)
	at com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$PlaybackInfoUpdate$N_S5kRfhaRTAkH28P5luFgKnFjQ.invokeListener(lambda)
	at com.google.android.exoplayer2.BasePlayer$ListenerHolder.invoke(BasePlayer.java:182)
	at com.google.android.exoplayer2.ExoPlayerImpl.invokeAll(ExoPlayerImpl.java:845)
	at com.google.android.exoplayer2.ExoPlayerImpl.access$000(ExoPlayerImpl.java:43)
	at com.google.android.exoplayer2.ExoPlayerImpl$PlaybackInfoUpdate.run(ExoPlayerImpl.java:802)
	at com.google.android.exoplayer2.ExoPlayerImpl.notifyListeners(ExoPlayerImpl.java:736)
	at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(ExoPlayerImpl.java:710)
	at com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo(ExoPlayerImpl.java:652)
	at com.google.android.exoplayer2.ExoPlayerImpl.handleEvent(ExoPlayerImpl.java:595)
	at com.google.android.exoplayer2.ExoPlayerImpl$1.handleMessage(ExoPlayerImpl.java:127)
	at android.os.Handler.dispatchMessage(Handler.java:111)
	at android.os.Looper.loop(Looper.java:207)
	at android.app.ActivityThread.main(ActivityThread.java:5728)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:683)

but there are no tracks (MediaItems) without description

Expected behavior

should not crash application

Configuration

Version: 1.0.1

Platform:

  • πŸ“± iOS
  • [x ] πŸ€– Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • πŸ“Ί tvOS
  • [x ] πŸ’ Xamarin.Forms

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

Hello, the same problem with play(β€˜url’)

I am facing the same issue, but in my case, i don’t add songs to queue, but play them one by one calling play(β€œurl”), any idea how to fix for my case?

I hope this fix will be updated soon on nuget package. Thanks!

Yes using Stop() causing a weird exception in my implementation, so I have reverted those changes, waiting and hoping for the issue to be fixed soon.

I’m having the same issue with play(β€œurl”). Is there any workaround for this and/or will this ever be fixed?