Bug 37090 - Expanding UIView is simulator crashes debugging session
Summary: Expanding UIView is simulator crashes debugging session
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: master
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-12-16 16:41 UTC by Chris Hamons
Modified: 2018-01-09 18:38 UTC (History)
5 users (show)

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:

Description Chris Hamons 2015-12-16 16:41:16 UTC
Steps to reproduce:
- Create new iOS application
- Launch on 9.2 simulator
- Get ahold of a view somehow (var v = this.View; in ViewControler ViewDidLoad works)
- Expand v in debugger
- Boom with:

2015-12-16 10:38:53.012 TestAvailIOS[1417:5888817] -[UIView collisionBoundingPath]: unrecognized selector sent to instance 0x79fbd7b0

Everything in Alpha channel currently:

Xamarin Studio
Version 5.10.2 (build 26)
Installation UUID: 1f14d076-afda-48ab-bd30-d95b64dfb565
	Mono 4.2.1 (explicit/39edf24)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010124

Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Version: (Business Edition)
Android SDK: /Users/donblas/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)

SDK Tools Version: 24.1.2
SDK Platform Tools Version: 21.0.0
SDK Build Tools Version: 21.1.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Xamarin Android Player
Version: 0.4.4
Location: /Applications/Xamarin Android Player.app

Apple Developer Tools
Xcode 7.2 (9548)
Build 7C68

Version: (Business Edition)

Version: (Business Edition)
Hash: dab1554
Branch: master
Build date: 2015-12-08 23:32:56-0500

Build Information
Release ID: 510020026
Git revision: 33a8642aa88f9119949cce312b9186308d8ca76c
Build date: 2015-12-07 17:21:45-05
Xamarin addins: af8ffe5b187898ec2f2f0c78de1bd01ae39b2008
Build lane: monodevelop-lion-cycle6

Operating System
Mac OS X 10.10.5
Darwin Monolith.local 14.5.0 Darwin Kernel Version 14.5.0
    Tue Sep  1 21:23:09 PDT 2015
    root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
Comment 1 David Karlaš 2015-12-19 07:26:23 UTC
This was introduced in iOS 9.0... Calling it directly(in C# code instead debugger) in 9.2 crashes app, what has to happen so calling this property doesn't crash? Do I have to inherit View class and implement this property or what? How is debugger supposed to detect if it's safe to call this method? Do we have other examples in iOS API where properties are "abstract"?
Comment 2 Chris Hamons 2015-12-21 15:30:43 UTC
Sorry. This got misfiled. I believe we need to slap the property with:

[DebuggerBrowsable (DebuggerBrowsableState.Never)]
Comment 3 Chris Hamons 2015-12-21 15:31:16 UTC
Somebody should probably try expanding a bunch of UIView related items, to make sure we flush out any other "expand X and it dies" issues.
Comment 4 Sebastien Pouliot 2016-03-11 19:35:53 UTC
This works* fine when I try it, executing our UIView unit tests. Tried both x86 and x86_64 simulators. Maybe there's some other conditions ?

* XS 6.0 shows the MonoTouchException (that wraps the native ObjC exception) but it does not stop the app from executing.
Comment 5 Chris Hamons 2016-03-11 20:13:19 UTC
I assume it was fixed then. That MonoTouchException sound new.
Comment 6 Shawn Castrianni 2018-01-09 16:50:55 UTC
This is NOT fixed.  The latest stable VS for Mac has this same problem.  It also crashes with UIImage:

[UIImageView collisionBoundingPath]: unrecognized selector sent to instance

=== Visual Studio Enterprise 2017 for Mac ===

Version 7.3.2 (build 12)
Installation UUID: 9c816b94-7077-4b23-a13a-9883e55ffb7e
	Mono (2017-06/e66d9abbb27) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 504010007

=== NuGet ===


=== .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
SDK: /usr/local/share/dotnet/sdk/2.0.3/Sdks
SDK Versions:
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Sdks

=== Xamarin.Profiler ===

Version: 1.6.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 9.2 (13772)
Build 9C40b

=== Xamarin.Mac ===

Version: (Visual Studio Enterprise)

=== Xamarin.iOS ===

Version: (Visual Studio Enterprise)
Hash: 6857dfcc
Branch: xcode9.2
Build date: 2017-12-04 21:20:41-0500

=== Xamarin.Android ===

Version: (Visual Studio Enterprise)
Android SDK: /Developer/Android/sdk
	Supported Android versions:
		5.0 (API level 21)
		5.1 (API level 22)
		6.0 (API level 23)
		7.0 (API level 24)
		7.1 (API level 25)
		8.0 (API level 26)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 26.0.1
SDK Build Tools Version: 26.0.2

Java SDK: /usr
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

Android Designer EPL code available here:

=== Xamarin Inspector ===

Version: 1.3.2
Hash: 461f09a
Branch: 1.3-release
Build date: Tue, 03 Oct 2017 18:26:57 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 703020012
Git revision: 7d0c9d7ad46b125cf4b7bbf9532c0531b6433ce6
Build date: 2017-12-12 14:03:18-05
Xamarin addins: 6dddaa49fbecb2695fcdcd6b712eb269e288518c
Build lane: monodevelop-lion-d15-5

=== Operating System ===

Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
    Mon Nov 13 21:56:25 PST 2017
    root:xnu-3789.72.11~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Internet of Things (IoT) development (Preview) 7.1
Comment 7 Shawn Castrianni 2018-01-09 18:38:38 UTC
I meant to say that it also crashes with UIImage:

[UIImage writableTypeIdentifiersForItemProvider]: unrecognized selector sent to instance