Bug 43476 - Segmentation fault when leaving Content Page that has a carousel view iOS 8.1
Summary: Segmentation fault when leaving Content Page that has a carousel view iOS 8.1
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.1
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-17 16:46 UTC by AndyB
Modified: 2017-06-27 00:34 UTC (History)
7 users (show)

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


Attachments
Carousel View Crash in Zip (33.78 KB, application/zip)
2016-08-17 16:46 UTC, AndyB
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 FIXED

Description AndyB 2016-08-17 16:46:57 UTC
Created attachment 17086 [details]
Carousel View Crash in Zip

Sample project attached. Unzip then restore the packages for all projects.

Seg Fault occurs on iOS 8.1 on the iPhone. Does not occur on iOS 9.3.

I ran this sample project on the iPhone 6 8.1 Simulator as well as on a real device iPhone 4s 8.1.2.  

To reproduce on the Simulator using the sample project:
 - Navigate back and forth(by tapping on the buttons) between the pink background content page and the carousel view content page 11 times(basically pressing 'Go to Carousel Page' 11 times).

To reproduce on the real device that has iOS 8.1.2 using the sample project:
 - Navigate back and forth(by tapping on the buttons) between the pink background content page and the carousel view content page > 7 times(the amount of times changes after each time running. One time it took 8 times, the other time it took 14 times)

Output after running on 8.1 Simulator:

2016-08-17 09:22:26.616 CarouselViewCrash.iOS[47552:2175382] critical: Stacktrace:

2016-08-17 09:22:26.620 CarouselViewCrash.iOS[47552:2175382] critical:   at <unknown> <0xffffffff>
2016-08-17 09:22:26.621 CarouselViewCrash.iOS[47552:2175382] critical:   at (wrapper managed-to-native) Foundation.NSObject.xamarin_release_managed_ref (intptr,intptr) <0x00012>
2016-08-17 09:22:26.631 CarouselViewCrash.iOS[47552:2175382] critical:   at Foundation.NSObject.ReleaseManagedRef () [0x00000] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/Foundation/NSObject2.cs:200
2016-08-17 09:22:26.632 CarouselViewCrash.iOS[47552:2175382] critical:   at Foundation.NSObject/NSObject_Disposer.Drain (Foundation.NSObject) [0x00062] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/Foundation/NSObject2.cs:780
2016-08-17 09:22:26.632 CarouselViewCrash.iOS[47552:2175382] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00051, 0x001d2>
2016-08-17 09:22:26.632 CarouselViewCrash.iOS[47552:2175382] critical:   at <unknown> <0xffffffff>
2016-08-17 09:22:26.632 CarouselViewCrash.iOS[47552:2175382] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00012>
2016-08-17 09:22:26.633 CarouselViewCrash.iOS[47552:2175382] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/UIKit/UIApplication.cs:79
2016-08-17 09:22:26.633 CarouselViewCrash.iOS[47552:2175382] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/UIKit/UIApplication.cs:63
2016-08-17 09:22:26.633 CarouselViewCrash.iOS[47552:2175382] critical:   at CarouselViewCrash.iOS.Application.Main (string[]) [0x00008] in /Users/andressbarajas/Projects/CarouselViewCrash/iOS/Main.cs:17
2016-08-17 09:22:26.633 CarouselViewCrash.iOS[47552:2175382] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00051, 0x001d2>
2016-08-17 09:22:26.634 CarouselViewCrash.iOS[47552:2175382] critical: 
Native stacktrace:

2016-08-17 09:22:26.634 CarouselViewCrash.iOS[47552:2175382] 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.
=================================================================

------------------------------------------------------------------------------------------------------------------

Output after running on 8.1.2 device:


2016-08-17 09:35:30.149 CarouselViewCrash.iOS[542:115617] critical: Stacktrace:

2016-08-17 09:35:30.150 CarouselViewCrash.iOS[542:115617] critical:   at <unknown> <0xffffffff>
2016-08-17 09:35:30.153 CarouselViewCrash.iOS[542:115617] critical:   at (wrapper managed-to-native) Foundation.NSObject.xamarin_release_managed_ref (intptr,intptr) <0x00043>
2016-08-17 09:35:30.157 CarouselViewCrash.iOS[542:115617] critical:   at Foundation.NSObject.ReleaseManagedRef () [0x00000] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/Foundation/NSObject2.cs:200
2016-08-17 09:35:30.159 CarouselViewCrash.iOS[542:115617] critical:   at Foundation.NSObject/NSObject_Disposer.Drain (Foundation.NSObject) [0x00062] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/Foundation/NSObject2.cs:780
2016-08-17 09:35:30.163 CarouselViewCrash.iOS[542:115617] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000ff>
2016-08-17 09:35:30.165 CarouselViewCrash.iOS[542:115617] critical:   at <unknown> <0xffffffff>
2016-08-17 09:35:30.165 CarouselViewCrash.iOS[542:115617] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x0004f>
2016-08-17 09:35:30.168 CarouselViewCrash.iOS[542:115617] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/UIKit/UIApplication.cs:79
2016-08-17 09:35:30.170 CarouselViewCrash.iOS[542:115617] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x0001c] in /Users/builder/data/lanes/3539/f37444ae/source/maccore/src/UIKit/UIApplication.cs:62
2016-08-17 09:35:30.172 CarouselViewCrash.iOS[542:115617] critical:   at CarouselViewCrash.iOS.Application.Main (string[]) [0x00008] in /Users/andressbarajas/Projects/CarouselViewCrash/iOS/Main.cs:17
2016-08-17 09:35:30.172 CarouselViewCrash.iOS[542:115617] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000ff>
2016-08-17 09:35:30.173 CarouselViewCrash.iOS[542:115617] critical: 
Native stacktrace:

2016-08-17 09:35:30.375 CarouselViewCrash.iOS[542:115617] critical: 	0   libmonosgen-2.0.dylib               0x00298201 mono_handle_native_sigsegv + 240
2016-08-17 09:35:30.377 CarouselViewCrash.iOS[542:115617] critical: 	1   libmonosgen-2.0.dylib               0x002a0433 mono_sigsegv_signal_handler + 222
2016-08-17 09:35:30.379 CarouselViewCrash.iOS[542:115617] critical: 	2   libsystem_platform.dylib            0x342370a3 _sigtramp + 42
2016-08-17 09:35:30.380 CarouselViewCrash.iOS[542:115617] critical: 	3   UIKit                               0x298fdd17 <redacted> + 38
2016-08-17 09:35:30.381 CarouselViewCrash.iOS[542:115617] critical: 	4   libxamarin-debug.dylib              0x004ef0a0 xamarin_invoke_objc_method_implementation + 68
2016-08-17 09:35:30.381 CarouselViewCrash.iOS[542:115617] critical: 	5   libxamarin-debug.dylib              0x004ef260 xamarin_release_trampoline + 232
2016-08-17 09:35:30.382 CarouselViewCrash.iOS[542:115617] critical: 	6   CarouselViewCrash.iOS               0x000e1d59 -[Xamarin_Forms_Platform_CarouselViewController release] + 18
2016-08-17 09:35:30.383 CarouselViewCrash.iOS[542:115617] critical: 	7   libxamarin-debug.dylib              0x004edd50 xamarin_release_managed_ref + 192
2016-08-17 09:35:30.384 CarouselViewCrash.iOS[542:115617] critical: 	8   libXamarin.iOS.dll.dylib            0x005e9744 wrapper_managed_to_native_Foundation_NSObject_xamarin_release_managed_ref_intptr_intptr + 80
2016-08-17 09:35:30.384 CarouselViewCrash.iOS[542:115617] critical: 	9   libXamarin.iOS.dll.dylib            0x00584d54 Foundation_NSObject_ReleaseManagedRef + 48
2016-08-17 09:35:30.385 CarouselViewCrash.iOS[542:115617] critical: 	10  libXamarin.iOS.dll.dylib            0x00586fcc Foundation_NSObject_NSObject_Disposer_Drain_Foundation_NSObject + 408
2016-08-17 09:35:30.386 CarouselViewCrash.iOS[542:115617] critical: 	11  libmscorlib.dll.dylib               0x00a0cf30 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2016-08-17 09:35:30.387 CarouselViewCrash.iOS[542:115617] critical: 	12  libmonosgen-2.0.dylib               0x002a1e3b mono_jit_runtime_invoke + 1562
2016-08-17 09:35:30.387 CarouselViewCrash.iOS[542:115617] critical: 	13  libmonosgen-2.0.dylib               0x002f54ab mono_runtime_invoke + 102
2016-08-17 09:35:30.388 CarouselViewCrash.iOS[542:115617] critical: 	14  CarouselViewCrash.iOS               0x000d39b7 _ZL31native_to_managed_trampoline_47P11objc_objectP13objc_selectorPP11_MonoMethodP8NSObjectPKcS9_S9_ + 238
2016-08-17 09:35:30.389 CarouselViewCrash.iOS[542:115617] critical: 	15  CarouselViewCrash.iOS               0x000d38c5 +[__NSObject_Disposer drain:] + 80
2016-08-17 09:35:30.390 CarouselViewCrash.iOS[542:115617] critical: 	16  Foundation                          0x26ffcbaf <redacted> + 386
2016-08-17 09:35:30.390 CarouselViewCrash.iOS[542:115617] critical: 	17  CoreFoundation                      0x262affd7 <redacted> + 14
2016-08-17 09:35:30.391 CarouselViewCrash.iOS[542:115617] critical: 	18  CoreFoundation                      0x262af3eb <redacted> + 222
2016-08-17 09:35:30.392 CarouselViewCrash.iOS[542:115617] critical: 	19  CoreFoundation                      0x262ada69 <redacted> + 768
2016-08-17 09:35:30.393 CarouselViewCrash.iOS[542:115617] critical: 	20  CoreFoundation                      0x261fab31 CFRunLoopRunSpecific + 476
2016-08-17 09:35:30.394 CarouselViewCrash.iOS[542:115617] critical: 	21  CoreFoundation                      0x261fa943 CFRunLoopRunInMode + 106
2016-08-17 09:35:30.395 CarouselViewCrash.iOS[542:115617] critical: 	22  GraphicsServices                    0x2d5da051 GSEventRunModal + 136
2016-08-17 09:35:30.396 CarouselViewCrash.iOS[542:115617] critical: 	23  UIKit                               0x297f06f1 UIApplicationMain + 1440
2016-08-17 09:35:30.397 CarouselViewCrash.iOS[542:115617] critical: 	24  libXamarin.iOS.dll.dylib            0x005e852c wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 252
2016-08-17 09:35:30.398 CarouselViewCrash.iOS[542:115617] critical: 	25  libXamarin.iOS.dll.dylib            0x0054dd68 UIKit_UIApplication_Main_string___intptr_intptr + 52
2016-08-17 09:35:30.399 CarouselViewCrash.iOS[542:115617] critical: 	26  libXamarin.iOS.dll.dylib            0x0054dd28 UIKit_UIApplication_Main_string___string_string + 204
2016-08-17 09:35:30.400 CarouselViewCrash.iOS[542:115617] critical: 	27  libCarouselViewCrash.iOS.exe.dylib  0x00537bfc CarouselViewCrash_iOS_Application_Main_string__ + 188
2016-08-17 09:35:30.401 CarouselViewCrash.iOS[542:115617] critical: 	28  libmscorlib.dll.dylib               0x00a0cf30 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
2016-08-17 09:35:30.402 CarouselViewCrash.iOS[542:115617] critical: 	29  libmonosgen-2.0.dylib               0x002a1e3b mono_jit_runtime_invoke + 1562
2016-08-17 09:35:30.403 CarouselViewCrash.iOS[542:115617] critical: 	30  libmonosgen-2.0.dylib               0x002f54ab mono_runtime_invoke + 102
2016-08-17 09:35:30.404 CarouselViewCrash.iOS[542:115617] critical: 	31  libmonosgen-2.0.dylib               0x002f8ce5 mono_runtime_exec_main + 284
2016-08-17 09:35:30.404 CarouselViewCrash.iOS[542:115617] critical: 	32  libxamarin-debug.dylib              0x005073f8 xamarin_main + 2232
2016-08-17 09:35:30.405 CarouselViewCrash.iOS[542:115617] critical: 	33  CarouselViewCrash.iOS               0x000e4baf main + 112
2016-08-17 09:35:30.406 CarouselViewCrash.iOS[542:115617] critical: 	34  libdyld.dylib                       0x340f7aaf <redacted> + 2
2016-08-17 09:35:30.407 CarouselViewCrash.iOS[542:115617] 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.
=================================================================
Comment 2 Paul DiPietro [MSFT] 2016-12-09 21:13:51 UTC
Mistakenly closed.
Comment 3 Frank Schwieterman 2017-06-07 22:42:50 UTC
+1
Comment 4 Samantha Houts [MSFT] 2017-06-20 19:32:10 UTC
This issue is not present in the newly proposed version of CarouselView. Closing this issue. Thank you!
	
https://github.com/xamarin/Xamarin.Forms/pull/853
Comment 5 gerritb99 2017-06-26 18:32:38 UTC
Any idea when this will get released?
Comment 6 Frank Schwieterman 2017-06-26 22:09:34 UTC
Gerrit I would switch over to https://github.com/alexrainman/CarouselView, that is the carousel implementation that they're trying to pull into xamarin forms.
Comment 7 gerritb99 2017-06-27 00:34:37 UTC
Thanks Frank. I'll be sure to check it out