Bug 29834 - More NSView expansion crashes
Summary: More NSView expansion crashes
Status: VERIFIED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 2.0.0
Hardware: PC Mac OS
: High normal
Target Milestone: 2.4.0 (C6)
Assignee: Chris Hamons
URL:
: 30127 ()
Depends on:
Blocks:
 
Reported: 2015-05-07 09:50 UTC by Chris Hamons
Modified: 2015-10-01 14:18 UTC (History)
4 users (show)

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


Attachments
Crash sample. (13.60 KB, application/zip)
2015-08-12 01:53 UTC, Brad Moore
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:
VERIFIED FIXED

Description Chris Hamons 2015-05-07 09:50:13 UTC
I have checked this issue again with more exploratory cases with C5SR1 latest XS 5.9(build 2) + XM 2.0.1.36 and here are my observation:

App gets crashed on expanding following variable.

1.Expand v.
2.Expand w->base->ContentView.
3.Expand w->base->ContentLayoutGuide.
4.Expand w->base->InitialFirstResponder.
5. Expand w->base->BackgroundColor

Screencast: http://www.screencast.com/t/mTqNyWe6ECCX
Comment 2 Chris Hamons 2015-05-15 09:49:46 UTC
*** Bug 30127 has been marked as a duplicate of this bug. ***
Comment 3 Timothy Risi 2015-06-04 03:52:48 UTC
BackgroundColor crash fixed on master / 8c50bc53cbdc0807560bcd6a58da34727f2e8b8c.

Others no longer crashing for me (Chris said in slack he'd fixed most already)
Comment 4 Brad Moore 2015-08-12 01:50:38 UTC
I believe this is still happening when you subclass a NSView, and when debugging the base portion when debugging. 

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MyCustomView wantsPeriodicDraggingUpdates]: unrecognized selector sent to instance 0x61000012b860'
terminating with uncaught exception of type NSException
abort() called


Adding this to my subclassed view fixes it.

public override bool WantsPeriodicDraggingUpdates
{
    get
    {
        return true;
    }
}
Comment 5 Brad Moore 2015-08-12 01:53:01 UTC
Created attachment 12463 [details]
Crash sample.

Added an example. Breakpoint on line 31 in MainWindow.cs. Look at the properties of muView, and then try expand the base portion of this. Uncomment out code in MyCustomView.cs to prevent this from happening.
Comment 6 Rajneesh Kumar 2015-10-01 14:18:01 UTC
I have checked this issue with the cycle 6 builds XS 5.10 (build 811) + X.M 2.4.0.79 + Mono 4.2.1.59 and observed that this issue has been fixed and no longer exist with this build. I observed that application does't crash/hanged debugging stop on watching and expanding variables in watch window. 

Screencast: http://www.screencast.com/t/45l8gzQW

This issue has been fixed , so as of now I am closing this issue. If anyone face this issue feel free to reopen it.

Thanks..!


=== Xamarin Studio ===

Version 5.10 (build 811)
Installation UUID: 0b7eaebc-a0ed-4b58-81df-91e378cad28c
Runtime:
	Mono 4.2.1 (explicit/328e048)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010059

=== Xamarin.Profiler ===

Version: 0.0.0.0
Location: /Applications/XamarinProfiler.Mac.app/Contents/MacOS/XamarinProfiler.Mac

=== Apple Developer Tools ===

Xcode 7.0 (8227)
Build 7A220

=== Xamarin.Mac ===

Version: 2.4.0.79 (Starter Edition)

=== Xamarin.iOS ===

Version: 9.0.1.20 (Starter Edition)
Hash: d8e9592
Branch: master
Build date: 2015-09-18 23:22:05-0400

=== Xamarin.Android ===

Version: 5.1.6.7 (Starter Edition)
Android SDK: /Users/Admin_Mac/Desktop/Anddk/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)

SDK Tools Version: 24.3.4
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 22.0.1

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

=== Xamarin Android Player ===

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

=== Build Information ===

Release ID: 510000811
Git revision: 34cd31ea72536afab530c14d9220b286075e83cd
Build date: 2015-09-30 10:40:37-04
Xamarin addins: 8e6fccfc0c19a7e0b7b11be925f09751d827eb5c
Build lane: monodevelop-lion-cycle6

=== Operating System ===

Mac OS X 10.11.0
Darwin Admin-Macs-Mac-mini.local 15.0.0 Darwin Kernel Version 15.0.0
    Wed Aug 26 16:57:32 PDT 2015
    root:xnu-3247.1.106~1/RELEASE_X86_64 x86_64