[MonoTouch] "Symbol file monotouch.dll.mdb doesn't match image monotouch.dll" / "Ran out of trampolines of type 2"

David Moles davidmoles at thegogame.com
Wed Dec 1 18:18:58 EST 2010


FWIW, I tried adding

  --aot="nimt-trampolines=256"

to the iPhone Build Extra Arguments, and that seems to have cleared it up.
Be nice to know what I should do to avoid using up the trampolines in the
first place, though.

On Wed, Dec 1, 2010 at 2:44 PM, David Moles <davidmoles at thegogame.com>wrote:

> Just got the following while debugging on an iPod touch. (The app crashes
> without the debugger, as well -- which is why I was running the debugger.)
>
> Could it have something to do with upgrading the device to 4.2 while still
> building with the 4.1 SDK? A full clean/rebuild doesn't clear up the
> problem.
>
> There's nothing particularly interesting about the code at the failure
> point -- except that line 54 is the beginning of an if() statement, and line
> 62 is the closing brace of the method the if() statement is in. The code in
> the if(), which displays an alert, is the last thing that seems to be
> successfully executed.
>
> Symbol file
> /private/var/mobile/Applications/568D7437-B2AA-498F-B4F3-5D080B16EED8/orbiter-ios.app/monotouch.dll.mdb
> doesn't match image
> /private/var/mobile/Applications/568D7437-B2AA-498F-B4F3-5D080B16EED8/orbiter-ios.app/monotouch.dllRan
> out of trampolines of type 2 in
> '/private/var/mobile/Applications/568D7437-B2AA-498F-B4F3-5D080B16EED8/orbiter-ios.app/mscorlib.dll'
> (128)
> Stacktrace:
>
>   at GoGame.Orbiter.Controllers.JudgingController.ShowJudging () [0x00070]
> in
> /Users/work/Projects/orbiter-mobile/orbiter-core/Controllers/JudgingController.cs:62
>   at GoGame.Orbiter.Controllers.JudgingController.ShowJudging () [0x00010]
> in
> /Users/work/Projects/orbiter-mobile/orbiter-core/Controllers/JudgingController.cs:54
>   at GoGame.iOS.Views.Alerts/<Ok>c__AnonStorey2.<>m__5
> (GoGame.Util.Alerts.IAlertOption) [0x00000] in
> /Users/work/Projects/orbiter-mobile/gg-ios/Views/Alerts.cs:75
>   at GoGame.iOS.Views.Alerts/<Alert>c__AnonStorey1.<>m__4
> (object,MonoTouch.UIKit.UIButtonEventArgs) [0x0002b] in
> /Users/work/Projects/orbiter-mobile/gg-ios/Views/Alerts.cs:66
>   at MonoTouch.UIKit.UIAlertView/_UIAlertViewDelegate.Dismissed
> (MonoTouch.UIKit.UIAlertView,int) <0x00093>
>   at (wrapper runtime-invoke) object.runtime_invoke_dynamic
> (intptr,intptr,intptr,intptr) <0x000cb>
>   at (wrapper managed-to-native)
> MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr)
> <0xffffffff>
>   at MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x000e8>
>   at GoGame.Orbiter.iOS.Application.Main (string[]) [0x0000f] in
> /Users/work/Projects/orbiter-mobile/orbiter-ios/Main.cs:28
>   at (wrapper runtime-invoke) object.runtime_invoke_dynamic
> (intptr,intptr,intptr,intptr) <0x000cb>
>
> Native stacktrace:
>
> 0   Orbiter                             0x00c1e2f8
> mono_handle_native_sigsegv + 404
> 1   Orbiter                             0x00c413fc sigabrt_signal_handler +
> 148
>  2   libSystem.B.dylib                   0x31109ddf _sigtramp + 42
> 3   libSystem.B.dylib                   0x3110b2cb kill + 10
>  4   libSystem.B.dylib                   0x3110b2bd raise + 16
> 5   libSystem.B.dylib                   0x3111fd79 abort + 56
>  6   Orbiter                             0x00d72438 g_logv + 248
> 7   Orbiter                             0x00d72490 g_log + 52
>  8   Orbiter                             0x00c16430
> get_numerous_trampoline + 440
> 9   Orbiter                             0x00c16bec mono_aot_get_imt_thunk +
> 60
>  10  Orbiter                             0x00cee268 initialize_imt_slot +
> 176
> 11  Orbiter                             0x00cee71c build_imt_slots + 1044
>  12  Orbiter                             0x00ceeaac
> mono_vtable_build_imt_slot + 348
> 13  Orbiter                             0x00c1ee20
> mono_convert_imt_slot_to_vtable_slot + 344
>  14  Orbiter                             0x00c1f474 mono_magic_trampoline
> + 1024
> 15  Orbiter                             0x003c08d8 generic_trampoline_0 +
> 120
>  16  Orbiter                             0x00754638
> GoGame.iOS.Views.Alerts/<Ok>c__AnonStorey2:<>m__5
> (GoGame.Util.Alerts.IAlertOption) + 148
>  17  Orbiter                             0x00754484
> GoGame.iOS.Views.Alerts/<Alert>c__AnonStorey1:<>m__4
> (object,MonoTouch.UIKit.UIButtonEventArgs) + 400
>  18  Orbiter                             0x0078c21c
> MonoTouch.UIKit.UIAlertView/_UIAlertViewDelegate:Dismissed
> (MonoTouch.UIKit.UIAlertView,int) + 148
>  19  Orbiter                             0x00321798 (wrapper
> runtime-invoke) object:runtime_invoke_dynamic (intptr,intptr,intptr,intptr)
> + 204
> 20  Orbiter                             0x00bfae4c mono_jit_runtime_invoke
> + 3032
>  21  Orbiter                             0x00cf2c0c mono_runtime_invoke +
> 140
> 22  Orbiter                             0x00d98224 monotouch_trampoline +
> 2444
>  23  UIKit                               0x3164fdb9 -[UIAlertView(Private)
> _popoutAnimationDidStop:finished:] + 328
> 24  UIKit                               0x313ae337 -[UIViewAnimationState
> sendDelegateAnimationDidStop:finished:] + 190
>  25  UIKit                               0x313bac15 -[UIViewAnimationState
> animationDidStop:finished:] + 40
> 26  QuartzCore                          0x32d96ea9
> _ZL23run_animation_callbacksdPv + 292
>  27  QuartzCore                          0x32d96d4b
> _ZN2CAL14timer_callbackEP16__CFRunLoopTimerPv + 122
> 28  CoreFoundation                      0x304450a3
> __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
>  29  CoreFoundation                      0x30444b5b __CFRunLoopDoTimer +
> 850
> 30  CoreFoundation                      0x304161b5 __CFRunLoopRun + 1088
>  31  CoreFoundation                      0x30415c87 CFRunLoopRunSpecific +
> 230
> 32  CoreFoundation                      0x30415b8f CFRunLoopRunInMode + 58
>  33  GraphicsServices                    0x31eec4ab GSEventRunModal + 114
> 34  GraphicsServices                    0x31eec557 GSEventRun + 62
>  35  UIKit                               0x313cf329 -[UIApplication _run]
> + 412
> 36  UIKit                               0x313cce93 UIApplicationMain + 670
>  37  Orbiter                             0x0099b7b4 (wrapper
> managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain
> (int,string[],intptr,intptr) + 240
>  38  Orbiter                             0x00004498
> GoGame.Orbiter.iOS.Application:Main (string[]) + 216
> 39  Orbiter                             0x00321798 (wrapper runtime-invoke)
> object:runtime_invoke_dynamic (intptr,intptr,intptr,intptr) + 204
>  40  Orbiter                             0x00bfae4c
> mono_jit_runtime_invoke + 3032
> 41  Orbiter                             0x00cf2c0c mono_runtime_invoke +
> 140
>  42  Orbiter                             0x00cf4fe8 mono_runtime_exec_main
> + 828
> 43  Orbiter                             0x00cf474c mono_runtime_run_main +
> 1016
>  44  Orbiter                             0x00c05f44 mono_jit_exec + 216
> 45  Orbiter                             0x00bf21e0 main + 3552
>  46  Orbiter                             0x000042d8 start + 40
>
> =================================================================
> Got a SIGABRT while executing native code. This usually indicates
> a fatal error in the mono runtime or one of the native libraries
> used by your application.
> =================================================================
>
>
> --
> David Moles
> davidmoles at thegogame.com
>
>


-- 
David Moles
davidmoles at thegogame.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20101201/6bfb6fa9/attachment.html 


More information about the MonoTouch mailing list