1

Closed

ArgumentNullException with Grammatica assembly

description

I loaded the "grammatica-1.5.alpha2" assembly and tried to
get exceptions for the "PerCederberg.Grammatica.Runtime.Parser.Parse"
method. This error showed up.
 
Value cannot be null.
Parameter name: type
 
System.ArgumentNullException
 
at Spackle.Extensions.ObjectExtensions.CheckParameterForNull(Object this, String parameterName)
at ExceptionFinder.Analyzers.LeakedExceptionsMethodInstructionsAnalyzer.OnAnalyze()
at ExceptionFinder.Analyzers.LeakedExceptionsInstructionsAnalyzer.Analyze()
at ExceptionFinder.Analyzers.LeakedExceptionsMethodInstructionsAnalyzer.OnAnalyze()
at ExceptionFinder.Analyzers.LeakedExceptionsInstructionsAnalyzer.Analyze()
at ExceptionFinder.Analyzers.MethodExceptionAnalyzer.Analyze()
at ExceptionFinder.ExceptionFinderView.ShowLeakedExceptions(IMethodDeclaration methodItem)
at ExceptionFinder.ExceptionFinderPackage.ShowAnalysis()
at ExceptionFinder.ExceptionFinderPackage.OnExceptionFinderButtonClick(Object sender, EventArgs e)
at ᝸.ᜆ.ᜀ(EventArgs A_0)
at ᝸.ᜆ.ᜃ()
at ᝸.ᜅ.ᜀ.ᜂ(EventArgs A_0)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at ᝸.ᜁ.ᜊ(Message& A_0)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
.NET Reflector 5.1.5.0
.NET Framework 2.0.50727.3074
Microsoft Windows NT 6.0.6001 Service Pack 1
Culture: en-US (en-US)
 
 
[AddInManager]
"C:\Users\Julius\Applications\RedGate\Reflector\Reflector.FileDisassembler.dll"
"C:\Users\Julius\Applications\RedGate\Reflector\Reflector.Graph.dll"
"C:\Users\Julius\Applications\RedGate\Reflector\Reflector.ReflectionEmitLanguage.dll"
"C:\Users\Julius\Applications\RedGate\Reflector\ReflectorDouble.dll"
"C:\Users\Julius\Applications\RedGate\Reflector\AssemblyCollection.Order.dll"
"C:\Users\Julius\Applications\RedGate\Reflector\EnumAddin.dll"
 
[AssemblyCache]
"%SystemRoot%\Microsoft.net"
"%ProgramFiles%\Reference Assemblies"
"%ProgramFiles%\Microsoft.net"
"%ProgramFiles%\Microsoft Silverlight"
 
[AssemblyManager]
"%SystemRoot%\Microsoft.net\Framework\v2.0.50727\mscorlib.dll"
"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\PresentationCore.dll"
"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\PresentationFramework.dll"
"%SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.dll"
"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll"
"%SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.Data.dll"
"%SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.Drawing.dll"
"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\System.ServiceModel.dll"
"%SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.Web.dll"
"%SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.Windows.Forms.dll"
"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\System.Workflow.Activities.dll"
"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\System.Workflow.ComponentModel.dll"
"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\System.Workflow.Runtime.dll"
"%SystemRoot%\Microsoft.net\Framework\v2.0.50727\System.Xml.dll"
"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll"
"C:\Assemblies\MS.NET Sources\Grammatica 1.5\lib\grammatica-1.5.alpha2.dll"
 
[LanguageManager]
ActiveLanguage="C#"
 
[WindowManager]
X="671"
Y="171"
Width="480"
Height="600"
Pane="1373"
Maximized="true"

file attachments

Closed May 12, 2009 at 10:10 PM by jasonrbock
I was not able to reproduce the bug. I was able to show that it could throw the following exceptions:

ParserCreationException
ArgumentOutOfRangeException
ArgumentNullException
IndexOutOfBoundsException
ParserLogException

It seems like you have the most recent version of Reflector (according to the error log) ... what version of ExceptionFinder.dll are you using? I thought I had pushed my latest version (1.1.2.0) a while ago ... but I didn't :(. It's now available and that's what I used to test this out, so try updating the add-in to 1.1.2.0 and see if that helps.

comments

jasonrbock wrote May 11, 2009 at 7:45 PM

Can you attach the assembly (and any referenced assemblies) so that I can try to reproduce this issue?

thefellow3j wrote May 11, 2009 at 8:40 PM

Here's the assembly.

Incidentally, the RTM version of the Grammatica 1.5 .NET assembly also exhibits this same problem.

wrote May 11, 2009 at 8:40 PM

wrote May 12, 2009 at 10:10 PM

wrote Feb 13, 2013 at 12:03 AM

wrote May 14, 2013 at 8:07 PM