[Mono-bugs] [Bug 593628] New: Attempting to JIT compile method Cols.Where(c => !c.Hidden).Sum(c => c.Width)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sun Apr 4 12:58:39 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=593628
http://bugzilla.novell.com/show_bug.cgi?id=593628#c0
Summary: Attempting to JIT compile method Cols.Where(c =>
!c.Hidden).Sum(c => c.Width)
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: fak at kruegersystems.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Description of Problem:
class Col {
public string Title = "";
public Func<object,string> Print;
public bool Stretches = false;
public float Width = 30;
public bool Hidden = false;
}
public readonly List<Col> Cols = new List<Col>();
var colsWidth = Cols.Where(c => !c.Hidden).Sum(c => c.Width);
Produces
Unhandled Exception: System.ExecutionEngineException: Attempting to JIT compile
method 'System.Linq.Enumerable:Sum<CommPadd.SourceTypeMessages/Col, single>
(System.Collections.Generic.IEnumerable`1<CommPadd.SourceTypeMessages/Col>,System.Func`3<single,
CommPadd.SourceTypeMessages/Col, single>)' while running with --aot-only.
at System.Linq.Enumerable.Sum[Col] (IEnumerable`1 source, System.Func`2
selector) [0x00000] in <filename unknown>:0
at CommPadd.SourceTypeMessages+Table.Measure[Message] (MonoTouch.UIKit.UIView
v, CommPadd.Message[] objs) [0x00000] in <filename unknown>:0
at CommPadd.SourceTypeMessages.RefreshMessagesUI () [0x00037] in
/Users/fak/Projects/CommPadd/CommPadd/SourceTypeMessages.xib.cs:97
at CommPadd.SourceTypeMessages.RefreshMessages () [0x00198] in
/Users/fak/Projects/CommPadd/CommPadd/SourceTypeMessages.xib.cs:298
at CommPadd.SourceTypeMessages.OnSourceUpdated (CommPadd.Source src)
[0x0002b] in
/Users/fak/Projects/CommPadd/CommPadd/SourceTypeMessages.xib.cs:197
at (wrapper delegate-invoke)
System.Action`1<CommPadd.Source>:invoke_void__this___Source (CommPadd.Source)
at CommPadd.SourceUpdater+<UpdateSource>c__AnonStoreyB.<>m__26 () [0x0000a]
in /Users/fak/Projects/CommPadd/CommPadd/SourceUpdater.cs:118
at MonoTouch.Foundation.NSActionDispatcher.Apply () [0x00000] in <filename
unknown>:0
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 CommPadd.Application.Main (System.String[] args) [0x00000] in
/Users/fak/Projects/CommPadd/CommPadd/Main.cs:565
Symbol file
/private/var/mobile/Applications/422AF5D5-D403-4E22-AFB6-D5E3C76FFD68/CommPadd.app/monotouch.dll.mdb
doesn't match image
/private/var/mobile/Applications/422AF5D5-D403-4E22-AFB6-D5E3C76FFD68/CommPadd.app/monotouch.dll
Steps to reproduce the problem:
1.
2.
Actual Results:
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