Bug 34194 - ObjC Runtime Exception for extensions on method NSItemProvider.LoadItem: "Reason: NSGetSizeAndAlignment(): unsupported type encoding"
Summary: ObjC Runtime Exception for extensions on method NSItemProvider.LoadItem: "Rea...
Status: RESOLVED DUPLICATE of bug 34518
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.0 (iOS9)
Hardware: Macintosh Mac OS
: High normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-09-23 03:55 UTC by Yekaterina
Modified: 2015-10-05 11:34 UTC (History)
3 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 DUPLICATE of bug 34518

Description Yekaterina 2015-09-23 03:55:51 UTC
SOURCE CODE:
attachment.LoadItem(UTType.Text, null, (text, error) => {}


DEVICE LOGS OF CRASH:
 <Warning>: 
	Unhandled Exception:
	0   Mono                                0x035dc691 mono_handle_exception_internal + 2168
	1   Mono                                0x035dbe13 mono_handle_exception + 30
	2   Mono                                0x035d4d2d mono_arm_throw_exception + 104
	3   com.company.app.mm-extension        0x005536ac com.company.app.mm-extension + 5412524
	at ObjCRuntime.Runtime.throw_ns_exception (intptr) <0x0001c>
	at (wrapper native-to-managed) ObjCRuntime.Runtime.throw_ns_exception (intptr) <0x00048>
	6   com.company.app.mm-extension        0x02691530 xamarin_get_block_descriptor + 708
	7   com.company.app.mm-extension        0x026932f8 xamarin_get_block_descriptor + 8332
	8   CoreFoundation                      0x25913ba9 <redacted> + 644
	9   libobjc.A.dylib                     0x3712b087 <redacted> + 174
	10  libc++abi.dylib                     0x3690fe17 <redacted> + 78
	11  libc++abi.dylib                     0x3690f8f7 __cxa_rethrow + 102
	12  libobjc.A.dylib                     0x3712af47 objc_exception_rethrow + 42
	13  CoreFoundation                      0x2582726f CFRunLoopRunSpecific + 650
	14  CoreFoundation                      0x25826fdd CFRunLoopRunInMode + 108
	15  GraphicsServices                    0x2e942af9 GSEventRunModal + 160
	16  UIKit                               0x29a8c18d UIApplicationMain + 144
	17  libxpc.dylib                        0x379e916b <redacted> + 706
	18  libxpc.dylib                        0x379ea7e5 xpc_main + 168
	19  Foundation                          0x267beef9 <redacted> + 0
	20  PlugInKit                           0x314b1195 <redacted> + 508
	21  PlugInKit                           0x314b0e63 <redacted> + 58
	22  PlugInKit                           0x314b11c9 <redacted> + 20
	23  libextension.dylib                  0x36a807cd NSExtensionMain + 48
	24  com.company.app.mm-extension        0x026a6170 WriteZStream + 568
	25  com.company.app.mm-extension        0x026a58f8 monotouch_GetFolderPath + 3408
	26  com.company.app.mm-extension        0x02677d6f com.company.app.mm-extension + 40164719
	27  libdyld.dylib                       0x37855873 <redacted> + 2


<Warning>: Unhandled managed exception:
	Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: NSGetSizeAndAlignment(): unsupported type encoding spec 'ì' at 'ìg:å`2LoadItloadItemForTypeIdentifier:options:completionHandler:' in 'ìg:å`2LoadIt'
	Native stack trace:
		0   CoreFoundation                      0x25913883 <redacted> + 150
		1   libobjc.A.dylib                     0x3712adff objc_exception_throw + 38
		2   CoreFoundation                      0x25914e71 <redacted> + 536
		3   CoreFoundation                      0x25916f69 <redacted> + 60
		4   CoreFoundation                      0x25841515 <redacted> + 516
		5   libextension.dylib                  0x36a6ee47 <redacted> + 150
		6   com.company.app.mm-extension        0x01f277b8 com.company.app.mm-extension + 32495544
		7   com.company.app.mm-extension        0x01a5ac34 com.company.app.mm-extension + 27462708
		8   com.company.app.mm-extension        0x0002e5d0 com.company.app.mm-extension + 17872
		9   com.company.app.mm-extension        0x000332b8 com.company.app.mm-extension + 37560
		10  com.company.app.mm-extension        0x00139730 com.company.app.mm-extension + 1111856
		11  com.company.app.mm-extension        0x00218e00 com.company.app.mm-extension + 2027008
		12  com.company.app.mm-extension        0x00218d78 com.company.app.mm-extension + 2026872
		13  com.company.app.mm-extension        0x00139630 com.company.app.mm-extension + 1111600
		14  com.company.app.mm-extension        0x001896d8 com.company.app.mm-extension + 1439448
		15  com.company.app.mm-extension        0x020ae3f4 com.company.app.mm-extension + 34096116
		16  com.company.app.mm-extension        0x015c8808 com.company.app.mm-extension + 22669320
		17  com.company.app.mm-extension        0x004fbbe8 com.company.app.mm-extension + 5053416
		18  Mono                                0x035e93bb mono_jit_runtime_invoke + 1150
		19  Mono                                0x0363761d mono_runtime_invoke + 88
		20  com.company.app.mm-extension        0x02640b41 com.company.app.mm-extension + 39938881
		21  com.company.app.mm-extension        0x02641139 com.company.app.mm-extension + 39940409
		22  Foundation                          0x266e8a37 <redacted> + 386
		23  CoreFoundation                      0x258d6827 <redacted> + 14
		24  CoreFoundation                      0x258d6417 <redacted> + 454
		25  CoreFoundation                      0x258d477f <redacted> + 806
		26  CoreFoundation                      0x258271e9 CFRunLoopRunSpecific + 516
		27  CoreFoundation                      0x25826fdd CFRunLoopRunInMode + 108
		28  GraphicsServices                    0x2e942af9 GSEventRunModal + 160
		29  UIKit                               0x29a8c18d UIApplicationMain + 144
		30  libxpc.dylib                        0x379e916b <redacted> + 706
		31  libxpc.dylib                        0x379ea7e5 xpc_main + 168
		32  Foundation                          0x267beef9 <redacted> + 0
		33  PlugInKit                           0x314b1195 <redacted> + 508
		34  PlugInKit                           0x314b0e63 <redacted> + 58
		35  PlugInKit                           0x314b11c9 <redacted> + 20
		36  libextension.dylib                  0x36a807cd NSExtensionMain + 48
		37  com.company.app.mm-extension        0x026a6170 WriteZStream + 568
		38  com.company.app.mm-extension        0x026a58f8 monotouch_GetFolderPath + 3408
		39  com.company.app.mm-extension        0x02677d6f com.company.app.mm-extension + 40164719
		40  libdyld.dylib                       0x37855873 <redacted> + 2
	 (Foundation.MonoTouchException)
	  at ObjCRuntime.Runtime.ThrowNSException (IntPtr ns_exception) [0x00000] in <filename unknown>:0 
	  at ObjCRuntime.Runtime.throw_ns_exception (IntPtr exc) [0x00000] in <filename unknown>:0 
	  at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr)
 AppName[1047] <Warning>: critical: Stacktrace:
 AppName[1047] <Warning>: critical: Native stacktrace:
 AppName[1047] <Warning>: critical: 	0   Mono                                0x035dd185 mono_handle_native_sigsegv + 240
 AppName[1047] <Warning>: critical: 	1   Mono                                0x035e17c5 sigabrt_signal_handler + 100
 AppName[1047] <Warning>: critical: 	2   libsystem_platform.dylib            0x379c085f _sigtramp + 42
 AppName[1047] <Warning>: critical: 	3   libsystem_pthread.dylib             0x379c4b5b pthread_kill + 62
 AppName[1047] <Warning>: critical: 	4   libsystem_c.dylib                   0x378bcf51 abort + 108
 AppName[1047] <Warning>: critical: 	5   com.company.app.mm-extension        0x02692930 xamarin_get_block_descriptor + 5828
 AppName[1047] <Warning>: critical: 	6   Mono                                0x035dd725 mono_invoke_unhandled_exception_hook + 76
 AppName[1047] <Warning>: critical: 	7   Mono                                0x035e9d7b mono_thread_abort_dummy + 62
 AppName[1047] <Warning>: critical: 	8   Mono                                0x035dcd2b mono_handle_exception_internal + 3858
 AppName[1047] <Warning>: critical: 	9   Mono                                0x035dbe13 mono_handle_exception + 30
 AppName[1047] <Warning>: critical: 	10  Mono                                0x035d4d2d mono_arm_throw_exception + 104
 AppName[1047] <Warning>: critical: 	11  com.company.app.mm-extension        0x005536ac com.company.app.mm-extension + 5412524
 AppName[1047] <Warning>: critical: 	12  com.company.app.mm-extension        0x014f47c4 com.company.app.mm-extension + 21800900
 AppName[1047] <Warning>: critical: 	13  com.company.app.mm-extension        0x01fdc2e0 com.company.app.mm-extension + 33235680
 AppName[1047] <Warning>: critical: 	14  com.company.app.mm-extension        0x02691530 xamarin_get_block_descriptor + 708
 AppName[1047] <Warning>: critical: 	15  com.company.app.mm-extension        0x026932f8 xamarin_get_block_descriptor + 8332
 AppName[1047] <Warning>: critical: 	16  CoreFoundation                      0x25913ba9 <redacted> + 644
 AppName[1047] <Warning>: critical: 	17  libobjc.A.dylib                     0x3712b087 <redacted> + 174
 AppName[1047] <Warning>: critical: 	18  libc++abi.dylib                     0x3690fe17 <redacted> + 78
 AppName[1047] <Warning>: critical: 	19  libc++abi.dylib                     0x3690f8f7 __cxa_rethrow + 102
 AppName[1047] <Warning>: critical: 	20  libobjc.A.dylib                     0x3712af47 objc_exception_rethrow + 42
 AppName[1047] <Warning>: critical: 	21  CoreFoundation                      0x2582726f CFRunLoopRunSpecific + 650
 AppName[1047] <Warning>: critical: 	22  CoreFoundation                      0x25826fdd CFRunLoopRunInMode + 108
 AppName[1047] <Warning>: critical: 	23  GraphicsServices                    0x2e942af9 GSEventRunModal + 160
 AppName[1047] <Warning>: critical: 	24  UIKit                               0x29a8c18d UIApplicationMain + 144
 AppName[1047] <Warning>: critical: 	25  libxpc.dylib                        0x379e916b <redacted> + 706
 AppName[1047] <Warning>: critical: 	26  libxpc.dylib                        0x379ea7e5 xpc_main + 168
 AppName[1047] <Warning>: critical: 	27  Foundation                          0x267beef9 <redacted> + 0
 assertiond[64] <Error>: assertion failed: 13A344: assertiond + 60505 [BDEA3ABF-EF9E-34B9-A166-8AE775484A67]: 0x3
 Unknown[64] <Error>: 
 com.apple.xpc.launchd[1] (com.company.app.mm-extension[1047]) <Notice>: Service exited due to signal: Abort trap: 6
 AppName[1047] <Warning>: critical: 	28  PlugInKit                           0x314b1195 <redacted> + 508
 AppName[1047] <Warning>: critical: 	29  PlugInKit                           0x314b0e63 <redacted> + 58
 AppName[1047] <Warning>: critical: 	30  PlugInKit                           0x314b11c9 <redacted> + 20
 AppName[1047] <Warning>: critical: 	31  libextension.dylib                  0x36a807cd NSExtensionMain + 48
 AppName[1047] <Warning>: critical: 	32  com.company.app.mm-extension        0x026a6170 WriteZStream + 568
 AppName[1047] <Warning>: critical: 	33  com.company.app.mm-extension        0x026a58f8 monotouch_GetFolderPath + 3408
 AppName[1047] <Warning>: critical: 	34  com.company.app.mm-extension        0x02677d6f com.company.app.mm-extension + 40164719
 AppName[1047] <Warning>: critical: 	35  libdyld.dylib                       0x37855873 <redacted> + 2
 AppName[1047] <Warning>: critical: 
	=================================================================
	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.
	=================================================================



REASON
(from current log)
Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: NSGetSizeAndAlignment(): unsupported type encoding spec 'ì' at 'ìg:å`2LoadItloadItemForTypeIdentifier:options:completionHandler:' in 'ìg:å`2LoadIt'

(from another log)
Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: NSGetSizeAndAlignment(): unsupported type encoding spec 'e' at 'elease' in 'elease'
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-09-23 04:02:13 UTC
Please provide the complete source code to reproduce the problem (in this case it's very significant how the 'attachment' object was created).
Comment 6 Rolf Bjarne Kvinge [MSFT] 2015-10-05 11:34:23 UTC
This is a dup of #34518.

*** This bug has been marked as a duplicate of bug 34518 ***