Hello Tom,

This affects a few* projects when building for devices only (simulator
builds are fine). MonoTouch 4.2 ('beta' now,but should be moved to
'stable' soon) already has the fix for this. More details in:
http://bugzilla.xamarin.com/show_bug.cgi?id=604

Regards,
Sebastien

* no one could provide me with a test case but I'm 99% confident that
this is fixed. If you can attach a test case to the bug report I'll be
able to confirm this (100%).

On Tue, Sep 13, 2011 at 8:52 AM, tomf84 <m...@tomfanning.eu> wrote:
> Following on from this morning's upgrade to MT 4.0.7, I am now finding mtouch
> is crashing on code which worked fine yesterday, when compiling in Release
> mode only.
>
> Error 1: mtouch failed with the following message:
>
> Unhandled Exception: System.NullReferenceException: Object reference not set
> to an instance of an object
>  at MonoTouch.Registrar.TypeSystemDescriptor.MethodMatch
> (Mono.Cecil.MethodDefinition candidate, Mono.Cecil.MethodDefinition method)
> [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.PropertyMatch
> (Mono.Cecil.PropertyDefinition candidate, Mono.Cecil.PropertyDefinition
> property) [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.TryMatchProperty
> (Mono.Cecil.TypeDefinition type, Mono.Cecil.PropertyDefinition property)
> [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.GetBasePropertyInTypeHierarchy
> (Mono.Cecil.PropertyDefinition property) [0x00000] in <filename unknown>:0
>  at
> MonoTouch.Registrar.TypeSystemDescriptor+<CollectCandidateProperties>c__Iterator0.MoveNext
> () [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessMethods
> (Mono.Cecil.TypeDefinition type, MonoTouch.Registrar.Class class) [0x00000]
> in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessType
> (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessAssembly
> (Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.Process (IEnumerable`1
> assemblies) [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.Describe (IEnumerable`1
> assemblies) [0x00000] in <filename unknown>:0
>  at Registrar.Generate (System.Collections.Generic.List`1 list,
> MonoTouch.Tuner.MonoTouchResolver resolver) [0x00000] in <filename
> unknown>:0
>  at MTouch.RunRegistrar (System.Collections.Generic.List`1 assemblies,
> System.String assemblies_path, System.String output_dir, System.String&
> output_file) [0x00000] in <filename unknown>:0
>  at MTouch.CompileToNative (System.String user_gcc_flags,
> System.Collections.Generic.List`1 assemblies) [0x00000] in <filename
> unknown>:0
>  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object
> reference not set to an instance of an object
>  at MonoTouch.Registrar.TypeSystemDescriptor.MethodMatch
> (Mono.Cecil.MethodDefinition candidate, Mono.Cecil.MethodDefinition method)
> [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.PropertyMatch
> (Mono.Cecil.PropertyDefinition candidate, Mono.Cecil.PropertyDefinition
> property) [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.TryMatchProperty
> (Mono.Cecil.TypeDefinition type, Mono.Cecil.PropertyDefinition property)
> [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.GetBasePropertyInTypeHierarchy
> (Mono.Cecil.PropertyDefinition property) [0x00000] in <filename unknown>:0
>  at
> MonoTouch.Registrar.TypeSystemDescriptor+<CollectCandidateProperties>c__Iterator0.MoveNext
> () [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessMethods
> (Mono.Cecil.TypeDefinition type, MonoTouch.Registrar.Class class) [0x00000]
> in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessType
> (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessAssembly
> (Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.Process (IEnumerable`1
> assemblies) [0x00000] in <filename unknown>:0
>  at MonoTouch.Registrar.TypeSystemDescriptor.Describe (IEnumerable`1
> assemblies) [0x00000] in <filename unknown>:0
>  at Registrar.Generate (System.Collections.Generic.List`1 list,
> MonoTouch.Tuner.MonoTouchResolver resolver) [0x00000] in <filename
> unknown>:0
>  at MTouch.RunRegistrar (System.Collections.Generic.List`1 assemblies,
> System.String assemblies_path, System.String output_dir, System.String&
> output_file) [0x00000] in <filename unknown>:0
>  at MTouch.CompileToNative (System.String user_gcc_flags,
> System.Collections.Generic.List`1 assemblies) [0x00000] in <filename
> unknown>:0
>  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
>  (1) (MyAppNamespace.MyProjectName)
>
> Currently can't upload code to my testing device.
>
> Weirdly someone literally just posted this exact issue on StackOverflow but
> then immediately deleted their question. Here's the Google cache link.
> http://tinyurl.com/6ysmssq
>
> Thanks in advance...
> Tom
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/mtouch-crashing-under-MonoTouch-4-0-7-tp3809979p3809979.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to