[Mono-bugs] [Bug 540355] New: Unhandled Exception -> Parsing IList<T> with Linq

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 18 13:18:21 EDT 2009


           Summary: Unhandled Exception ->  Parsing IList<T> with Linq
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jepsen at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Beta-Customer

Description of Problem:

When using Linq to parse an IList<MyData> a fatal exception occurs on the
iPhone.  Code works fine in simulator.

Code example:

var groupData =
                    from p in MyData
                    where p.Type.Contains(filter)
                    group p by p.LastName.First() into g
                    select new { Group = g.Key, GroupItems = from gi in g
                    select new {
                            LastName = gi.LastName,
                            FirstName = gi.FirstName,
                            ID = gi.ID,
                           Type = gi.Type

Steps to reproduce the problem:
1. Compile example above
2. Run in simulator
3. Run on iPhone
4. Note difference

Actual Results:

Application crash.

Expected Results:

No crash.

How often does this happen? 


Additional Information:


Fri Sep 18 00:58:18 unknown UIKitApplication:com.yourcompany.MyApp[0x80a8][841]
<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<char>:.ctor ()' while
running with --aot-only.
Fri Sep 18 00:58:18 unknown UIKitApplication:com.yourcompany.MyApp[0x80a8][841]
<Notice>:   at System.Reflection.MonoCMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[]
parameters, System.Globalization.CultureInfo culture) [0x00000]

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