Error message of the day: "out of trampolines"

Index, feed.

[ Date | 2012-02-10 21:50 -0500 ]
[ Mod. | 2012-02-13 21:44 -0500 ]

Seems like this iPhone is all out of trampolines:

a trampolining trampoline
(Filename: [...]/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 34)
Ran out of trampolines of type 2 in '[...]/mscorlib.dll' (128)

This problem apparently stems from a combination of some or all of the following real or imaginary causes, brought together by attempting to program iOS devices in C#:

Therefore, if one is unlucky and their program runs in a way that it requires more trampolines than were statically allocated, a crash ensues. It is not 100% clear from the documentation what constructs causes which kind of trampoline to get used, but when running tethered on the iOS device, the error printed to the log when running out of trampolines allows one to trace the source code location that caused it, so it should be vaguely possible to investigate.

Note for the curious: the band-aid solution in this case was to... request more trampolines! To get four kilo-trampolines of type two:

mono --aot=nimt-trampolines=4096

IMT trampolines, type 2, are apparently comsumed when "making heavy use of interfaces", and 128 of them are allocated by default; RGCTX trampolines, type 1, are for "recursive generics", there are 1024 of those by default (option nrgctx-trampolines); and "method trampolines" (I assume this means generic methods), type 0, of which there are normally 1024, are allocated with option ntrampolines.

Unrelated issue

Another issue, which one is likely to discover at the same time as the previous one, is that of "Attempting to JIT compile method [...] while running with --aot-only" error messages. This is caused, I think, by calling methods that mono was unable to AOT-compile. More recent versions of mono accept a print-skipped option to display the names of methods that could not be compiled.

www.kurokatta.org


www.kurokatta.org

Quick links:

Photos
Montréal
Oregon
Paris
Camp info 2007
Camp Faécum 2007
--more--
Doc
Jussieu
Japanese adjectives
Muttrc
Bcc
Montréal
Couleurs LTP
French English words
Petites arnaques
--more--
Hacks
Statmail
DSC-W17 patch
Scarab: dictionnaire de Scrabble
Sigpue
Recipes
Omelette soufflée au sirop d'érable
Camembert fondu au sirop d'érable
La Mona de Tata Zineb
Cake aux bananes, au beurre de cacahuètes et aux pépites de chocolat
*