Bug 27401 - MT1107 while debugging on iOS
Summary: MT1107 while debugging on iOS
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: XI 8.6.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 8.13 (C6 alpha)
Assignee: Bugzilla
Depends on:
Reported: 2015-02-25 06:55 UTC by joerg
Modified: 2015-08-11 08:05 UTC (History)
3 users (show)

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

example project (18.95 KB, application/zip)
2015-02-25 07:00 UTC, joerg

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:

Description joerg 2015-02-25 06:55:16 UTC
Please ensure your device is connected...
Connected to: Jœrg
Launching /private/var/mobile/Containers/Bundle/Application/B696F6CC-FF8C-AAAA-8907-1C8B3ABA383F/xxx.ios.app.app
error MT1107: Application failed to launch

This is the device crash report:
Incident Identifier: 3491BB71-4F04-45EA-8BEF-571244AA4DC0
CrashReporter Key:   2153937de5594623f18a98111427936e3305d3b3
Hardware Model:      iPhone7,2
Process:             xxx.ios.app [1374]
Path:                /private/var/mobile/Containers/Bundle/Application/E1748438-8D53-4F55-A4C0-D715B6B831F3/xxx.ios.app.app/xxx.ios.app
Identifier:          com.xxx.ios.app
Version:             1.0 (1.0)
Code Type:           ARM-64 (Native)
Parent Process:      launchd [1]

Date/Time:           2015-02-25 12:03:33.779 +0100
Launch Time:         2015-02-25 12:03:33.425 +0100
OS Version:          iOS 8.1.3 (12B466)
Report Version:      105

Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   xxx.ios.app          	0x000000010032a1a0 mono_path_resolve_symlinks (mono-path.c:156)
1   xxx.ios.app          	0x000000010032a198 mono_path_resolve_symlinks (mono-path.c:153)
2   xxx.ios.app          	0x000000010033c428 xamarin_get_bundle_path (runtime.m:930)
3   xxx.ios.app          	0x000000010033940c xamarin_main (monotouch-main.m:198)
4   xxx.ios.app          	0x000000010025030c main (main.arm64.m:47)
5   libdyld.dylib                 	0x0000000193d1ea04 start + 0

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x000000017000b540   x1: 0x00000001004d6fa9   x2: 0x0000000000000000   x3: 0x000000017000b541
    x4: 0x000000016fda6a18   x5: 0x0000000000000000   x6: 0x0000000000000000   x7: 0x0000000000000f80
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000000000000000  x11: 0x000000000000002e
   x12: 0x0000000000000010  x13: 0x0000000000001750  x14: 0x000000000000000e  x15: 0x0000000000000000
   x16: 0x0000000193ec9250  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x00000001004cd2cb  x21: 0x0000000000000000  x22: 0x0000000000000000  x23: 0x000000017000b540
   x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x000000016fda7b40  fp: 0x000000016fda7960   lr: 0x000000010032a19c
    sp: 0x000000016fda74d0   pc: 0x000000010032a1a0 cpsr: 0x60000000
Comment 1 joerg 2015-02-25 07:00:16 UTC
Created attachment 10020 [details]
example project
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-02-25 07:26:30 UTC
This is related to how many dots there are in the executable.

In the project's Build/Output options you can remove one of the dots in the Assembly name (to "straftatomat.iosapp" for instance), and the app won't crash anymore.
Comment 3 joerg 2015-02-25 07:40:25 UTC
Great, thats it.
Comment 4 Rolf Bjarne Kvinge [MSFT] 2015-02-26 04:29:37 UTC
Fixed (to show an error at build time instead of crashing at runtime).

maccore/master: 17b5cfcdfaa021646e1ee78f5bd4d842beb2618b
Comment 5 Rolf Bjarne Kvinge [MSFT] 2015-08-05 11:28:57 UTC
Reopening since the fix is not quite correct: the problem occurs when the executable ends with ".app", not the number of dots. Removing dots just worked around it.
Comment 6 Rolf Bjarne Kvinge [MSFT] 2015-08-11 08:05:18 UTC
Fixed (to detect executables ending with ".app" instead).

maccore/master: d51189642dbbff04b862537a3e98d7023979097d