Bug 60563 - ActivityIndicator in ListView causes SIGSEGV crash in iOS 8
Summary: ActivityIndicator in ListView causes SIGSEGV crash in iOS 8
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.4.0
Hardware: Macintosh Other
: Normal normal
Target Milestone: ---
Assignee: Samantha Houts [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-11-08 05:16 UTC by Franz
Modified: 2017-11-29 19:30 UTC (History)
4 users (show)

Tags: ac ios listview activityindicator ios8 fr
Is this bug a regression?: Yes
Last known good build:


Attachments
Xamarin Forms project which demonstrates the error. (14.01 KB, application/zip)
2017-11-08 05:18 UTC, Franz
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 Franz 2017-11-08 05:16:42 UTC
I've observed a Xamarin Forms app crash on iOS when navigating backwards from a page that shows a ListView whose cells include ActivityIndicators. The crash occurs on iOS 8 (later OS versions seem to be fine).

In the attached Xamarin Forms project, the crash can be reproduced as follows:

1. Run the app on iOS 8 (in my case on a iPhone 5 iOS 8.4 simulator).

2. On the start page, tap on the "Go To List" button --> a new page with a list is displayed; each cell in the list contains an ActivityIndicator.

3. Navigate backwards by tapping on "Home" at the top --> the app crashes with log output as follows:

2017-11-08 15:59:37.440 ActivityIndicatorError.iOS[3199:340580] critical: Stacktrace:

2017-11-08 15:59:37.441 ActivityIndicatorError.iOS[3199:340580] critical:   at <unknown> <0xffffffff>
2017-11-08 15:59:37.441 ActivityIndicatorError.iOS[3199:340580] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00015>
2017-11-08 15:59:37.441 ActivityIndicatorError.iOS[3199:340580] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/5481/2f8bbec0/source/xamarin-macios/src/UIKit/UIApplication.cs:79
2017-11-08 15:59:37.442 ActivityIndicatorError.iOS[3199:340580] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/5481/2f8bbec0/source/xamarin-macios/src/UIKit/UIApplication.cs:63
2017-11-08 15:59:37.442 ActivityIndicatorError.iOS[3199:340580] critical:   at ActivityIndicatorError.iOS.Application.Main (string[]) [0x00001] in /Users/admin/Projects/ActivityIndicatorError/iOS/Main.cs:17
2017-11-08 15:59:37.442 ActivityIndicatorError.iOS[3199:340580] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x00051] in <bcf6dec41a0240d8b54a6f624238dd1f>:0
2017-11-08 15:59:37.442 ActivityIndicatorError.iOS[3199:340580] critical: 
Native stacktrace:

2017-11-08 15:59:37.455 ActivityIndicatorError.iOS[3199:340580] critical: 	0   ActivityIndicatorError.iOS          0x001a018f mono_handle_native_crash + 239
2017-11-08 15:59:37.455 ActivityIndicatorError.iOS[3199:340580] critical: 	1   ActivityIndicatorError.iOS          0x001ac475 mono_sigsegv_signal_handler + 293
2017-11-08 15:59:37.456 ActivityIndicatorError.iOS[3199:340580] critical: 	2   libsystem_platform.dylib            0x03db3e5b _sigtramp + 43
2017-11-08 15:59:37.456 ActivityIndicatorError.iOS[3199:340580] critical: 	3   ???                                 0xffffffff 0x0 + 4294967295
2017-11-08 15:59:37.456 ActivityIndicatorError.iOS[3199:340580] critical: 	4   UIKit                               0x00a4b6a9 -[UIActivityIndicatorView stopAnimating] + 35
2017-11-08 15:59:37.456 ActivityIndicatorError.iOS[3199:340580] critical: 	5   UIKit                               0x00a4ae1e -[UIActivityIndicatorView dealloc] + 82
2017-11-08 15:59:37.456 ActivityIndicatorError.iOS[3199:340580] critical: 	6   UIKit                               0x00728793 -[UIView release] + 89
2017-11-08 15:59:37.456 ActivityIndicatorError.iOS[3199:340580] critical: 	7   CoreFoundation                      0x02940d17 CFRelease + 743
2017-11-08 15:59:37.456 ActivityIndicatorError.iOS[3199:340580] critical: 	8   CoreFoundation                      0x02956cce -[__NSArrayM dealloc] + 142
2017-11-08 15:59:37.457 ActivityIndicatorError.iOS[3199:340580] critical: 	9   libobjc.A.dylib                     0x0332c772 _ZN11objc_object17sidetable_releaseEb + 248
2017-11-08 15:59:37.457 ActivityIndicatorError.iOS[3199:340580] critical: 	10  libobjc.A.dylib                     0x0332be9b objc_release + 43
2017-11-08 15:59:37.457 ActivityIndicatorError.iOS[3199:340580] critical: 	11  libobjc.A.dylib                     0x0332cd32 _ZN12_GLOBAL__N_119AutoreleasePoolPage3popEPv + 586
2017-11-08 15:59:37.457 ActivityIndicatorError.iOS[3199:340580] critical: 	12  CoreFoundation                      0x02962758 _CFAutoreleasePoolPop + 24
2017-11-08 15:59:37.457 ActivityIndicatorError.iOS[3199:340580] critical: 	13  Foundation                          0x01f375ca __NSThreadPerformPerform + 556
2017-11-08 15:59:37.457 ActivityIndicatorError.iOS[3199:340580] critical: 	14  CoreFoundation                      0x029a406f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
2017-11-08 15:59:37.457 ActivityIndicatorError.iOS[3199:340580] critical: 	15  CoreFoundation                      0x02999b7d __CFRunLoopDoSources0 + 253
2017-11-08 15:59:37.458 ActivityIndicatorError.iOS[3199:340580] critical: 	16  CoreFoundation                      0x029990d8 __CFRunLoopRun + 952
2017-11-08 15:59:37.458 ActivityIndicatorError.iOS[3199:340580] critical: 	17  CoreFoundation                      0x02998a5b CFRunLoopRunSpecific + 443
2017-11-08 15:59:37.460 ActivityIndicatorError.iOS[3199:340580] critical: 	18  CoreFoundation                      0x0299888b CFRunLoopRunInMode + 123
2017-11-08 15:59:37.462 ActivityIndicatorError.iOS[3199:340580] critical: 	19  GraphicsServices                    0x048232c9 GSEventRunModal + 192
2017-11-08 15:59:37.462 ActivityIndicatorError.iOS[3199:340580] critical: 	20  GraphicsServices                    0x04823106 GSEventRun + 104
2017-11-08 15:59:37.464 ActivityIndicatorError.iOS[3199:340580] critical: 	21  UIKit                               0x006b80b6 UIApplicationMain + 1526
2017-11-08 15:59:37.465 ActivityIndicatorError.iOS[3199:340580] critical: 	22  ???                                 0x0dcdfbd0 0x0 + 231603152
2017-11-08 15:59:37.465 ActivityIndicatorError.iOS[3199:340580] critical: 	23  ???                                 0x0dcdf990 0x0 + 231602576
2017-11-08 15:59:37.465 ActivityIndicatorError.iOS[3199:340580] critical: 	24  ???                                 0x0dcdd4b4 0x0 + 231593140
2017-11-08 15:59:37.466 ActivityIndicatorError.iOS[3199:340580] critical: 	25  ???                                 0x0dcdd240 0x0 + 231592512
2017-11-08 15:59:37.466 ActivityIndicatorError.iOS[3199:340580] critical: 	26  ???                                 0x0dcdd347 0x0 + 231592775
2017-11-08 15:59:37.467 ActivityIndicatorError.iOS[3199:340580] critical: 	27  ActivityIndicatorError.iOS          0x001af2de mono_jit_runtime_invoke + 638
2017-11-08 15:59:37.467 ActivityIndicatorError.iOS[3199:340580] critical: 	28  ActivityIndicatorError.iOS          0x00279c81 do_runtime_invoke + 81
2017-11-08 15:59:37.467 ActivityIndicatorError.iOS[3199:340580] critical: 	29  ActivityIndicatorError.iOS          0x0027c71c do_exec_main_checked + 124
2017-11-08 15:59:37.468 ActivityIndicatorError.iOS[3199:340580] critical: 	30  ActivityIndicatorError.iOS          0x0027b8e5 mono_runtime_run_main_checked + 69
2017-11-08 15:59:37.468 ActivityIndicatorError.iOS[3199:340580] critical: 	31  ActivityIndicatorError.iOS          0x0013feba mono_jit_exec + 314
2017-11-08 15:59:37.468 ActivityIndicatorError.iOS[3199:340580] critical: 	32  ActivityIndicatorError.iOS          0x003547c6 xamarin_main + 3526
2017-11-08 15:59:37.469 ActivityIndicatorError.iOS[3199:340580] critical: 	33  ActivityIndicatorError.iOS          0x000fc7c1 main + 113
2017-11-08 15:59:37.469 ActivityIndicatorError.iOS[3199:340580] critical: 	34  libdyld.dylib                       0x03aa7ac9 start + 1
2017-11-08 15:59:37.469 ActivityIndicatorError.iOS[3199:340580] 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 1 Franz 2017-11-08 05:18:43 UTC
Created attachment 25599 [details]
Xamarin Forms project which demonstrates the error.
Comment 2 Samantha Houts [MSFT] 2017-11-10 23:48:33 UTC
Confirmed on iPhone 6 8.4 sim.

2.4.0.38779:         BAD
2.3.4.270:           Good
Comment 3 Samantha Houts [MSFT] 2017-11-28 19:05:36 UTC
https://github.com/xamarin/Xamarin.Forms/pull/1307
Comment 4 Rui Marinho 2017-11-29 19:30:39 UTC
Should be fixed on 2.5.0-sr3