<?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>Fooling Around &#187; crash</title>
	<atom:link href="http://alax.info/blog/tag/crash/feed" rel="self" type="application/rss+xml" />
	<link>http://alax.info/blog</link>
	<description>// Software Production Line</description>
	<lastBuildDate>Fri, 03 Feb 2012 22:49:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Another third party DirectShow filter that may break your very own application</title>
		<link>http://alax.info/blog/1015</link>
		<comments>http://alax.info/blog/1015#comments</comments>
		<pubDate>Wed, 05 Aug 2009 16:34:49 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Seriously]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[DirectShow]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[merit]]></category>
		<category><![CDATA[violation]]></category>

		<guid isPermaLink="false">http://alax.info/blog/?p=1015</guid>
		<description><![CDATA[<a href="http://alax.info/blog/1015" title="Another third party DirectShow filter that may break your very own application"></a>One of the DirectShow&#8217;s most important features is Intelligent Connect, which allows Filter Graph Manager to build graphs out of independent filters trying to connect them together including options to fall back to originally non-preferred alternatives and so on. It &#8230;<p class="read-more"><a href="http://alax.info/blog/1015">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://alax.info/blog/1015" title="Another third party DirectShow filter that may break your very own application"></a><p>One of the DirectShow&#8217;s most important features is <a href="http://msdn.microsoft.com/en-us/library/dd390342%28VS.85%29.aspx">Intelligent Connect,</a> which allows <a href="http://msdn.microsoft.com/en-us/library/dd375786%28VS.85%29.aspx">Filter Graph Manager</a> to build graphs out of independent filters trying to connect them together including options to fall back to originally non-preferred alternatives and so on.</p>
<p>It is however important that filters are properly registered with the <a href="http://msdn.microsoft.com/en-us/library/dd375788%28VS.85%29.aspx">Filter Mapper</a>. For the developers to do so, there are special <a href="http://msdn.microsoft.com/en-us/library/dd388793%28VS.85%29.aspx">guidelines for registering filters</a>. Unfortunately it is not always the case that developers carefully take them into consideration, and so we have compatibility issues. In particular a faulty filter may break an application it is not intended to be used in in first place. Some examples were already mentioned: <a href="http://alax.info/blog/967">Ahead Nero NeResize Filter</a>, <a href="http://alax.info/blog/719">FFDShow Video Decoder Filter</a>, <a href="http://alax.info/blog/684">PICVideo MJPEG Decompressor Filter</a>.</p>
<p>As we are moving on, the brilliant collection is expanding. New entry on the list:</p>
<p><a href="http://www.mainconcept.com/site/">MainConcept</a> Color Space Converter Filter</p>
<p>Friendly Name: MainConcept Color Space Converter<br />
File Name: mccsc.ax<br />
File Version: 1.0.103.60203 (note that other versions might be hopefully free from this problem)<br />
Merit: 0&#215;00600000 (MERIT_NORMAL)</p>
<p>Symptoms: registers itself under higher merit and takes over standard <a href="http://msdn.microsoft.com/en-us/library/dd387892%28VS.85%29.aspx">Color Space Converter Filter</a>. As such, might be used in various applications including those, where it is not supposed to appear. Does not fully implement functionality of the filter being replaced and can crash breaking expected operation of third party application.</p>
]]></content:encoded>
			<wfw:commentRss>http://alax.info/blog/1015/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ahead Nero&#8217;s NeResize DirectShow Filter</title>
		<link>http://alax.info/blog/967</link>
		<comments>http://alax.info/blog/967#comments</comments>
		<pubDate>Mon, 29 Jun 2009 22:34:26 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Seriously]]></category>
		<category><![CDATA[access violation]]></category>
		<category><![CDATA[ahead]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[crap]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[debugger]]></category>
		<category><![CDATA[DirectShow]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[NeResize]]></category>
		<category><![CDATA[nero]]></category>

		<guid isPermaLink="false">http://alax.info/blog/?p=967</guid>
		<description><![CDATA[<a href="http://alax.info/blog/967" title="Ahead Nero&#039;s NeResize DirectShow Filter"></a>Another example of a negligence with a cost of incompatibility and enormous amount of support time. Ahead Nero installs a number of DirectShow filters into $(Program Files)\Common Files\Ahead\DSFilter directory. One of the files is NeResize.ax and it hosts a Nero &#8230;<p class="read-more"><a href="http://alax.info/blog/967">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://alax.info/blog/967" title="Ahead Nero&#039;s NeResize DirectShow Filter"></a><p>Another example of a negligence with a cost of incompatibility and enormous amount of support time. Ahead Nero installs a number of DirectShow filters into <em>$(Program Files)\Common Files\Ahead\DSFilter</em> directory. One of the files is <em>NeResize.ax</em> and it hosts a <em>Nero Resize</em> filter. Let us take a closer look:</p>
<p>CLSID: <strong>{30002E0C-C574-481E-A5DE-90AE54A79E10}</strong> (note that Nero 8 ships the same buggy stuff with new CLSID of <strong>{3D0A27C9-B4D6-487B-AFE4-E3CABD4B81F9}</strong><em> &#8211; 11.05.2010</em>)<br />
Merit: <strong>0&#215;00400000</strong> (<a href="http://msdn.microsoft.com/en-us/library/dd388793(VS.85).aspx">MERIT_UNLIKELY</a>)<br />
Input Pin&#8217;s Media Type: major type GUID_NULL, subtype GUID_NULL<br />
Output Pin&#8217;s Media Type: major type GUID_NULL, subtype GUID_NULL</p>
<p>The filter is clearly a video filter:</p>
<p><img class="alignnone size-full wp-image-969" title="Ahead Nero Resize Filter's Property Page" src="http://alax.info/blog/wp-content/uploads/2009/06/29-image001.png" alt="Ahead Nero Resize Filter's Property Page" width="376" height="292" /></p>
<p>So the filter register itself under a merit that allows taking it during <a href="http://msdn.microsoft.com/en-us/library/dd390342(VS.85).aspx">Intelligent Connect</a>, it registers using media type wildcard which is clearly widely than the filter can affectively operate with and the most interesting part is: with certain video media types the filter crashes (memory access violation) during pin connection negotiation process. That is, inaccurate filter <span style="text-decoration: underline;">may be crashing third party software it has nothing to deal with at all</span>.</p>
<pre>*** Unhandled Exception
Process: 0x000001d4, Thread: 0x00000ce4, Date: 6/29/2009, Time: 11:20:56 AM, Application: C:\Program Files\...
Module: C:\..., Product Version: 1.7.1.1, File Version: 1.7.1.20014, File Time: 23.06.2009, 19:02
Code: 0xc0000005, Flags: 0x00000000, Address: 0x05fc6c65
Parameters: 0x00000001, 0x15be9030

** Call Stack
NeResize!05fc6c65 DllUnregisterServer +21909 @05fc0000
NeResize!05fc7888 DllUnregisterServer +25016 @05fc0000
NeResize!05fc7204 DllUnregisterServer +23348 @05fc0000</pre>
<p>Additionally to that the filter does not allow its insertion in debugging environment, and it seems even with Visual Studio running without a debugging session active. Which means that developer may be unaware of issues until incompatibility comes up at a later stage such as testing, or at production site.</p>
<p>It is not the first Nero filter which is bringing real problems. Basically any user who want to keep his system far from issues while still having Nero installed, needs to do find <em>$(Program Files)\Common Files\Ahead\DSFilter</em> directory and immediately rename it to some <em>~DSFilter</em> in order to invalidate all Nero filters registration.</p>
<p>A few quotes from <a href="http://msdn.microsoft.com/en-us/library/dd388793(VS.85).aspx">Guidelines for Registering Filters</a>:</p>
<p style="padding-left: 30px;">Avoid specifying MEDIATYPE_None, MEDIASUBTYPE_None, or GUID_NULL in the <a id="ctl00_MTContentSelector1_mainContentContainer_ctl04" onclick="javascript:Track('ctl00_MTContentSelector1_mainContentContainer_ctl00|ctl00_MTContentSelector1_mainContentContainer_ctl04',this);" href="http://msdn.microsoft.com/en-us/library/dd373438%28VS.85%29.aspx"><strong>AMOVIESETUP_MEDIATYPE</strong></a> information for a pin. <strong>IFilterMapper2</strong> treats these as wildcards, which can slow the graph-building process.</p>
<p>Nero Resize does specify and obviously slows the system down.</p>
<p style="padding-left: 30px;">Choose the lowest merit value possible. Here are some guidelines:<br />
&#8230;<br />
Special purpose filter; any filter that is created directly by the application: MERIT_DO_NOT_USE</p>
<p>Nero Resize uses higher value and thus affects proper applications.</p>
<p>Software developers will be safer to prevent from <a href="http://msdn.microsoft.com/en-us/library/dd373399(VS.85).aspx">DirectShow Filter Graph Manager</a> considering the buggy filter to be used during <a href="http://msdn.microsoft.com/en-us/library/dd390342(VS.85).aspx">Intelligent Connect</a> by implementing <a href="http://msdn.microsoft.com/en-us/library/dd389376(VS.85).aspx">IAMGraphBuilderCallback</a> interface.</p>
]]></content:encoded>
			<wfw:commentRss>http://alax.info/blog/967/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft Visual Studio has encountered an internal error.</title>
		<link>http://alax.info/blog/730</link>
		<comments>http://alax.info/blog/730#comments</comments>
		<pubDate>Thu, 04 Dec 2008 22:43:37 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Seriously]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[debugger]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://alax.info/blog/?p=730</guid>
		<description><![CDATA[<a href="http://alax.info/blog/730" title="Microsoft Visual Studio has encountered an internal error."></a>A picture for relaxation: It is probably a fresh bug there as it seems to be happening far more frequently with version 2008 (with ot without SP1) as compared to 2005. Luckily it has no effect to code being written, &#8230;<p class="read-more"><a href="http://alax.info/blog/730">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://alax.info/blog/730" title="Microsoft Visual Studio has encountered an internal error."></a><p>A picture for relaxation:</p>
<p><a href="http://alax.info/blog/wp-content/uploads/2008/12/04-image001.png"><img class="alignnone size-full wp-image-729" title="Visual Studio .NET Crash" src="http://alax.info/blog/wp-content/uploads/2008/12/04-image001.png" alt="" width="500" height="288" /></a></p>
<p>It is probably a fresh bug there as it seems to be happening far more frequently with version 2008 (with ot without SP1) as compared to 2005. Luckily it has no effect to code being written, the problem clearly relates to debugger. At some point there is a crash, though which the IDE perfectly survives but longer can start a new debugging session until IDE is entirely restarted.</p>
]]></content:encoded>
			<wfw:commentRss>http://alax.info/blog/730/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

