Bug 4381 - ServiceStack MonoTouch Build JITs
Summary: ServiceStack MonoTouch Build JITs
Status: RESOLVED DUPLICATE of bug 6066
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.2
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-04-10 16:24 UTC by Ian
Modified: 2012-07-17 06:54 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 6066

Description Ian 2012-04-10 16:24:47 UTC
I am using the MonoTouch build of Service Stack from https://github.com/ServiceStack/ServiceStack/tree/master/release/latest/MonoTouch

When run on a iPad, I get a **JIT** error. I thought MonoTouch took care of that in the build?

Error Message:
    Attempting to JIT compile method     
    'ServiceStack.Text.Json.JsonReader`1<Common.AppCategoryEnum>:GetParseFn ()' while running with --aot-only.

I use the DLLS:

 - ServiceStack.Common.dll 
 - ServiceStack.Interface.dll
 - ServiceStack.Text.dll

And only this single call:

    new JsonServiceClient ().GetAsync<MyResponse> (url, Success, Failure);
Comment 1 Ian 2012-04-10 16:32:21 UTC
MonoDevelop 2.8.8.4
Runtime:
	Mono 2.10.9 (tarball Tue Mar 20 15:31:37 EDT 2012)
	GTK 2.24.10
	GTK# (2.12.0.0)
Apple Developer Tools:
	 Xcode 4.3.1 (1176)
	 Build 4E1019
Monotouch: 5.2.10
Comment 2 Sebastien Pouliot 2012-04-10 16:58:03 UTC
I fixing something else at the moment, but between builds, I googled and found this:
https://github.com/ServiceStack/ServiceStack.Text/issues/56

That patch is one month old but the binaries you linked to are more than 3 months old. It's worth a try...
Comment 3 Ian 2012-04-10 18:29:43 UTC
I get this when building for release: 

AOT Compilation exited with code 134, command:
MONO_PATH=Places.app /Developer/MonoTouch/usr/bin/arm-darwin-mono --llvm --aot=mtriple=armv6-darwin,full,static,asmonly,nodebug,llvm-path=/Developer/MonoTouch/LLVM/bin/,outfile=/var/folders/15/47k2732n643g9dcrz5sncc6c0000gn/T/tmp26e46968.tmp/ServiceStack.Text.dll.6.s "/Users/vink/Dropbox/Dev/iOS/UNIVERSAL/BiblePlaces/BiblePlaces/bin/iPhone/Release/Places.app/ServiceStack.Text.dll"
Mono Ahead of Time compiler - compiling assembly /Places.app/ServiceStack.Text.dll
* Assertion at ../../../../../mono/mono/mini/mini-llvm.c:4535, condition `LLVMTypeOf (values [sreg1]) == LLVMTypeOf (values [phi->dreg])' not met
Comment 4 Sebastien Pouliot 2012-04-11 08:56:32 UTC
Was the above with the older or newer assemblies ?
Comment 5 Ian 2012-04-11 14:02:30 UTC
That was with the current production release of the ServiceStack assemblies. I couldn't find any newer builds. IT does appear something in the newest MT isn't agreeing as it worked months ago.
Comment 6 Rolf Bjarne Kvinge [MSFT] 2012-07-17 06:54:30 UTC
The stack trace in comment #3 is identical to the crash in bug #6066 - which has been fixed in master (the upcoming 5.3.5).

*** This bug has been marked as a duplicate of bug 6066 ***