[Mono-bugs] [Bug 572885] New: Attempting to JIT compile method System.Linq.jvm.Interpreter:GetDelegate

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 21 23:46:27 EST 2010


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

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


           Summary: Attempting to JIT compile method
                    System.Linq.jvm.Interpreter:GetDelegate
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: fak at kruegersystems.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=338181)
 --> (http://bugzilla.novell.com/attachment.cgi?id=338181)
Project file demoing bug

Description of Problem:

This query on IQueryable<Trip> activeTrips:

            var startTimeSort =    activeTrips
                    .Where(t => t.TimeAt(start) >= activeStartTime)
                    .ToList();
            startTimeSort.Sort((a,b) =>
a.TimeAt(start).CompareTo(b.TimeAt(start)));

fails with the below stack trace. Attached the project.

/Developer/MonoTouch/usr/bin/mtouch --version
mtouch 1.4.3.4718


Steps to reproduce the problem:
1. Compile in Release mode for iPhone.
2. Run and select some stops.


Actual Results:

Loaded assembly:
/private/var/mobile/Applications/48DA396F-D0DB-45F7-AB89-2B63B8306D93/Ferry.app/monotouch.dll
Loaded assembly:
/private/var/mobile/Applications/48DA396F-D0DB-45F7-AB89-2B63B8306D93/Ferry.app/System.dll
Loaded assembly:
/private/var/mobile/Applications/48DA396F-D0DB-45F7-AB89-2B63B8306D93/Ferry.app/System.Core.dll
Loaded assembly:
/private/var/mobile/Applications/48DA396F-D0DB-45F7-AB89-2B63B8306D93/Ferry.app/Transit.dll
Loaded assembly:
/private/var/mobile/Applications/48DA396F-D0DB-45F7-AB89-2B63B8306D93/Ferry.app/Ferry.exe
Thread started: 

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. --->
System.ExecutionEngineException: Attempting to JIT compile method
'System.Linq.jvm.Interpreter:GetDelegate<Transit.Trip, bool> ()' while running
with --aot-only.

  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
parameters) [0x00000] in <filename unknown>:0 
  at System.Linq.jvm.Interpreter.CreateDelegate () [0x00000] in <filename
unknown>:0 
  at System.Linq.Expressions.LambdaExpression.Compile () [0x00000] in <filename
unknown>:0 
  at System.Linq.jvm.ExpressionInterpreter.VisitLambda
(System.Linq.Expressions.LambdaExpression lambda) [0x00000] in <filename
unknown>:0 
  at System.Linq.Expressions.ExpressionVisitor.Visit
(System.Linq.Expressions.Expression expression) [0x00000] in <filename
unknown>:0 
  at System.Linq.jvm.ExpressionInterpreter.VisitListExpressions
(System.Collections.ObjectModel.ReadOnlyCollection`1 collection) [0x00000] in
<filename unknown>:0 
  at System.Linq.jvm.ExpressionInterpreter.VisitMethodCall
(System.Linq.Expressions.MethodCallExpression call) [0x00000] in <filename
unknown>:0 
  at System.Linq.Expressions.ExpressionVisitor.Visit
(System.Linq.Expressions.Expression expression) [0x00000] in <filename
unknown>:0 
  at System.Linq.jvm.ExpressionInterpreter.VisitListExpressions
(System.Collections.ObjectModel.ReadOnlyCollection`1 collection) [0x00000] in
<filename unknown>:0 
  at System.Linq.jvm.ExpressionInterpreter.VisitMethodCall
(System.Linq.Expressions.MethodCallExpression call) [0x00000] in <filename
unknown>:0 
  at System.Linq.Expressions.ExpressionVisitor.Visit
(System.Linq.Expressions.Expression expression) [0x00000] in <filename
unknown>:0 
  at System.Linq.jvm.ExpressionInterpreter.Interpret
(System.Linq.Expressions.LambdaExpression lambda, System.Object[] arguments)
[0x00000] in <filename unknown>:0 
  at System.Linq.jvm.Interpreter.Run (System.Object[] arg) [0x00000] in
<filename unknown>:0 
  at System.Linq.jvm.Interpreter.FuncRunner[IEnumerable`1] () [0x00000] in
<filename unknown>:0 
  at System.Linq.QueryableEnumerable`1[Transit.Trip].Execute[IEnumerable`1]
(System.Linq.Expressions.Expression expression) [0x00000] in <filename
unknown>:0 
  at System.Linq.QueryableEnumerable`1[Transit.Trip].GetEnumerator () [0x00000]
in <filename unknown>:0 
  at System.Collections.Generic.List`1[Transit.Trip].AddEnumerable
(IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.List`1[Transit.Trip]..ctor (IEnumerable`1
collection) [0x00000] in <filename unknown>:0 
  at System.Linq.Enumerable.ToList[Trip] (IEnumerable`1 source) [0x00000] in
<filename unknown>:0 
  at Transit.Trips.GetNextTrips (ITransitSource transit, Transit.Stop start,
Transit.Stop finish, TimeSpan future) [0x0005e] in
/Users/fak/Projects/Junk/Ferry/Transit/Trips.cs:26 
  at Ferry.TripSelection.GetMinWait () [0x00027] in
/Users/fak/Projects/Junk/Ferry/Ferry/AppData.cs:45 
  at Ferry.HomeController.UpdateWaitTime (Boolean force) [0x00031] in
/Users/fak/Projects/Junk/Ferry/Ferry/HomeController.xib.cs:126 
  at Ferry.HomeController.UpdateAll () [0x00006] in
/Users/fak/Projects/Junk/Ferry/Ferry/HomeController.xib.cs:73 
  at Ferry.HomeController.<SelectFinish>m__2 (Transit.Stop stop) [0x00011] in
/Users/fak/Projects/Junk/Ferry/Ferry/HomeController.xib.cs:101 
  at Ferry.HomeController+<SelectStop>c__AnonStorey0.<>m__0 (Transit.Stop stop)
[0x00011] in /Users/fak/Projects/Junk/Ferry/Ferry/HomeController.xib.cs:82 
  at Ferry.PickStopController+TableDelegate.RowSelected
(MonoTouch.UIKit.UITableView tableView, MonoTouch.Foundation.NSIndexPath
indexPath) [0x00010] in
/Users/fak/Projects/Junk/Ferry/Ferry/PickStopController.xib.cs:183 
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String
principalClassName, System.String delegateClassName) [0x00000] in <filename
unknown>:0 
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] in
<filename unknown>:0 
  at Ferry.Application.Main (System.String[] args) [0x00000] in
/Users/fak/Projects/Junk/Ferry/Ferry/Main.cs:14 




Expected Results:


How often does this happen? 


Additional Information:

-- 
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