Bug 36244 - AOT Crash
Summary: AOT Crash
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler ()
Version: XI 9.2
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2015-11-25 07:38 UTC by Grigory (Playtika)
Modified: 2017-05-18 09:35 UTC (History)
4 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 NORESPONSE

Description Grigory (Playtika) 2015-11-25 07:38:41 UTC
Crash in runtime. 8.9.1.5 works perfectly

Nov 19 15:33:42 iPad-Anna SMIOSSlotomania[1311] <Warning>: 12:33:42:787|WARN|4|RemoteResourceDownloader|-|RemoteResourceBundle (Id = 295) DOWNLOAD FAILED --> System.ExecutionEngineException: Attempting to JIT compile method 'RemoteResources.RemoteResourceDownloader`2/<DownloadItem>c__async2<int, SM.Shared.Machines.Logic.RemoteResource>:MoveNext ()' while running with --aot-only. See http://docs.xamarin.com/ios/about/limitations for more information.

	
	  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_gsharedvt_constrained_call (intptr,intptr,intptr,intptr,intptr)
	  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine] (System.Runtime.CompilerServices.TStateMachine& stateMachine) <0x101280ad0 + 0x001bb> in <filename unknown>:0 
	  at (wrapper unknown) System.Object:gsharedvt_in ()
	  at (wrapper unknown) System.Object:gsharedvt_out ()
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[TResult].Start[TStateMachine] (System.Runtime.CompilerServices.TStateMachine& stateMachine) <0x10127efe0 + 0x00063> in <filename unknown>:0 
	  at (wrapper unknown) System.Object:gsharedvt_in ()
	  at (wrapper unknown) System.Object:gsharedvt_out ()
	  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (System.Runtime.CompilerServices.TStateMachine& stateMachine) <0x10127ed20 + 0x00073> in <filename unknown>:0 
	  at (wrapper unknown) System.Object:gsharedvt_in ()
	  at RemoteResources.RemoteResourceDownloader`2[TBundleId,TResource].DownloadItem (RemoteResources.TResource remoteResource, CancellationToken token) <0x10084cac8 + 0x000d3> in <filename unknown>:0 
	  at (wrapper unknown) System.Object:gsharedvt_out ()


Code: https://gist.github.com/Belorus/81e0c3ed019af62b593b
Comment 1 Zoltan Varga 2015-11-25 12:48:38 UTC
Could you attach a complete testcase ?
Comment 2 Grigory (Playtika) 2015-12-15 13:37:46 UTC
Fixed by breaking big method to 3 small ones.
No time to provide isolated repros. I sent you the code if first message. 
I believe bug can be fixed just using crash and code (i do it all the time).

Not closing bug because it still exists, but for anyone who gets this - break complex methods to smaller ones.
Comment 3 Manuel de la Peña [MSFT] 2017-04-10 10:20:50 UTC
@Grigory can you please provide what @zoltan requested? I'd like to be able to test the issue in the current release.
Comment 4 Vincent Dondain [MSFT] 2017-05-18 09:35:50 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!