Bug 58700 - Foundation.MonoTouchException: Objective-C exception thrown. Name: CALayerInvalidGeometry Reason: CALayer position contains NaN: [nan -0.5]
Summary: Foundation.MonoTouchException: Objective-C exception thrown. Name: CALayerIn...
Status: RESOLVED UPSTREAM
Alias: None
Product: iOS
Classification: Xamarin
Component: Mono runtime / AOT compiler ()
Version: unspecified
Hardware: PC Windows
: High critical
Target Milestone: Untriaged
Assignee: Zoltan Varga
URL:
Depends on:
Blocks:
 
Reported: 2017-08-10 15:10 UTC by Sid Dubey
Modified: 2017-09-20 10:39 UTC (History)
5 users (show)

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


Attachments
Sample Repro Project (172.96 KB, application/x-zip-compressed)
2017-08-10 15:10 UTC, Sid Dubey
Details
Crash Log (24.36 KB, text/plain)
2017-08-10 15:15 UTC, Sid Dubey
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 UPSTREAM

Description Sid Dubey 2017-08-10 15:10:23 UTC
Created attachment 24127 [details]
Sample Repro Project

AT IPHONE (ALL MODELS) have a screen with WebView to play a YouTube Video, when played video theapp crash with following error:

Unhandled Exception:

Foundation.MonoTouchException: Objective-C exception thrown.  Name: CALayerInvalidGeometry Reason: CALayer position contains NaN: [nan -0.5]
Native stack trace:
	0   CoreFoundation                      0x0000000104eddb0b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000010fab9141 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000104f46625 +[NSException raise:format:] + 197
	3   QuartzCore                          0x00000001124920be _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152
	4   QuartzCore                          0x0000000112492231 -[CALayer setPosition:] + 43
	5   QuartzCore                          0x0000000112492851 -[CALayer setFrame:] + 610
	6   UIKit                               0x0000000108935fe9 -[UIView(Geometry) setFrame:] + 845
	7   UIKit                               0x0000000108aa1e0c -[UIImageView _setViewGeometry:forMetric:] + 176
	8   UIKit                               0x0000000108aa203c -[UIImageView setFrame:] + 58
	9   UIKit                               0x0000000108aff3f0 -[UISlider _layoutSubviewsForBoundsChange:] + 1667
	10  AVKit                               0x000000010dc29e14 -[AVScrubber _layoutSubviewsForBoundsChange:] + 59
	11  UIKit                               0x0000000108b0040e -[UISlider _sliderAnimationDidStop:finished:context:] + 92
	12  UIKit                               0x000000010891e257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	13  UIKit                               0x0000000108919f1b +[UIViewAnimationState popAnimationState] + 305
	14  UIKit                               0x0000000108b00072 -[UISlider setValue:animated:] + 801
	15  AVKit                               0x000000010dc28009 -[AVPlaybackControlsViewController observeValueForKeyPath:ofObject:change:context:] + 1764
	16  AVKit                               0x000000010dc17517 -[AVFullScreenPlaybackControlsViewController observeValueForKeyPath:ofObject:change:context:] + 161
	17  Foundation                          0x0000000105a0385c NSKeyValueNotifyObserver + 351
	18  Foundation                          0x00000001059ddc80 -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 257
	19  Foundation                          0x00000001059dcb54 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 103
	20  AVKit                               0x000000010dc27637 -[AVPlaybackControlsViewController viewDidLoad] + 950
	21  UIKit                               0x0000000108a3501a -[UIViewController loadViewIfRequired] + 1235
	22  UIKit                               0x0000000108a3545a -[UIViewController view] + 27
	23  AVKit                               0x000000010dbfaa63 -[AVPlayerViewController _updatePlaybackControlsViewController] + 1492
	24  UIKit                               0x00000001093c1d79 -[_UIViewControllerTransitionContext completeTransition:] + 195
	25  UIKit                               0x000000010894b024 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 527
	26  UIKit                               0x000000010891e257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	27  UIKit                               0x000000010891e796 -[UIViewAnimationState animationDidStop:finished:] + 136
	28  QuartzCore                          0x000000011249668e _ZN2CA5Layer23run_animation_callbacksEPv + 306
	29  libdispatch.dylib                   0x000000011005e792 _dispatch_client_callout + 8
	30  libdispatch.dylib                   0x0000000110046247 _dispatch_main_queue_callback_4CF + 1041
	31  CoreFoundation                      0x0000000104ea2909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	32  CoreFoundation                      0x0000000104e68ae4 __CFRunLoopRun + 2164
	33  CoreFoundation                      0x0000000104e68016 CFRunLoopRunSpecific + 406
	34  GraphicsServices                    0x00000001126b4a24 GSEventRunModal + 62
	35  UIKit                               0x0000000108892134 UIApplicationMain + 159
	36  ???                                 0x00000001285cd48c 0x0 + 4972139660
	37  ???                                 0x00000001285cd0dd 0x0 + 4972138717


InspectorDebugSession(1): Disposed
2017-08-10 09:30:04.808 YouTubeVideoCrash.iOS[7837:962999] 
Unhandled Exception:
Foundation.MonoTouchException: Objective-C exception thrown.  Name: CALayerInvalidGeometry Reason: CALayer position contains NaN: [nan -0.5]
Native stack trace:
	0   CoreFoundation                      0x0000000104eddb0b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000010fab9141 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000104f46625 +[NSException raise:format:] + 197
	3   QuartzCore                          0x00000001124920be _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152
	4   QuartzCore                          0x0000000112492231 -[CALayer setPosition:] + 43
	5   QuartzCore                          0x0000000112492851 -[CALayer setFrame:] + 610
	6   UIKit                               0x0000000108935fe9 -[UIView(Geometry) setFrame:] + 845
	7   UIKit                               0x0000000108aa1e0c -[UIImageView _setViewGeometry:forMetric:] + 176
	8   UIKit             
                  0x0000000108aa203c -[UIImageView setFrame:] + 58
	9   UIKit                               0x0000000108aff3f0 -[UISlider _layoutSubviewsForBoundsChange:] + 1667
	10  AVKit                               0x000000010dc29e14 -[AVScrubber _layoutSubviewsForBoundsChange:] + 59
	11  UIKit                               0x0000000108b0040e -[UISlider _sliderAnimationDidStop:finished:context:] + 92
	12  UIKit                               0x000000010891e257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	13  UIKit                               0x0000000108919f1b +[UIViewAnimationState popAnimationState] + 305
	14  UIKit                               0x0000000108b00072 -[UISlider setValue:animated:] + 801
	15  AVKit                               0x000000010dc28009 -[AVPlaybackControlsViewController observeValueForKeyPath:ofObject:change:context:] + 1764
	16  AVKit                               0x000000010dc17517 -[AVFullScreenPlaybackControlsViewController observeValueForKeyPath:ofO
bject:change:context:] + 161
	17  Foundation                          0x0000000105a0385c NSKeyValueNotifyObserver + 351
	18  Foundation                          0x00000001059ddc80 -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 257
	19  Foundation                          0x00000001059dcb54 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 103
	20  AVKit                               0x000000010dc27637 -[AVPlaybackControlsViewController viewDidLoad] + 950
	21  UIKit                               0x0000000108a3501a -[UIViewController loadViewIfRequired] + 1235
	22  UIKit                               0x0000000108a3545a -[UIViewController view] + 27
	23  AVKit                               0x000000010dbfaa63 -[AVPlayerViewController _updatePlaybackControlsViewController] + 1492
	24  UIKit                               0x00000001093c1d79 -[_UIViewControllerTransitionContext completeTransition:] + 195
	25  UIKit                           
    0x000000010894b024 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 527
	26  UIKit                               0x000000010891e257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	27  UIKit                               0x000000010891e796 -[UIViewAnimationState animationDidStop:finished:] + 136
	28  QuartzCore                          0x000000011249668e _ZN2CA5Layer23run_animation_callbacksEPv + 306
	29  libdispatch.dylib                   0x000000011005e792 _dispatch_client_callout + 8
	30  libdispatch.dylib                   0x0000000110046247 _dispatch_main_queue_callback_4CF + 1041
	31  CoreFoundation                      0x0000000104ea2909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	32  CoreFoundation                      0x0000000104e68ae4 __CFRunLoopRun + 2164
	33  CoreFoundation                      0x0000000104e68016 CFRunLoopRunSpecific + 406
	34  GraphicsServices                    0x00000001126b4a24 GSEventRunModal + 62
	35  UIKit     
                          0x0000000108892134 UIApplicationMain + 159
	36  ???                                 0x00000001285cd48c 0x0 + 4972139660
	37  ???                                 0x00000001285cd0dd 0x0 + 4972138717

  at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/ObjCRuntime/Runtime.cs:319 
  at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/runtime/Delegates.generated.cs:126 
  at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr)
--- End of stack trace from previous location where exception was thrown ---
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/UIKit/UI
Application.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/UIKit/UIApplication.cs:63 
  at YouTubeVideoCrash.iOS.Application.Main (System.String[] args) [0x00001] in C:\1.MSSolve\YouTubeVideoCrash\YouTubeVideoCrash\YouTubeVideoCrash\YouTubeVideoCrash.iOS\Main.cs:17 	0   CoreFoundation                      0x0000000104eddb0b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000010fab9141 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000104f46625 +[NSException raise:format:] + 197
	3   QuartzCore                          0x00000001124920be _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152
	4   QuartzCore                          0x0000000112492231 -[CALayer setPosition:] + 43
	5   QuartzCore                          0x0000000112492851 -[CALayer setFrame:] + 610
	6   UIKit                               0x00
00000108935fe9 -[UIView(Geometry) setFrame:] + 845
	7   UIKit                               0x0000000108aa1e0c -[UIImageView _setViewGeometry:forMetric:] + 176
	8   UIKit                               0x0000000108aa203c -[UIImageView setFrame:] + 58
	9   UIKit                               0x0000000108aff3f0 -[UISlider _layoutSubviewsForBoundsChange:] + 1667
	10  AVKit                               0x000000010dc29e14 -[AVScrubber _layoutSubviewsForBoundsChange:] + 59
	11  UIKit                               0x0000000108b0040e -[UISlider _sliderAnimationDidStop:finished:context:] + 92
	12  UIKit                               0x000000010891e257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	13  UIKit                               0x0000000108919f1b +[UIViewAnimationState popAnimationState] + 305
	14  UIKit                               0x0000000108b00072 -[UISlider setValue:animated:] + 801
	15  AVKit                               0x000000010dc28009 -[AVPlaybackControlsViewController obse
rveValueForKeyPath:ofObject:change:context:] + 1764
	16  AVKit                               0x000000010dc17517 -[AVFullScreenPlaybackControlsViewController observeValueForKeyPath:ofObject:change:context:] + 161
	17  Foundation                          0x0000000105a0385c NSKeyValueNotifyObserver + 351
	18  Foundation                          0x00000001059ddc80 -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 257
	19  Foundation                          0x00000001059dcb54 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 103
	20  AVKit                               0x000000010dc27637 -[AVPlaybackControlsViewController viewDidLoad] + 950
	21  UIKit                               0x0000000108a3501a -[UIViewController loadViewIfRequired] + 1235
	22  UIKit                               0x0000000108a3545a -[UIViewController view] + 27
	23  AVKit                               0x000000010dbfaa63 -[AVPlayerViewController _updatePlaybackControlsV
iewController] + 1492
	24  UIKit                               0x00000001093c1d79 -[_UIViewControllerTransitionContext completeTransition:] + 195
	25  UIKit                               0x000000010894b024 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 527
	26  UIKit                               0x000000010891e257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	27  UIKit                               0x000000010891e796 -[UIViewAnimationState animationDidStop:finished:] + 136
	28  QuartzCore                          0x000000011249668e _ZN2CA5Layer23run_animation_callbacksEPv + 306
	29  libdispatch.dylib                   0x000000011005e792 _dispatch_client_callout + 8
	30  libdispatch.dylib                   0x0000000110046247 _dispatch_main_queue_callback_4CF + 1041
	31  CoreFoundation                      0x0000000104ea2909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	32  CoreFoundation                      0x0000000104e68ae4 __CFRunLoopRun + 2164
	33  CoreFoundation                      0x0000000104e68016 CFRunLoopRunSpecific + 406
	34  GraphicsServices                    0x00000001126b4a24 GSEventRunModal + 62
	35  UIKit                               0x0000000108892134 UIApplicationMain + 159
	36  ???                                 0x00000001285cd48c 0x0 + 4972139660
	37  ???                                 0x00000001285cd0dd 0x0 + 4972138717

2017-08-10 09:30:04.810 YouTubeVideoCrash.iOS[7837:962999] Unhandled managed exception:
Objective-C exception thrown.  Name: CALayerInvalidGeometry Reason: CALayer position contains NaN: [nan -0.5]
Native stack trace:
	0   CoreFoundation                      0x0000000104eddb0b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000010fab9141 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000104f46625 +[NSException raise:format:] + 197
	3   QuartzCore                          0x00000001124920be _ZN2CA5Layer12set_positionERKNS_4Vec2IdEEb + 152
	4   QuartzCore      
                    0x0000000112492231 -[CALayer setPosition:] + 43
	5   QuartzCore                          0x0000000112492851 -[CALayer setFrame:] + 610
	6   UIKit                               0x0000000108935fe9 -[UIView(Geometry) setFrame:] + 845
	7   UIKit                               0x0000000108aa1e0c -[UIImageView _setViewGeometry:forMetric:] + 176
	8   UIKit                               0x0000000108aa203c -[UIImageView setFrame:] + 58
	9   UIKit                               0x0000000108aff3f0 -[UISlider _layoutSubviewsForBoundsChange:] + 1667
	10  AVKit                               0x000000010dc29e14 -[AVScrubber _layoutSubviewsForBoundsChange:] + 59
	11  UIKit                               0x0000000108b0040e -[UISlider _sliderAnimationDidStop:finished:context:] + 92
	12  UIKit                               0x000000010891e257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	13  UIKit                               0x0000000108919f1b +[UIViewAnimationState popAnimationState] + 
305
	14  UIKit                               0x0000000108b00072 -[UISlider setValue:animated:] + 801
	15  AVKit                               0x000000010dc28009 -[AVPlaybackControlsViewController observeValueForKeyPath:ofObject:change:context:] + 1764
	16  AVKit                               0x000000010dc17517 -[AVFullScreenPlaybackControlsViewController observeValueForKeyPath:ofObject:change:context:] + 161
	17  Foundation                          0x0000000105a0385c NSKeyValueNotifyObserver + 351
	18  Foundation                          0x00000001059ddc80 -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 257
	19  Foundation                          0x00000001059dcb54 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 103
	20  AVKit                               0x000000010dc27637 -[AVPlaybackControlsViewController viewDidLoad] + 950
	21  UIKit                               0x0000000108a3501a -[UIViewController loadViewIfRequired] + 1235

	22  UIKit                               0x0000000108a3545a -[UIViewController view] + 27
	23  AVKit                               0x000000010dbfaa63 -[AVPlayerViewController _updatePlaybackControlsViewController] + 1492
	24  UIKit                               0x00000001093c1d79 -[_UIViewControllerTransitionContext completeTransition:] + 195
	25  UIKit                               0x000000010894b024 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 527
	26  UIKit                               0x000000010891e257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	27  UIKit                               0x000000010891e796 -[UIViewAnimationState animationDidStop:finished:] + 136
	28  QuartzCore                          0x000000011249668e _ZN2CA5Layer23run_animation_callbacksEPv + 306
	29  libdispatch.dylib                   0x000000011005e792 _dispatch_client_callout + 8
	30  libdispatch.dylib                   0x0000000110046247 _dispatch_main_queue_callback_4CF + 10
41
	31  CoreFoundation                      0x0000000104ea2909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	32  CoreFoundation                      0x0000000104e68ae4 __CFRunLoopRun + 2164
	33  CoreFoundation                      0x0000000104e68016 CFRunLoopRunSpecific + 406
	34  GraphicsServices                    0x00000001126b4a24 GSEventRunModal + 62
	35  UIKit                               0x0000000108892134 UIApplicationMain + 159
	36  ???                                 0x00000001285cd48c 0x0 + 4972139660
	37  ???                                 0x00000001285cd0dd 0x0 + 4972138717
 (Foundation.MonoTouchException)
  at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns_exception) [0x00000] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/ObjCRuntime/Runtime.cs:319 
  at ObjCRuntime.Runtime.throw_ns_exception (System.IntPtr exc) [0x00000] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/runtime/Delegates.generated.cs:126 
  at (wrapper native-to-managed)
 ObjCRuntime.Runtime:throw_ns_exception (intptr)
--- End of stack trace from previous location where exception was thrown ---
  at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/UIKit/UIApplication.cs:79 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/UIKit/UIApplication.cs:63 
  at YouTubeVideoCrash.iOS.Application.Main (System.String[] args) [0x00001] in C:\1.MSSolve\YouTubeVideoCrash\YouTubeVideoCrash\YouTubeVideoCrash\YouTubeVideoCrash.iOS\Main.cs:17 
2017-08-10 09:30:04.810 YouTubeVideoCrash.iOS[7837:962999] critical: Stacktrace:

2017-08-10 09:30:04.811 YouTubeVideoCrash.iOS[7837:962999] critical: 
Native stacktrace:

2017-08-10 
09:30:04.821 YouTubeVideoCrash.iOS[7837:962999] critical: 	0   YouTubeVideoCrash.iOS               0x00000001046b6501 mono_handle_native_crash + 257
2017-08-10 09:30:04.821 YouTubeVideoCrash.iOS[7837:962999] critical: 	1   libsystem_platform.dylib            0x00000001104b6b3a _sigtramp + 26
2017-08-10 09:30:04.822 YouTubeVideoCrash.iOS[7837:962999] critical: 	2   libsystem_kernel.dylib              0x00000001103a4430 libsystem_kernel.dylib + 1072
2017-08-10 09:30:04.822 YouTubeVideoCrash.iOS[7837:962999] critical: 	3   libsystem_c.dylib                   0x000000011014f88f abort + 127
2017-08-10 09:30:04.822 YouTubeVideoCrash.iOS[7837:962999] critical: 	4   YouTubeVideoCrash.iOS               0x0000000104869baf xamarin_unhandled_exception_handler + 47
2017-08-10 09:30:04.822 YouTubeVideoCrash.iOS[7837:962999] critical: 	5   YouTubeVideoCrash.iOS               0x000000010471cb74 mono_invoke_unhandled_exception_hook + 148
2017-08-10 09:30:04.823 YouTubeVideoCrash.iOS[7837:962999] critical: 	6   YouTubeVideoCra
sh.iOS               0x00000001046b5fe1 mono_handle_exception_internal + 4913
2017-08-10 09:30:04.823 YouTubeVideoCrash.iOS[7837:962999] critical: 	7   YouTubeVideoCrash.iOS               0x00000001046b4ca8 mono_handle_exception + 24
2017-08-10 09:30:04.823 YouTubeVideoCrash.iOS[7837:962999] critical: 	8   YouTubeVideoCrash.iOS               0x000000010463567f mono_amd64_throw_exception + 143
2017-08-10 09:30:04.823 YouTubeVideoCrash.iOS[7837:962999] critical: 	9   ???                                 0x0000000124c9bae7 0x0 + 4912167655
2017-08-10 09:30:04.824 YouTubeVideoCrash.iOS[7837:962999] critical: 	10  YouTubeVideoCrash.iOS               0x00000001048697a7 xamarin_process_managed_exception_gchandle + 55
2017-08-10 09:30:04.824 YouTubeVideoCrash.iOS[7837:962999] critical: 	11  YouTubeVideoCrash.iOS               0x0000000104869763 xamarin_ftnptr_exception_handler + 19
2017-08-10 09:30:04.824 YouTubeVideoCrash.iOS[7837:962999] critical: 	12  ???                                 0x0000000124ef2b79 0x0 + 491
4621305
2017-08-10 09:30:04.824 YouTubeVideoCrash.iOS[7837:962999] critical: 	13  YouTubeVideoCrash.iOS               0x0000000104867b34 xamarin_throw_ns_exception + 36
2017-08-10 09:30:04.824 YouTubeVideoCrash.iOS[7837:962999] critical: 	14  YouTubeVideoCrash.iOS               0x000000010486a2b1 _ZL17exception_handlerP11NSException + 177
2017-08-10 09:30:04.825 YouTubeVideoCrash.iOS[7837:962999] critical: 	15  CoreFoundation                      0x0000000104f4693f __handleUncaughtException + 751
2017-08-10 09:30:04.825 YouTubeVideoCrash.iOS[7837:962999] critical: 	16  libobjc.A.dylib                     0x000000010fab93bb _ZL15_objc_terminatev + 94
2017-08-10 09:30:04.825 YouTubeVideoCrash.iOS[7837:962999] critical: 	17  libc++abi.dylib                     0x00000001103f6f29 _ZSt11__terminatePFvvE + 8
2017-08-10 09:30:04.825 YouTubeVideoCrash.iOS[7837:962999] critical: 	18  libc++abi.dylib                     0x00000001103f6fa3 _ZSt9terminatev + 51
2017-08-10 09:30:04.825 YouTubeVideoCrash.iOS[7837:962999] c
ritical: 	19  libdispatch.dylib                   0x000000011005e7a6 _dispatch_client_callout + 28
2017-08-10 09:30:04.826 YouTubeVideoCrash.iOS[7837:962999] critical: 	20  libdispatch.dylib                   0x0000000110046247 _dispatch_main_queue_callback_4CF + 1041
2017-08-10 09:30:04.826 YouTubeVideoCrash.iOS[7837:962999] critical: 	21  CoreFoundation                      0x0000000104ea2909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
2017-08-10 09:30:04.826 YouTubeVideoCrash.iOS[7837:962999] critical: 	22  CoreFoundation                      0x0000000104e68ae4 __CFRunLoopRun + 2164
2017-08-10 09:30:04.826 YouTubeVideoCrash.iOS[7837:962999] critical: 	23  CoreFoundation                      0x0000000104e68016 CFRunLoopRunSpecific + 406
2017-08-10 09:30:04.826 YouTubeVideoCrash.iOS[7837:962999] critical: 	24  GraphicsServices                    0x00000001126b4a24 GSEventRunModal + 62
2017-08-10 09:30:04.827 YouTubeVideoCrash.iOS[7837:962999] critical: 	25  UIKit                               0x00
00000108892134 UIApplicationMain + 159
2017-08-10 09:30:04.827 YouTubeVideoCrash.iOS[7837:962999] critical: 	26  ???                                 0x00000001285cd48c 0x0 + 4972139660
2017-08-10 09:30:04.827 YouTubeVideoCrash.iOS[7837:962999] critical: 	27  ???                                 0x00000001285cd0dd 0x0 + 4972138717
2017-08-10 09:30:04.827 YouTubeVideoCrash.iOS[7837:962999] critical: 
=================================================================
Got a SIGABRT 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.
Launch failed. The app 'YouTubeVideoCrash.iOS' could not be launched on 'iPhone 6 iOS 10.3'. Error: An error occurred while executing MTouch. Please check the logs for more details.
The app has been terminated.
Comment 1 Sid Dubey 2017-08-10 15:11:28 UTC
IDE Information
================
Microsoft Visual Studio Enterprise 2015
Version 14.0.25421.03 Update 3
Microsoft .NET Framework
Version 4.7.02053

Installed Version: Enterprise

Architecture and Modeling Tools   00322-90200-21579-AA533
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-90200-21579-AA533
Microsoft Visual Basic 2015

Visual C# 2015   00322-90200-21579-AA533
Microsoft Visual C# 2015

Visual C++ 2015   00322-90200-21579-AA533
Microsoft Visual C++ 2015

Visual F# 2015   00322-90200-21579-AA533
Microsoft Visual F# 2015

Windows Phone SDK 8.0 - ENU   00322-90200-21579-AA533
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.18.00214.2
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1   14.1.21111.0
ASP.NET and Web Tools 2015.1

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.9   14.0.20316.0
Azure App Service Tools v2.9

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.0.6000.0
Microsoft Azure Data Lake Tools for Visual Studio

Clear MEF Component Cache   1.4
Clears the Visual Studio MEF component cache to fix issues with cache corruption.

Common Azure Tools   1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GradleBindings.VisualStudio   1.0
Creates Xamarin Android Binding projects from a gradle file.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft .NET Core Tools (Preview 2)   14.1.21111.0
Microsoft .NET Core Tools (Preview 2)

Microsoft Azure HDInsight HQL Service   2.0.6000.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.6000.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.9.40323.3

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

NuProjPackage   1.0
NuGet Package Project System

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60519.0
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   1.8.34.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.25420.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.5.0.486 (fec6f88)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.3.1.2 (9dbc4c5)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   10.10.0.37 (ad35de4)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Sid Dubey 2017-08-10 15:15:27 UTC
Created attachment 24128 [details]
Crash Log
Comment 3 Sid Dubey 2017-08-10 15:17:54 UTC
Steps to Reproduce
-------------------
1. Open the App in Visual Studio (Mac or Windows) 
2. Run the App 
3. Play the Youtube Video on the page. (results in crash)
Comment 4 John Miller [MSFT] 2017-08-10 15:22:55 UTC
Hi Sid,

Can you confirm if you can reproduce the same issue in a Xamarin.iOS project (non-Forms)? I'll continue to investigate reproducing this.
Comment 5 John Miller [MSFT] 2017-08-10 16:07:12 UTC
I noticed that the issue does not happen for a normal embedded link for a YouTube video. Instead, this app uses a "permanent" link for a channel which is the `?live_stream?channel=` part. See for more info: https://stackoverflow.com/a/39582176/1454417
Comment 8 Sid Dubey 2017-08-11 13:40:58 UTC
(In reply to John Miller [MSFT] from comment #5)
> I noticed that the issue does not happen for a normal embedded link for a
> YouTube video. Instead, this app uses a "permanent" link for a channel which
> is the `?live_stream?channel=` part. See for more info:
> https://stackoverflow.com/a/39582176/1454417

Hey John, 
       The issue comes with URL https://www.youtube.com/embed/kN2C_qKOsWs too. 

Thanks 
Sid
Comment 9 Sid Dubey 2017-08-14 15:10:09 UTC
Update from Customer - In tests with the iOS platform it was identified that even when opening the SAFARI or GOOGLE CHROME on an iOS 10.3.3 device and trying to start the video in question (url: https://www.youtube.com/watch?v=kN2C_qKOsWs) the apps CLOSED. It could be a YouTube Stream bug or a bug in iOS 10.3.3
Comment 10 Manuel de la Peña [MSFT] 2017-09-19 14:31:56 UTC
Testing it with Xcode 9 and iOS 11 to see if this was fixed or it continues to fail.
Comment 11 Manuel de la Peña [MSFT] 2017-09-20 10:39:55 UTC
I'm glad to say that this was fixed with iOS 11 and Xcode 9. Closing bug since it looks like something due to Apple or Youtube.