Bug 22480 - Crash with custom UIStoryboardSegue
Summary: Crash with custom UIStoryboardSegue
Status: RESOLVED INVALID
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: master
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-08-28 16:17 UTC by Alex Corrado [MSFT]
Modified: 2014-09-08 17:33 UTC (History)
3 users (show)

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


Attachments
Repro for bug (237.57 KB, application/zip)
2014-08-28 16:17 UTC, Alex Corrado [MSFT]
Details


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 INVALID

Description Alex Corrado [MSFT] 2014-08-28 16:17:16 UTC
Created attachment 7861 [details]
Repro for bug

The attached sample illustrates a crash when a custom UIStoryboardSegue is used on a storyboard. It looks like something is being released too many times. Although the test case uses TouchID, I've also seen the same crash when running it in an iOS 8.0 simulator.

This is the crash:

Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: Stacktrace:
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at <unknown> <0xffffffff>
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at (wrapper managed-to-native) MonoTouch.Foundation.NSObject.monotouch_release_managed_ref (intptr,intptr) <0xffffffff>
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at MonoTouch.Foundation.NSObject.ReleaseManagedRef () [0x00000] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject.iOS.cs:79
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at MonoTouch.Foundation.NSObject/NSObject_Disposer.Drain (MonoTouch.Foundation.NSObject) [0x00062] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:712
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at <unknown> <0xffffffff>
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0003d] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at StoryboardTable.Application.Main (string[]) [0x00008] in /Users/amyburns/Downloads/StoryboardTable/StoryboardTable/Main.cs:17
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 
	Native stacktrace:
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	0   StoryboardTable                     0x00139da1 mono_handle_native_sigsegv + 240
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	1   StoryboardTable                     0x001432f7 mono_sigsegv_signal_handler + 218
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	2   libsystem_platform.dylib            0x3063387b _sigtramp + 42
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	3   StoryboardTable                     0x001c9350 is_user_type + 76
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	4   StoryboardTable                     0x001c920c monotouch_release_managed_ref + 28
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	5   StoryboardTable                     0x00044558 wrapper_managed_to_native_MonoTouch_Foundation_NSObject_monotouch_release_managed_ref_intptr_intptr + 100
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	6   StoryboardTable                     0x0001948c MonoTouch_Foundation_NSObject_ReleaseManagedRef + 48
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	7   StoryboardTable                     0x00019850 MonoTouch_Foundation_NSObject_NSObject_Disposer_Drain_MonoTouch_Foundation_NSObject + 364
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	8   StoryboardTable                     0x000e2e70 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 200
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	9   StoryboardTable                     0x001454df mono_jit_runtime_invoke + 1158
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	10  StoryboardTable                     0x00180b05 mono_runtime_invoke + 88
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	11  StoryboardTable                     0x00113207 native_to_managed_trampoline_10 + 302
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	12  StoryboardTable                     0x00114779 +[__NSObject_Disposer drain:] + 80
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	13  Foundation                          0x23c1e45f <redacted> + 386
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	14  CoreFoundation                      0x22e6c57f <redacted> + 14
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	15  CoreFoundation                      0x22e6ba21 <redacted> + 364
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	16  CoreFoundation                      0x22e69ff5 <redacted> + 772
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	17  CoreFoundation                      0x22db8611 CFRunLoopRunSpecific + 476
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	18  CoreFoundation                      0x22db8423 CFRunLoopRunInMode + 106
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	19  GraphicsServices                    0x2a2d20a9 GSEventRunModal + 136
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	20  UIKit                               0x26502485 UIApplicationMain + 1440
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	21  StoryboardTable                     0x00047bf4 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 272
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	22  StoryboardTable                     0x0002a64c MonoTouch_UIKit_UIApplication_Main_string___string_string + 212
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	23  StoryboardTable                     0x0000f120 StoryboardTable_Application_Main_string__ + 172
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	24  StoryboardTable                     0x000e2e70 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 200
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	25  StoryboardTable                     0x001454df mono_jit_runtime_invoke + 1158
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	26  StoryboardTable                     0x00180b05 mono_runtime_invoke + 88
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	27  StoryboardTable                     0x001847e3 mono_runtime_exec_main + 282
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	28  StoryboardTable                     0x0018462b mono_runtime_run_main + 438
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	29  StoryboardTable                     0x00132df1 mono_jit_exec + 48
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	30  StoryboardTable                     0x001b4a5c monotouch_main + 2604
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	31  StoryboardTable                     0x00115119 main + 108
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 	32  libdyld.dylib                       0x304f3aaf <redacted> + 2
Aug 28 15:26:25 Amys-iPhone-5S StoryboardTable[1713] <Error>: 
	=================================================================
	Got a SIGSEGV while executing native code. This usually indicates
	a fatal error in the mono runtime or one of the native libraries 
	used by your application.
	=================================================================
Comment 1 Sebastien Pouliot 2014-08-29 09:41:27 UTC
I do not have a 5S with iOS8 (mine is running 7.1 and it's my only 7.1/64bits device so I'm not updating it).

If you could get the same behavior with a less restricted configuration (you said you could get it from the simulator) then please attach it to the bug report.
Comment 2 Alex Corrado [MSFT] 2014-09-08 17:33:51 UTC
This was actually fixed when the signature for the 'out' parameter was fixed for CanEvaluatePolicy. Apologies.