<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JustinRhinesmith.com &#187; Debugging</title>
	<atom:link href="http://www.justinrhinesmith.com/blog/category/debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justinrhinesmith.com/blog</link>
	<description>Adventures in Programming</description>
	<lastBuildDate>Mon, 04 Jan 2010 01:00:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Streaming Video to Xbox Requires Three Tries?</title>
		<link>http://www.justinrhinesmith.com/blog/2009/02/03/streaming-video-to-xbox-requires-three-tries/</link>
		<comments>http://www.justinrhinesmith.com/blog/2009/02/03/streaming-video-to-xbox-requires-three-tries/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 02:26:35 +0000</pubDate>
		<dc:creator>Justin</dc:creator>
				<category><![CDATA[Debugging]]></category>

		<guid isPermaLink="false">http://www.justinrhinesmith.com/blog/2009/02/03/streaming-video-to-xbox-requires-three-tries/</guid>
		<description><![CDATA[So, I&#8217;ve had this problem for a while now that whenever I attempt to stream video through my computer to the Xbox it takes three attempts before I can finally start the video.&#160; Basically, I fire up the Xbox, go to Videos, navigate to my TV folder, and then wait 30 seconds for whatever is [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;ve had this problem for a while now that whenever I attempt to stream video through my computer to the Xbox it takes three attempts before I can finally start the video.&#160; Basically, I fire up the Xbox, go to <em>Videos</em>, navigate to my <em>TV</em> folder, and then wait 30 seconds for whatever is throwing an error to time out before I get the <em>No videos</em> screen.&#160; After about 60 seconds, I&#8217;m finally able to get back in to the Videos/TV folder and navigate through the TV subfolders.&#160; I click on one and 30 seconds later I&#8217;m again staring at <em>No videos</em>.&#160; One more try, and I&#8217;m finally watching some <em>Flight of the Conchords</em> (seriously, if you&#8217;re not already watching this show, buy the first season on DVD!).&#160; To be fair, it&#8217;s a minor annoyance.&#160; I am eventually able to watch my videos, but every new day requires another three attempts so definitely not ideal.&#160; Aha!&#160; A challenge!</p>
<p>So, where to begin?&#160; Well, let&#8217;s start with <strong>Event Viewer</strong>.&#160; I fire up the run command and type in <strong>eventvwr</strong>.&#160; I scroll through the <strong>Application</strong> view, but nothing really jumps out.&#160; When I switch to <strong>System</strong>, however, I find my answer:</p>
<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="459" alt="image" src="http://www.justinrhinesmith.com/blog/wp-content/uploads/2009/02/image.png" width="408" border="0" /> </p>
<p> <br style="clear: both" />
<p>Namely: <strong>The Windows Media Player Network Sharing Service service terminated unexpectedly.&#160; It has done this 1 time(s).&#160; The following corrective action will be taken in 30000 milliseconds: Restart the service.</strong></p>
<p>My first instinct is to open up Google and find other people with similar problems.&#160; Unfortunately, I wasn&#8217;t able to find much information.&#160; A few people recommended clearing out the <em>Cache</em> folder under the Windows <em>DRM</em> folder, but all this did was to stop sharing from working altogether and to render my Zune subscription useless.&#160; <strong>Don&#8217;t try this!</strong></p>
<p>Thankfully I backed up my <em>Cache</em> folder and restoring it seemed to put everything back where it was before &#8212; complete with the <em>three tries and I&#8217;ll</em> play videos on my Xbox.</p>
<p>What&#8217;s next?&#160; Well, I&#8217;ve always been dying for an excuse to fire up and play with <a href="http://www.microsoft.com/whdc/DevTools/Debugging/default.mspx">WinDbg</a>, so I start looking for how to debug Windows Services and stumble across this <a href="http://support.microsoft.com/kb/824344/en-us">great article</a>.&#160; A few minutes of reading, and I&#8217;ve managed to attach WinDbg to the Windows Media Player Network Sharing Service.&#160; I turn on the Command window, turn on the Xbox, navigate to Videos/TV and bam!, I see this:</p>
<blockquote><p><font face="Consolas">TffdshowBase::Constructor       <br />(f94.f4c): Illegal instruction &#8211; code c000001d (first chance)        <br />TffdshowDecVideo::Constructor        <br />TffdshowDecVideoOutputPin::Constructor        <br />TffdshowDecVideo::Destructor        <br />TffdshowDecVideoOutputPin::Destructor        <br />ModLoad: 04da0000 0566a000&#160;&#160; C:\WINDOWS\system32\xvid.ax        <br />ModLoad: 05670000 05ed9000&#160;&#160; C:\WINDOWS\system32\xvid.dll        <br />(f94.ab4): Access violation &#8211; code c0000005 (first chance)        <br />First chance exceptions are reported before any exception handling.        <br />This exception may be expected and handled.        <br />eax=3d454ab4 ebx=00000000 ecx=0417fe60 edx=0417fe50 esi=0417fe60 edi=68578b48        <br />eip=0568d554 esp=0417fd70 ebp=028f1f20 iopl=0&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; nv up ei pl nz na pe cy        <br />cs=001b&#160; ss=0023&#160; ds=0023&#160; es=0023&#160; fs=003b&#160; gs=0000&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; efl=00010207        <br />*** WARNING: Unable to verify checksum for C:\WINDOWS\system32\xvid.dll        <br />*** ERROR: Symbol file could not be found.&#160; Defaulted to export symbols for C:\WINDOWS\system32\xvid.dll &#8211;         <br />xvid_5670000!xvid_encore+0&#215;16034:        <br />0568d554 8b0cbdd8d76a05&#160; mov&#160;&#160;&#160;&#160; ecx,dword ptr xvid_5670000!encore+0&#215;46e8 (056ad7d8)[edi*4] ds:0023:a6c904f8=????????        <br />*** WARNING: Unable to verify checksum for C:\WINDOWS\system32\xvid.ax        <br />*** ERROR: Symbol file could not be found.&#160; Defaulted to export symbols for C:\WINDOWS\system32\xvid.ax -</font> </p>
</blockquote>
<p>Now, I&#8217;ll be honest, I don&#8217;t understand what half of that means, but these two lines stand out like a sore thumb:</p>
<blockquote><p><font face="Consolas"><strong>ModLoad: 04da0000 0566a000&#160;&#160; C:\WINDOWS\system32\xvid.ax       <br />ModLoad: 05670000 05ed9000&#160;&#160; C:\WINDOWS\system32\xvid.dll</strong></font></p></blockquote>
<p>My first thought is that my Xvid driver is simply out of date, has a bug, or is just tired and needs a refresh.&#160; Either way, I navigate to the Xvid site, download and install the latest codec, restart the laptop and the Xbox and Videos/TV/Flight of the Conchords works on the first try!&#160; Sweet!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justinrhinesmith.com/blog/2009/02/03/streaming-video-to-xbox-requires-three-tries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
