[Mono-bugs] [Bug 578428] New: Monotouch runtime crashes when using linq group by statement

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Feb 9 14:32:32 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=578428

http://bugzilla.novell.com/show_bug.cgi?id=578428#c0


           Summary: Monotouch runtime crashes when using linq group by
                    statement
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eduardoscoz at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


This bug only occurs when running in the iPhone. In the simulator everything
works properly. 

When executing the following query:

return (from e in Expenses orderby e.Date  descending group e by e.Date into
grouped  select grouped).ToList();

I believe its an issue with the "group e by"  part of the statement. It
definitely is not related to my Expense object, and likely not by the Date
either. I had the same error happen in a totally different aplication.


This error happens in the iPhone:

Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for
System.Collections.Generic.EqualityComparer`1 --->
System.Reflection.TargetInvocationException: Exception has been thrown by the
target of an invocation. ---> System.ExecutionEngineException: Attempting to
JIT compile method
'System.Collections.Generic.GenericEqualityComparer`1<System.DateTime>:.ctor
()' while running with --aot-only.
Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:  
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:  
--- End of inner exception stack trace ---
Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:  
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:  
at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:  
at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters)
[0x00000] in <filename unknown>:0 
Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:  
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic)
[0x00000] in <filename unknown>:0 
Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:  
at System.Activator.CreateInstance (System.Type type) [0x00000] in <filename
unknown>:0 
Tue Feb  9 13:19:11 unknown UIKitApplication:Expenses[0x8492][189] <Notice>:  
at System.Collections.Generic.EqualityComparer`1[System.DateTime]..cctor ()
[0x00000] in <filename unknown>:0

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list