Bug 45934 - Crash when load a screen after doing a request
Summary: Crash when load a screen after doing a request
Status: RESOLVED NORESPONSE
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 10.2 (iOS 10.1)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-10-26 17:20 UTC by Isaac
Modified: 2016-12-22 16:42 UTC (History)
2 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 NORESPONSE

Description Isaac 2016-10-26 17:20:48 UTC
Good afternoon.

A strange bug happens after the app do a request and touch button to load a new screen. This is the error message:

Thread started:  #3
Thread started: <Thread Pool> #4
Thread started: <Thread Pool> #5
Thread started: <Thread Pool> #6
Thread started: <Thread Pool> #7
Thread finished: <Thread Pool> #5

2016-10-26 12:56:00.861 AnjoDaGuardaiOS[490:96428] critical: Stacktrace:

2016-10-26 12:56:00.861 AnjoDaGuardaiOS[490:96428] critical:   at <unknown> <0xffffffff>
2016-10-26 12:56:00.863 AnjoDaGuardaiOS[490:96428] critical:   at (wrapper managed-to-native) object.__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr) <0x0005b>
2016-10-26 12:56:00.863 AnjoDaGuardaiOS[490:96428] critical:   at (wrapper alloc) object.AllocVector (intptr,intptr) <0x00117>
2016-10-26 12:56:00.866 AnjoDaGuardaiOS[490:96428] critical:   at System.IO.StreamReader.Init (System.IO.Stream,System.Text.Encoding,bool,int,bool) [0x00048] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/io/streamreader.cs:251
2016-10-26 12:56:00.867 AnjoDaGuardaiOS[490:96428] critical:   at System.IO.StreamReader..ctor (System.IO.Stream,System.Text.Encoding,bool,int,bool) [0x00065] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/io/streamreader.cs:173
2016-10-26 12:56:00.868 AnjoDaGuardaiOS[490:96428] critical:   at System.IO.StreamReader..ctor (System.IO.Stream,bool) [0x00000] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/io/streamreader.cs:138
2016-10-26 12:56:00.868 AnjoDaGuardaiOS[490:96428] critical:   at System.IO.StreamReader..ctor (System.IO.Stream) [0x00000] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/io/streamreader.cs:134
2016-10-26 12:56:00.870 AnjoDaGuardaiOS[490:96428] critical:   at AnjoDaGuarda.GlobalMessages.GetMessage (string) [0x0005d] in /Users/mac/Documents/workspaceiOS/Anjo da guarda/anjodaguarda/AnjoDaGuarda/i18n/GlobalMessages.cs:89
2016-10-26 12:56:00.870 AnjoDaGuardaiOS[490:96428] critical:   at AnjoDaGuarda.GlobalMessages.GetMessageUpperCase (string) [0x00002] in /Users/mac/Documents/workspaceiOS/Anjo da guarda/anjodaguarda/AnjoDaGuarda/i18n/GlobalMessages.cs:113
2016-10-26 12:56:00.871 AnjoDaGuardaiOS[490:96428] critical:   at AnjoDaGuarda.iOS.NovoMedicamentoViewController.CarregaMessages () [0x00021] in /Users/mac/Documents/workspaceiOS/Anjo da guarda/anjodaguarda/iOS/MeusmedicamentosController/NovoMedicamentoViewController.cs:87
2016-10-26 12:56:00.872 AnjoDaGuardaiOS[490:96428] critical:   at AnjoDaGuarda.iOS.NovoMedicamentoViewController.ViewDidLoad () [0x00008] in /Users/mac/Documents/workspaceiOS/Anjo da guarda/anjodaguarda/iOS/MeusmedicamentosController/NovoMedicamentoViewController.cs:25
2016-10-26 12:56:00.873 AnjoDaGuardaiOS[490:96428] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000ff>
2016-10-26 12:56:00.873 AnjoDaGuardaiOS[490:96428] critical:   at <unknown> <0xffffffff>
2016-10-26 12:56:00.875 AnjoDaGuardaiOS[490:96428] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00063>
2016-10-26 12:56:00.878 AnjoDaGuardaiOS[490:96428] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/src/UIKit/UIApplication.cs:79
2016-10-26 12:56:00.878 AnjoDaGuardaiOS[490:96428] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/3426/6c3fee4d/source/xamarin-macios/src/UIKit/UIApplication.cs:63
2016-10-26 12:56:00.879 AnjoDaGuardaiOS[490:96428] critical:   at AnjoDaGuarda.iOS.Application.Main (string[]) [0x00008] in /Users/mac/Documents/workspaceiOS/Anjo da guarda/anjodaguarda/iOS/Main.cs:17
2016-10-26 12:56:00.879 AnjoDaGuardaiOS[490:96428] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000ff>
2016-10-26 12:56:00.880 AnjoDaGuardaiOS[490:96428] critical: 
Native stacktrace:

2016-10-26 12:56:01.005 AnjoDaGuardaiOS[490:96428] critical: 	0   libmonosgen-2.0.dylib               0x004027f3 mono_handle_native_sigsegv + 242
2016-10-26 12:56:01.005 AnjoDaGuardaiOS[490:96428] critical: 	1   libmonosgen-2.0.dylib               0x0040afc5 mono_sigsegv_signal_handler + 222
2016-10-26 12:56:01.005 AnjoDaGuardaiOS[490:96428] critical: 	2   libsystem_platform.dylib            0x1edff26d _sigtramp + 24
2016-10-26 12:56:01.006 AnjoDaGuardaiOS[490:96428] critical: 	3   libxamarin-debug.dylib              0x0018f540 _ZL21gc_toggleref_callbackP10MonoObject + 220
2016-10-26 12:56:01.006 AnjoDaGuardaiOS[490:96428] critical: 	4   libmonosgen-2.0.dylib               0x0047e1ff sgen_process_togglerefs + 110
2016-10-26 12:56:01.007 AnjoDaGuardaiOS[490:96428] critical: 	5   libmonosgen-2.0.dylib               0x0047c363 sgen_client_stop_world + 98
2016-10-26 12:56:01.007 AnjoDaGuardaiOS[490:96428] critical: 	6   libmonosgen-2.0.dylib               0x004945b1 sgen_stop_world + 80
2016-10-26 12:56:01.008 AnjoDaGuardaiOS[490:96428] critical: 	7   libmonosgen-2.0.dylib               0x004940d1 sgen_perform_collection + 120
2016-10-26 12:56:01.008 AnjoDaGuardaiOS[490:96428] critical: 	8   libmonosgen-2.0.dylib               0x00494047 sgen_ensure_free_space + 156
2016-10-26 12:56:01.008 AnjoDaGuardaiOS[490:96428] critical: 	9   libmonosgen-2.0.dylib               0x0048c8bd sgen_alloc_obj_nolock + 678
2016-10-26 12:56:01.008 AnjoDaGuardaiOS[490:96428] critical: 	10  libmonosgen-2.0.dylib               0x004760fb mono_gc_alloc_vector + 102
2016-10-26 12:56:01.009 AnjoDaGuardaiOS[490:96428] critical: 	11  libmscorlib.dll.dylib               0x00b3be3c wrapper_managed_to_native_object___icall_wrapper_mono_gc_alloc_vector_intptr_intptr_intptr + 108
2016-10-26 12:56:01.009 AnjoDaGuardaiOS[490:96428] critical: 	12  libmscorlib.dll.dylib               0x00b36e94 wrapper_alloc_object_AllocVector_intptr_intptr + 280
2016-10-26 12:56:01.009 AnjoDaGuardaiOS[490:96428] critical: 	13  libmscorlib.dll.dylib               0x009c0bac System_IO_StreamReader_Init_System_IO_Stream_System_Text_Encoding_bool_int_bool + 220
2016-10-26 12:56:01.009 AnjoDaGuardaiOS[490:96428] critical: 	14  libmscorlib.dll.dylib               0x009c0770 System_IO_StreamReader__ctor_System_IO_Stream_System_Text_Encoding_bool_int_bool + 216
2016-10-26 12:56:01.009 AnjoDaGuardaiOS[490:96428] critical: 	15  libmscorlib.dll.dylib               0x009c063c System_IO_StreamReader__ctor_System_IO_Stream_bool + 72
2016-10-26 12:56:01.009 AnjoDaGuardaiOS[490:96428] critical: 	16  libmscorlib.dll.dylib               0x009c05e8 System_IO_StreamReader__ctor_System_IO_Stream + 40
2016-10-26 12:56:01.010 AnjoDaGuardaiOS[490:96428] critical: 	17  libAnjoDaGuardaiOS.exe.dylib        0x00728884 AnjoDaGuarda_GlobalMessages_GetMessage_string + 896
2016-10-26 12:56:01.010 AnjoDaGuardaiOS[490:96428] critical: 	18  libAnjoDaGuardaiOS.exe.dylib        0x00728ec4 AnjoDaGuarda_GlobalMessages_GetMessageUpperCase_string + 160
2016-10-26 12:56:01.010 AnjoDaGuardaiOS[490:96428] critical: 	19  libAnjoDaGuardaiOS.exe.dylib        0x006d5a90 AnjoDaGuarda_iOS_NovoMedicamentoViewController_CarregaMessages + 396
2016-10-26 12:56:01.010 AnjoDaGuardaiOS[490:96428] critical: 	20  libAnjoDaGuardaiOS.exe.dylib        0x006d4b8c AnjoDaGuarda_iOS_NovoMedicamentoViewController_ViewDidLoad + 204
2016-10-26 12:56:01.010 AnjoDaGuardaiOS[490:96428] critical: 	21  libmscorlib.dll.dylib               0x00b36ae8 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2016-10-26 12:56:01.011 AnjoDaGuardaiOS[490:96428] critical: 	22  libmonosgen-2.0.dylib               0x0040c9cb mono_jit_runtime_invoke + 1522
2016-10-26 12:56:01.011 AnjoDaGuardaiOS[490:96428] critical: 	23  libmonosgen-2.0.dylib               0x0046417f do_runtime_invoke + 78
2016-10-26 12:56:01.011 AnjoDaGuardaiOS[490:96428] critical: 	24  libmonosgen-2.0.dylib               0x00464115 mono_runtime_invoke + 138
2016-10-26 12:56:01.011 AnjoDaGuardaiOS[490:96428] critical: 	25  AnjoDaGuardaiOS                     0x000b1d9d _ZL30native_to_managed_trampoline_3P11objc_objectP13objc_selectorPP11_MonoMethodPKcS7_ + 192
2016-10-26 12:56:01.011 AnjoDaGuardaiOS[490:96428] critical: 	26  AnjoDaGuardaiOS                     0x000c31bd -[NovoMedicamentoViewController viewDidLoad] + 52
2016-10-26 12:56:01.011 AnjoDaGuardaiOS[490:96428] critical: 	27  UIKit                               0x245eb3b3 <redacted> + 1022
2016-10-26 12:56:01.012 AnjoDaGuardaiOS[490:96428] critical: 	28  UIKit                               0x24602d77 <redacted> + 122
2016-10-26 12:56:01.012 AnjoDaGuardaiOS[490:96428] critical: 	29  UIKit                               0x24789b5d <redacted> + 1098
2016-10-26 12:56:01.012 AnjoDaGuardaiOS[490:96428] critical: 	30  UIKit                               0x246a2107 <redacted> + 632
2016-10-26 12:56:01.012 AnjoDaGuardaiOS[490:96428] critical: 	31  UIKit                               0x246a1daf <redacted> + 50
2016-10-26 12:56:01.012 AnjoDaGuardaiOS[490:96428] critical: 	32  UIKit                               0x246a1d29 <redacted> + 196
2016-10-26 12:56:01.013 AnjoDaGuardaiOS[490:96428] critical: 	33  UIKit                               0x245e8865 <redacted> + 1290
2016-10-26 12:56:01.013 AnjoDaGuardaiOS[490:96428] critical: 	34  QuartzCore                          0x224143d9 <redacted> + 126
2016-10-26 12:56:01.013 AnjoDaGuardaiOS[490:96428] critical: 	35  QuartzCore                          0x224085ef <redacted> + 354
2016-10-26 12:56:01.013 AnjoDaGuardaiOS[490:96428] critical: 	36  QuartzCore                          0x2240847f <redacted> + 16
2016-10-26 12:56:01.013 AnjoDaGuardaiOS[490:96428] critical: 	37  QuartzCore                          0x22398f6b <redacted> + 370
2016-10-26 12:56:01.014 AnjoDaGuardaiOS[490:96428] critical: 	38  QuartzCore                          0x223b7535 <redacted> + 564
2016-10-26 12:56:01.014 AnjoDaGuardaiOS[490:96428] critical: 	39  UIKit                               0x2486ac0f <redacted> + 198
2016-10-26 12:56:01.014 AnjoDaGuardaiOS[490:96428] critical: 	40  UIKit                               0x24d85adf <redacted> + 1350
2016-10-26 12:56:01.014 AnjoDaGuardaiOS[490:96428] critical: 	41  CoreFoundation                      0x1f561c8b <redacted> + 12
2016-10-26 12:56:01.014 AnjoDaGuardaiOS[490:96428] critical: 	42  CoreFoundation                      0x1f561795 <redacted> + 438
2016-10-26 12:56:01.014 AnjoDaGuardaiOS[490:96428] critical: 	43  CoreFoundation                      0x1f55fa6b <redacted> + 762
2016-10-26 12:56:01.015 AnjoDaGuardaiOS[490:96428] critical: 	44  CoreFoundation                      0x1f4af073 CFRunLoopRunSpecific + 486
2016-10-26 12:56:01.015 AnjoDaGuardaiOS[490:96428] critical: 	45  CoreFoundation                      0x1f4aee81 CFRunLoopRunInMode + 104
2016-10-26 12:56:01.015 AnjoDaGuardaiOS[490:96428] critical: 	46  GraphicsServices                    0x20c57bfd GSEventRunModal + 156
2016-10-26 12:56:01.015 AnjoDaGuardaiOS[490:96428] critical: 	47  UIKit                               0x24656acf <redacted> + 574
2016-10-26 12:56:01.015 AnjoDaGuardaiOS[490:96428] critical: 	48  UIKit                               0x24651201 UIApplicationMain + 150
2016-10-26 12:56:01.016 AnjoDaGuardaiOS[490:96428] critical: 	49  libXamarin.iOS.dll.dylib            0x01d258ec wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 272
2016-10-26 12:56:01.016 AnjoDaGuardaiOS[490:96428] critical: 	50  libXamarin.iOS.dll.dylib            0x01cae720 UIKit_UIApplication_Main_string___intptr_intptr + 52
2016-10-26 12:56:01.016 AnjoDaGuardaiOS[490:96428] critical: 	51  libXamarin.iOS.dll.dylib            0x01cae6e0 UIKit_UIApplication_Main_string___string_string + 204
2016-10-26 12:56:01.016 AnjoDaGuardaiOS[490:96428] critical: 	52  libAnjoDaGuardaiOS.exe.dylib        0x00656f8c AnjoDaGuarda_iOS_Application_Main_string__ + 188
2016-10-26 12:56:01.016 AnjoDaGuardaiOS[490:96428] critical: 	53  libmscorlib.dll.dylib               0x00b36ae8 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2016-10-26 12:56:01.016 AnjoDaGuardaiOS[490:96428] critical: 	54  libmonosgen-2.0.dylib               0x0040c9cb mono_jit_runtime_invoke + 1522
2016-10-26 12:56:01.017 AnjoDaGuardaiOS[490:96428] critical: 	55  libmonosgen-2.0.dylib               0x0046417f do_runtime_invoke + 78
2016-10-26 12:56:01.017 AnjoDaGuardaiOS[490:96428] critical: 	56  libmonosgen-2.0.dylib               0x00465d4d mono_runtime_exec_main + 612
2016-10-26 12:56:01.017 AnjoDaGuardaiOS[490:96428] critical: 	57  libmonosgen-2.0.dylib               0x00465a37 mono_runtime_run_main + 630
2016-10-26 12:56:01.017 AnjoDaGuardaiOS[490:96428] critical: 	58  libmonosgen-2.0.dylib               0x003f7089 mono_jit_exec + 162
2016-10-26 12:56:01.017 AnjoDaGuardaiOS[490:96428] critical: 	59  libxamarin-debug.dylib              0x0019c40c xamarin_main + 2508
2016-10-26 12:56:01.018 AnjoDaGuardaiOS[490:96428] critical: 	60  AnjoDaGuardaiOS                     0x000d2517 main + 112
2016-10-26 12:56:01.018 AnjoDaGuardaiOS[490:96428] critical: 	61  libdyld.dylib                       0x1ec7a50b <redacted> + 2
2016-10-26 12:56:01.018 AnjoDaGuardaiOS[490:96428] critical: 
=================================================================
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.
=================================================================

I was watching and have discovered that after I give this comand:
 this.NavigationController.PopViewController(true);
the viewcontroller is poped, but this threads:

3 System.Threading.WaitOne_Internal
7 <>Thread Pool>

Still alive.

Sny idea guys?
Comment 1 Vincent Dondain [MSFT] 2016-10-27 12:55:55 UTC
Hi Isaac,

The stack trace alone doesn't ring a bell to me, I'd have to look at the code / debug it to be able to help you.

Is there a chance you can give us a test case? Either the original code or a small sample to reproduce the issue.

Also we'd need all version informations.

The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).
Comment 2 Vincent Dondain [MSFT] 2016-12-22 16:42:44 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!