Bug 29846 - Attempting to expand SKFieldNode in Locals view will crash debugger.
Summary: Attempting to expand SKFieldNode in Locals view will crash debugger.
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Debugger ()
Version: XI 8.10
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-05-07 12:39 UTC by Michael Gallacher
Modified: 2015-05-28 06:13 UTC (History)
5 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:
VERIFIED FIXED

Description Michael Gallacher 2015-05-07 12:39:34 UTC
Simple repro:

Create empty iOS app targeting 8.0.  In FinishedLaunching, add the following line right before 'return true':

SKFieldNode node = SKFieldNode.CreateRadialGravityField();

Put a breakpoint on 'return true'
Launch the debugger on the iPhone5 8.3 simulator
When the breakpoint is hit, attempt to examine the 'node' instance in the Locals tab.

Result: Debugger crashes.  Here's the app output with callstack.

Starting iPhone 5
Launching application
Application launched. PID = 28741
Press enter to terminate the application
>Loaded assembly: /Users/michael/Library/Developer/CoreSimulator/Devices/ABBDAB86-2D70-4CCC-A57D-BD18F91F414B/data/Containers/Bundle/Application/53FB6660-6302-4B49-99F5-71916AAAA982/BugTest.app/Xamarin.iOS.dll [External]
Loaded assembly: /Users/michael/Library/Developer/CoreSimulator/Devices/ABBDAB86-2D70-4CCC-A57D-BD18F91F414B/data/Containers/Bundle/Application/53FB6660-6302-4B49-99F5-71916AAAA982/BugTest.app/System.dll [External]
Loaded assembly: /Users/michael/Library/Developer/CoreSimulator/Devices/ABBDAB86-2D70-4CCC-A57D-BD18F91F414B/data/Containers/Bundle/Application/53FB6660-6302-4B49-99F5-71916AAAA982/BugTest.app/BugTest.exe
Resolved pending breakpoint at 'AppDelegate.cs:33,1' to bool BugTest.AppDelegate.FinishedLaunching (UIKit.UIApplication application, Foundation.NSDictionary launchOptions) [0x00007].
2015-05-07 09:36:43.125 BugTest[28741:1258401] critical: Stacktrace:

2015-05-07 09:36:43.126 BugTest[28741:1258401] critical:   at <unknown> <0xffffffff>
2015-05-07 09:36:43.126 BugTest[28741:1258401] critical:   at (wrapper managed-to-native) ObjCRuntime.Messaging.Vector4_objc_msgSend_stret (OpenTK.Vector4&,intptr,intptr) <IL 0x0002d, 0xffffffff>
2015-05-07 09:36:43.126 BugTest[28741:1258401] critical:   at SpriteKit.SKFieldNode.get_Direction () [0x0007d] in /Users/builder/data/lanes/1503/6481535e/source/maccore/src/build/ios/native/SpriteKit/SKFieldNode.g.cs:237
2015-05-07 09:36:43.126 BugTest[28741:1258401] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_Vector4__this__ (object,intptr,intptr,intptr) <IL 0x0006a, 0xffffffff>
2015-05-07 09:36:43.126 BugTest[28741:1258401] critical:   at <unknown> <0xffffffff>
2015-05-07 09:36:43.126 BugTest[28741:1258401] critical:   at BugTest.AppDelegate.FinishedLaunching (UIKit.UIApplication,Foundation.NSDictionary) [0x00007] in /Users/michael/Code/Xamarin/BugTest/AppDelegate.cs:33
2015-05-07 09:36:43.126 BugTest[28741:1258401] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_bool__this___object_object (object,intptr,intptr,intptr) <IL 0x00076, 0xffffffff>
2015-05-07 09:36:43.127 BugTest[28741:1258401] critical:   at <unknown> <0xffffffff>
2015-05-07 09:36:43.127 BugTest[28741:1258401] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x000ae, 0xffffffff>
2015-05-07 09:36:43.127 BugTest[28741:1258401] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/1503/6481535e/source/maccore/src/UIKit/UIApplication.cs:63
2015-05-07 09:36:43.127 BugTest[28741:1258401] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/1503/6481535e/source/maccore/src/UIKit/UIApplication.cs:47
2015-05-07 09:36:43.127 BugTest[28741:1258401] critical:   at BugTest.Application.Main (string[]) [0x00008] in /Users/michael/Code/Xamarin/BugTest/Main.cs:12
2015-05-07 09:36:43.127 BugTest[28741:1258401] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00060, 0xffffffff>
2015-05-07 09:36:43.127 BugTest[28741:1258401] critical: 
Native stacktrace:

2015-05-07 09:36:43.127 BugTest[28741:1258401] 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 Rolf Bjarne Kvinge [MSFT] 2015-05-26 13:25:54 UTC
Fixed.

maccore/master: 41e42d64575596885d9b67c509623c81754a13fc
Comment 4 Abhishek 2015-05-28 06:13:09 UTC
I have checked this issue with monotouch-8.11.0.868. Now this issue is working fine and now I am able to examine the 'node' instance.Here is the screencast for the same.
http://www.screencast.com/t/hCnw6mqa9

Hence closing this issue.