- Home /
Ran out of trampolines of type 2 - iOS
When running our game on iOS (have tested both on iPhone 3G and iPhone 4) we are getting a consistent crash with the following error:
Ran out of trampolines of type 2 in '/private/var/mobile/Applications//.app/Data/Managed/mscorlib.dll' (128)
The crash is not linked to any specific line of code as rearranging the code causes the crash after a certain number of operations occur, not the operations themselves.
The best answer I can find is here stating: I need to add this to the arguments for monotouch -aot "nimt-trampolines=2048". However I can't pass this argument when using Unity can I?
Answer by ubik2 · Jun 05, 2012 at 04:20 AM
The current version of Unity has the ability to pass in the AOT compile options to fix this problem. Basically, you go to Player Settings > Other Settings and set the AOT option to nimt-trampolines=512 (or perhaps more) See http://unity3d.com/support/documentation/Manual/TroubleShooting.html
Answer by Doolwind · May 17, 2011 at 09:23 PM
I just received this email back from Unity. Looks like it will be resolved in the next version:
"This is a known problem with Generics. In the next release of Unity we will expose the aot options in the player settings that will allow you to change that parameter."
I am also running into similar problems. I am currently on the latest version 3.3 of unity that's available on the website for download. Are the aot options supposed to be available in this version. If so where are they located?
(Ps. I have ios sdk 4.3 isntalled and running on a Intel based $$anonymous$$ac).