Bug 41209 - [iOS] Application crashes when carousel page changes (during animation?)
Summary: [iOS] Application crashes when carousel page changes (during animation?)
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.2.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-05-20 10:58 UTC by Martijn Lentink
Modified: 2017-05-01 10:10 UTC (History)
4 users (show)

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


Attachments
The reproduction of the bug (12.68 KB, application/zip)
2016-05-20 10:58 UTC, Martijn Lentink
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 NOT_REPRODUCIBLE

Description Martijn Lentink 2016-05-20 10:58:43 UTC
Created attachment 16050 [details]
The reproduction of the bug

Hi there,

I came across the following bug that is related to the ScaleTo animation method. It occurred when I had a CarouselPage that contained an animating view. I think the bug has to do with the disposal of the ContentPage.

*Steps to reproduce*

1) Start the application (see attached archive file)
2) Keep clicking next until the crash occurs (this may take around 30 clicks max)
3) Observe the following exception;

critical:   at <unknown> <0xffffffff>
critical:   at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_CATransform3D (intptr,intptr,CoreAnimation.CATransform3D) <IL 0x00029, 0xffffffff>
critical:   at CoreAnimation.CALayer.set_Transform (CoreAnimation.CATransform3D) [0x0000b] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/src/build/ios/native/CoreAnimation/CALayer.g.cs:2305
critical:   at Xamarin.Forms.Platform.iOS.VisualElementTracker/<>c__DisplayClass23_0.<OnUpdateNativeControl>b__0 () <IL 0x003ca, 0x00edb>
critical:   at Xamarin.Forms.Platform.iOS.CADisplayLinkTicker.StartThread () <IL 0x0001e, 0x00091>
critical:   at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00017] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/thread.cs:68
critical:   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00081] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:581
critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:530
critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x00031] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:519
critical:   at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in /Users/builder/data/lanes/3051/5f11db87/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/thread.cs:105
critical:   at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x00056, 0xffffffff>
critical: 

Thanks in advance!

Martijn
Comment 1 Rui Marinho 2016-08-04 15:51:02 UTC
Thank you for taking the time to submit the bug. 
We tried to reproduce the issue you reported but were unable given the attachment.

Warm regards, 
Xamarin Forms Team
Comment 2 Masahiko Miyasaka 2016-09-29 10:05:41 UTC
I encountered similar problem.
My page that raises this issue has original carousel view which contains 4 ListView.
Some ListView has ViewCell with Image and some Views.
When swiping rapidly and repeatedly,it occurs sometime.

StackTrace is like below.



2016-09-29 18:49:24.742 _HSAppiOS[24808:9055347] critical: Stacktrace:
2016-09-29 18:49:24.742 _HSAppiOS[24808:9055347] critical:   at <unknown> <0xffffffff>
2016-09-29 18:49:24.744 _HSAppiOS[24808:9055347] critical:   at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_CATransform3D (intptr,intptr,CoreAnimation.CATransform3D) <0x00007>
2016-09-29 18:49:24.745 _HSAppiOS[24808:9055347] critical:   at CoreAnimation.CALayer.set_Transform (CoreAnimation.CATransform3D) [0x00003] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/src/build/ios/native/CoreAnimation/CALayer.g.cs:2281
2016-09-29 18:49:24.746 _HSAppiOS[24808:9055347] critical:   at Xamarin.Forms.Platform.iOS.VisualElementTracker/<>c__DisplayClass23_0.<OnUpdateNativeControl>b__0 () [0x003c3] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.iOS\VisualElementTracker.cs:210
2016-09-29 18:49:24.747 _HSAppiOS[24808:9055347] critical:   at Xamarin.Forms.Platform.iOS.CADisplayLinkTicker.StartThread () [0x00025] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.iOS\CADisplayLinkTicker.cs:67
2016-09-29 18:49:24.749 _HSAppiOS[24808:9055347] critical:   at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00017] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/threading/thread.cs:68
2016-09-29 18:49:24.749 _HSAppiOS[24808:9055347] critical:   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x0008d] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:957
2016-09-29 18:49:24.749 _HSAppiOS[24808:9055347] critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/_ios-build/Li
brary/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:904
2016-09-29 18:49:24.749 _HSAppiOS[24808:9055347] critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x00031] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:893
2016-09-29 18:49:24.750 _HSAppiOS[24808:9055347] critical:   at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/referencesource/mscorlib/system/threading/thread.cs:105
2016-09-29 18:49:24.750 _HSAppiOS[24808:9055347] critical:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0x000f3>
2
016-09-29 18:49:24.750 _HSAppiOS[24808:9055347] critical: 
Native stacktrace:


2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical: 	0   _HSAppiOS                           0x00000001001c24e8 mono_handle_native_sigsegv + 260
2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical: 	1   _HSAppiOS                           0x00000001001cd9f0 mono_sigsegv_signal_handler + 336
2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical: 	2   libsystem_platform.dylib            0x0000000182e5d94c _sigtramp + 68
2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical: 	3   UIKit                               0x0000000188665bdc <redacted> + 824
2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical: 	4   UIKit                               0x0000000188399740 <redacted> + 80
2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical: 	5   UIKit                               0x0000000188358c50 <redacted> + 120
2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical: 	6   UIKit                               0x0000000188b33c1c <redacted> + 124
2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical: 	7   QuartzCore                          0x0000000185ce9f2c <redacted> + 100
2016-09-29 18:49:25.115 _HSAppiOS[24808:9055347] critical:
 	8   QuartzCore                          0x0000000185cdf400 <redacted> + 96
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	9   QuartzCore                          0x0000000185cdf270 <redacted> + 172
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	10  QuartzCore                          0x0000000185ce2360 <redacted> + 160
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	11  _HSAppiOS                           0x0000000101199a14 wrapper_managed_to_native_ObjCRuntime_Messaging_void_objc_msgSend_CATransform3D_intptr_intptr_CoreAnimation_CATransform3D + 244
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	12  _HSAppiOS                           0x000000010113ad70 CoreAnimation_CALayer_set_Transform_CoreAnimation_CATransform3D + 176
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	13  _HSAppiOS                           0x00000001010452e4 Xamarin_Forms_Platform_iOS_VisualElementTracker__c__DisplayClass23_0__OnUpdateNativeControlb__0 + 5140
2016-09-29 18:49:
25.116 _HSAppiOS[24808:9055347] critical: 	14  _HSAppiOS                           0x000000010103787c Xamarin_Forms_Platform_iOS_CADisplayLinkTicker_StartThread + 332
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	15  _HSAppiOS                           0x000000010044c170 System_Threading_ThreadHelper_ThreadStart_Context_object + 192
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	16  _HSAppiOS                           0x000000010044a38c System_Threading_ExecutionContext_RunInternal_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 428
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	17  _HSAppiOS                           0x000000010044a1cc System_Threading_ExecutionContext_Run_System_Threading_ExecutionContext_System_Threading_ContextCallback_object_bool + 44
2016-09-29 18:49:25.116 _HSAppiOS[24808:9055347] critical: 	18  _HSAppiOS                           0x000000010044a144 System_Threading_ExecutionContext_Run_System_Threading_ExecutionC
ontext_System_Threading_ContextCallback_object + 84
2016-09-29 18:49:25.117 _HSAppiOS[24808:9055347] critical: 	19  _HSAppiOS                           0x000000010044c2c4 System_Threading_ThreadHelper_ThreadStart + 52
2016-09-29 18:49:25.117 _HSAppiOS[24808:9055347] critical: 	20  _HSAppiOS                           0x0000000100587d44 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
2016-09-29 18:49:25.117 _HSAppiOS[24808:9055347] critical: 	21  _HSAppiOS                           0x00000001001d09b8 mono_jit_runtime_invoke + 1772
2016-09-29 18:49:25.117 _HSAppiOS[24808:9055347] critical: 	22  _HSAppiOS                           0x000000010023f9ec do_runtime_invoke + 112
2016-09-29 18:49:25.117 _HSAppiOS[24808:9055347] critical: 	23  _HSAppiOS                           0x00000001002725bc start_wrapper + 636
2016-09-29 18:49:25.117 _HSAppiOS[24808:9055347] critical: 	24  _HSAppiOS                           0x00000001002c4a50 inner_start_thread + 360
2016-09-29 18:49:25.117 
_HSAppiOS[24808:9055347] critical: 	25  libsystem_pthread.dylib             0x0000000182e63b28 <redacted> + 156
2016-09-29 18:49:25.117 _HSAppiOS[24808:9055347] critical: 	26  libsystem_pthread.dylib             0x0000000182e63a8c <redacted> + 0
2016-09-29 18:49:25.117 _HSAppiOS[24808:9055347] critical: 	27  libsystem_pthread.dylib             0x0000000182e61028 thread_start + 4
2016-09-29 18:49:25.118 _HSAppiOS[24808:9055347] 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.
=================================================================
The app has been terminated.
Comment 3 Bright Lee 2017-05-01 10:10:34 UTC
had a exactly same issue