Stream does not work anymore (c59d34ac804f)

Oct 24, 2014 at 10:18 AM

i have problems with my live stream. The Stream does not work anymore. Tested with SamplePlayer.WP81

Here the Link for testing

After buffering the playing stops and an exception was thrown at mediaStreamFacade.RequestStop(); in the Close Method of the StreamingMediaPlugin class

Here some Debug-Output (with some german words):
Eine Ausnahme = An Exception
Create PES Video stream (AVC video stream conforming to one or more profiles defined in Annex A of ITU-T Rec. H.264 | ISO/IEC 14496-10 or AVC video sub-bitstream as defined in 2.1.78) with PID 256
Create PES Audio stream (ISO/IEC 11172-3 Audio) with PID 257
H264Configurator.ComputeFrameRate() 25/1 -> 25.0000 fps
Configuration H.264 "Baseline" profile, level 3 704x396
Configuration MP3 Frame: MPEG Version 1 (ISO/IEC 11172-3), Layer III sample 44.1kHz bitrate 96kHz channel mode 1
TsTimestamp.ProcessPackets() syncing pts 00:00:01.4000000 dts 10675199.02:48:05.4775807 target 00:00:00 => offset 00:00:01.4000000
BufferingManager.UpdateBuffering: 17.76% duration 00:00:00.4440792 size 41709 starting True memory 1.64 MiB
WinRtMediaStreamConfigurator.CreateAudioDescriptor() MP3 sample rate 44100 channels 2 bitrate 96000
MediaStreamFacadeBase.MediaManagerOnStateChange() to Playing: 
BufferingManager.UpdateBuffering: 45.98% duration 00:00:01.1493903 size 62852 starting True memory 1.70 MiB
WinRtMediaStreamConfigurator.MediaStreamSourceOnStarting() deferring
BufferingManager.UpdateBuffering: 64.78% duration 00:00:01.6195903 size 114511 starting True memory 1.78 MiB
BufferingManager.UpdateBuffering: 83.59% duration 00:00:02.0897903 size 164811 starting True memory 1.85 MiB
BufferingManager.UpdateBuffering done buffering: duration 00:00:02.7600000 size 208500 starting True memory 1.90 MiB
  Video count 70 size 174645 newest 00:00:02.7850556 oldest 00:00:00.0250556
  Audio count 108 size 33855 newest 00:00:02.7951014 oldest 00:00:00
WinRtMediaStreamConfigurator.CompleteOnStarting() pts 00:00:00
WinRtMediaStreamConfigurator.FailOnError() unknown sender
WinRtMediaStreamConfigurator.MediaStreamSourceOnClosed() reason: AppReportedError
StreamingMediaPlugin MediaFailed
MediaStreamFacadeBase.CloseMediaAsync() calling mediaManager.CloseAsync()
TsMediaManager.CloseAsync() calling readerManager.StopAsync()
TsMediaManager.CloseAsync() calling _mediaStreamSource.CloseAsync()
MediaStreamFacadeBase.MediaManagerOnStateChange() to Closing: 
StreamingMediaPlugin MediaFailed
Eine Ausnahme (erste Chance) des Typs "System.Threading.Tasks.TaskCanceledException" ist in aufgetreten.
"SamplePlayer.WP81.exe" (CoreCLR: .): "C:\windows\system32\en-US\System.debug.resources.DLL" geladen. Das Modul wurde ohne Symbole erstellt.
---- Assert Short Message ----
ObjectPool.Clear(): allocations 191 == deallocations 13 && _pool.Count 1 == _objectsCreated 179
---- Assert Long Message ----

    at ObjectPool`1.Clear()  
    at ObjectPool`1.Dispose()  
    at TsPesPacketPool.Dispose()  
    at Disposer.Dispose(Boolean disposing)  
    at Disposable.Dispose()  
    at LifetimeScope.Dispose(Boolean disposing)  
    at Disposable.Dispose()  
    at Container.Dispose(Boolean disposing)  
    at Disposable.Dispose()  
    at BuilderBase.Dispose(Boolean disposing)  
    at BuilderBase.Dispose()  
    at DisposeExtensions.DisposeSafe(IDisposable disposable)  
    at MediaStreamFacadeBase`1.Dispose(Boolean disposing)  
    at MediaStreamFacadeBase`1.Dispose()  
    at DisposeExtensions.DisposeSafe(IDisposable disposable)  
    at <>c__DisplayClass1.<DisposeAsync>b__0()  
    at Task.InnerInvoke()  
    at Task.Execute()  
    at Task.ExecutionContextCallback(Object obj)  
    at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
    at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)  
    at Task.ExecuteWithThreadLocal(Task& currentTaskSlot)  
    at Task.ExecuteEntry(Boolean bPreventDoubleExecution)  
    at Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()  
    at ThreadPoolWorkQueue.Dispatch()  
    at _ThreadPoolWaitCallback.PerformWaitCallback()  

Eine Ausnahme (erste Chance) des Typs "System.Threading.Tasks.TaskCanceledException" ist in aufgetreten.
Eine Ausnahme (erste Chance) des Typs "System.NullReferenceException" ist in SM.Media.MediaPlayer.WP81.DLL aufgetreten.
Eine Ausnahme (erste Chance) des Typs "System.Threading.Tasks.TaskCanceledException" ist in SM.Media.DLL aufgetreten.
Oct 24, 2014 at 12:22 PM
Could you try with what I just checked in (bcbb069207bc)? Some of the changes were related to cancellation exceptions with StreamingMediaPlugin. It seems to be playing with the SamplePlayer.WP81 that I have here.

Note that if you are changing streams, then you need to "player.Source = null;" before setting .Source to the url you want. See here for more on that workaround.
Oct 24, 2014 at 12:38 PM
With bcbb069207bc stream works fine.

Oct 24, 2014 at 1:19 PM
Good to hear that it works for you.. Thanks for letting me know.

I did see the failed ObjectPool assert in your log. It should be safe for you to ignore it (unless you have some other reason to think you are having problems with memory leaks).