How to get SmoothStreamingMediaElement Traces

Topics: Windows Phone 8
Jul 19, 2013 at 3:26 PM
Hi,

I'm looking for a way to get the traces from the SmoothStreamingMediaElement.

My app is crashing because the Microsoft.Web.Media.SmoothStreaming library is raising an OutOfMemoryException in the object ba, in the b method (obfuscation ... yay ...).

It seems that it fails trying to build an H264 frame.
In details it tries to read the first int32 within a MediaSample stream that gives him the full size of the sample and then make a call to BinaryReader.ReadBytes(size). Unfortunately, size can sometimes be negative of too large, causing either an InvalidOperationexception or OutOfMemoryException ...

I guess something s going wrong somewhere in the smoothstreaming chunks but as long as we cannot get traces from wp8 devices, i'm hoping that SSME traces will be helpful.

thanks.
Jul 19, 2013 at 3:39 PM
here is the stack of an outOfMemoryException crash :

TestApp, Version=3.3.9.1, Culture=neutral, PublicKeyToken=null
130719-143634.428 ERR TestApp.App Unhandled exception (stack trace follows): OutOfMemoryException (Exception of type 'System.OutOfMemoryException' was thrown.)!
130719-143634.443 ERR TestApp.App at System.IO.BinaryReader.ReadBytes(Int32 count)
130719-143634.443 ERR TestApp.App at Microsoft.Web.Media.SmoothStreaming.ba.b(TrackInfo A_0, StreamInfo A_1, az A_2, MediaStreamSample A_3)
130719-143634.443 ERR TestApp.App at Microsoft.Web.Media.SmoothStreaming.z.cm(MediaStreamType A_0)
130719-143634.443 ERR TestApp.App at Microsoft.Web.Media.SmoothStreaming.z.bg()
130719-143634.444 ERR TestApp.App at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
130719-143634.444 ERR TestApp.App at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
130719-143634.444 ERR TestApp.App at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
130719-143634.444 ERR TestApp.App at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
130719-143634.444 ERR TestApp.App at System.Threading.ThreadHelper.ThreadStart()