Bug 22528 - Can't override a delegate method -- SCNView's renderer delegate
Summary: Can't override a delegate method -- SCNView's renderer delegate
Status: VERIFIED FIXED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 1.10.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: 1.12.0
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2014-08-30 19:14 UTC by troy-dawson
Modified: 2015-01-20 13:54 UTC (History)
3 users (show)

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


Attachments
Updated Testsample Project (25.27 KB, application/zip)
2015-01-20 13:54 UTC, Akhilesh kumar
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

Comment 1 troy-dawson 2014-08-30 19:15:36 UTC
Xamarin Studio
Version 5.3 (build 427)
Installation UUID: 4b991e3f-5b17-407e-970d-153a6e5764e2
Runtime:
	Mono 3.8.0 ((no/62a857e)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000007

Apple Developer Tools
Xcode 6.0 (6256.16)
Build 6A280e

Xamarin.Mac
Version: 1.11.0.1 (Indie Edition)

Build Information
Release ID: 503000427
Git revision: b731d769195292820b25b6f9621a7a9decb3fff6
Build date: 2014-08-14 03:26:41-04
Xamarin addins: aaf33dfafebf0d688f6e1a1eb58bced21de89a1d

Operating System
Mac OS X 10.10.0
Darwin Troys-MacBook-Pro.local 14.0.0 Darwin Kernel Version 14.0.0
    Sat Aug  9 00:14:02 PDT 2014
    root:xnu-2782.1.80~2/RELEASE_X86_64 x86_64
Comment 2 Rajneesh Kumar 2014-09-02 01:57:46 UTC
I have checked this issue and able to reproduce with the sample project and help provided in the bug description. I observed that the app is just hanging on launch. And I also observed that  after putting breakpoint in "Update()" and stepping after the break results in a crash:

Unhandled Exception:
System.InvalidCastException: Cannot cast from source type to destination type.
  at (wrapper castclass) object:__castclass_with_cache (object,intptr,intptr)
  at ObjCRuntime.NSObjectMarshaler`1[SceneKit.SCNSceneRenderer].MarshalNativeToManaged (IntPtr handle) [0x00002] in /Users/builder/data/lanes/1145/02ed3b73/source/xamcore/src/ObjCRuntime/NSObjectMarshaler.cs:35 
  at (wrapper native-to-managed) object:[PanzerZug.TestDisplay:Void Update(SceneKit.SCNSceneRenderer, Double)] (Foundation.NSObject,ObjCRuntime.Selector,SceneKit.SCNSceneRenderer,double)
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidCastException: Cannot cast from source type to destination type.
  at (wrapper castclass) object:__castclass_with_cache (object,intptr,intptr)
  at ObjCRuntime.NSObjectMarshaler`1[SceneKit.SCNSceneRenderer].MarshalNativeToManaged (IntPtr handle) [0x00002] in /Users/builder/data/lanes/1145/02ed3b73/source/xamcore/src/ObjCRuntime/NSObjectMarshaler.cs:35 
  at (wrapper native-to-managed) object:[PanzerZug.TestDisplay:Void Update(SceneKit.SCNSceneRenderer, Double)] (Foundation.NSObject,ObjCRuntime.Selector,SceneKit.SCNSceneRenderer,double)


Additional Information: I observed that the same exception occur when user does't put a breakpoint in "Update()" and click on "Step over", "Step into", "Step Out".

Screencast:  http://www.screencast.com/t/f64BJqNvubo

Environment Info:

=== Xamarin Studio ===

Version 5.3 (build 427)
Installation UUID: 0b7eaebc-a0ed-4b58-81df-91e378cad28c
Runtime:
	Mono 3.6.0 ((no/f540f8a)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 306000039

=== Apple Developer Tools ===

Xcode 6.0 (6256.16)
Build 6A280e

=== Xamarin.iOS ===

Version: 7.2.6.28 (Trial Edition)
Hash: 606f31a
Branch: 
Build date: 2014-08-01 15:27:48-0400

=== Xamarin.Android ===

Version: 4.14.0 (Trial Edition)
Android SDK: /Users/Admin_Mac/Desktop/Anddk/android-sdk-macosx
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		3.2    (API level 13)
		4.0    (API level 14)
		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)
		4.5    (API level 21)
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.Mac ===

Version: 1.11.0.1 (Trial Edition)

=== Build Information ===

Release ID: 503000427
Git revision: b731d769195292820b25b6f9621a7a9decb3fff6
Build date: 2014-08-14 03:26:41-04
Xamarin addins: aaf33dfafebf0d688f6e1a1eb58bced21de89a1d

=== Operating System ===

Mac OS X 10.10.0
Darwin Admin-Macs-Mac-mini.local 14.0.0 Darwin Kernel Version 14.0.0
    Sat Aug  9 00:14:02 PDT 2014
    root:xnu-2782.1.80~2/RELEASE_X86_64 x86_64
Comment 3 Chris Hamons 2014-12-05 13:49:47 UTC
This appears to be fixed in the latest Xamarin.Mac alpha.
Comment 4 Akhilesh kumar 2015-01-20 11:50:36 UTC
Unable to verify this issue due to: https://bugzilla.xamarin.com/show_bug.cgi?id=26203
Comment 5 Akhilesh kumar 2015-01-20 13:51:41 UTC
I have checked this issue with latest XM 1.12.0.4 and updated sample. Now application build and run successfully. Application does not hang And also does not crash after hitting breakpoint in "Update()" and stepping. 

Screencast: http://screencast.com/t/bGvrpQlKOs

Hence, closing this issue.

Environment info:
=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: ff0c16c6-3c75-46d8-ac56-56c3b56e2c76
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Apple Developer Tools ===

Xcode 6.1.1 (6611)
Build 6A2008a

=== Xamarin.iOS ===

Version: 8.6.0.51 (Trial Edition)
Hash: dfb682f
Branch: 
Build date: 2015-01-08 13:39:32-0500

=== Xamarin.Mac ===

Version: 1.12.0.4 (Trial Edition)

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 16:31:31-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Mac OS X 10.10.1
Darwin Apples-iMac.local 14.0.0 Darwin Kernel Version 14.0.0
    Fri Sep 19 00:26:44 PDT 2014
    root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Comment 6 Akhilesh kumar 2015-01-20 13:54:43 UTC
Created attachment 9419 [details]
Updated Testsample Project