Bug 24369 - SceneKit not working on latest alpha
Summary: SceneKit not working on latest alpha
Status: RESOLVED INVALID
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: 1.11.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2014-11-09 15:08 UTC by troy-dawson
Modified: 2014-12-01 16:07 UTC (History)
2 users (show)

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


Attachments
sample project that doesn't work on alpha channel release (15.04 KB, application/zip)
2014-11-09 15:08 UTC, troy-dawson
Details
Updated test code (12.15 KB, application/zip)
2014-11-20 10:13 UTC, troy-dawson
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 INVALID

Description troy-dawson 2014-11-09 15:08:39 UTC
Created attachment 8672 [details]
sample project that doesn't work on alpha channel release

See attached test project. This is functional on the current stable versions but when I upgrade to the alpha channel the SceneKit view is not displayed at all, I just get an empty window with no view.

Good Versions:

Xamarin Studio
Version 5.3 (build 427)
Installation UUID: 4b991e3f-5b17-407e-970d-153a6e5764e2
Runtime:
	Mono 3.10.0 ((detached/e204655)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000023

Apple Developer Tools
Xcode 6.1 (6539)
Build 6A1046a

Xamarin.Mac
Version: 1.10.0.18 (Indie Edition)

Bad Versions:

Xamarin Studio
Version 5.6.2 (build 5)
Installation UUID: 4b991e3f-5b17-407e-970d-153a6e5764e2
Runtime:
	Mono 3.10.0 ((detached/633e444)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000020

Apple Developer Tools
Xcode 6.1 (6539)
Build 6A1046a

Xamarin.Mac
Version: 1.11.1.3 (Indie Edition)
Comment 1 troy-dawson 2014-11-09 15:11:45 UTC
http://imgur.com/Ib1Aboy,cdtbXDz

for the bad (no view), good (green view etc) screenshots
Comment 2 Rajneesh Kumar 2014-11-10 02:34:10 UTC
I have checked this issue with latest alpha channel but not able to reproduce this issue. I try to reproduce this issue with the help provided in bug description.

Steps I followed:

1. Open attached test application in XS.
2. Build the application, it will build successfully.
3. Run the application.
4. Observed that it will not run, and nothing in output window.

Could you please provide us, the sample app that reproduce this issue ? Please let me know that what steps I am missing to reproduce this issue or what steps should I follow to reproduce this issue. That will be very helpful to reproduce this issue at our end.

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

Additional Information: I have checked this issue with latest stable and I am getting same behavior.

Screencast(Stable builds): http://www.screencast.com/t/2BPaOkUZY

Please let me know if I missed anything ?

Environment Info:

=== Xamarin Studio ===

Version 5.6.2 (build 5)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Runtime:
	Mono 3.10.0 ((detached/633e444)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000020

=== Xamarin.Android ===

Version: 4.99.0 (Business Edition)
Android SDK: /Users/MM/Desktop/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_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: 8.2.0.193 (Business Edition)
Hash: 959c1e4
Branch: 
Build date: 2014-10-03 00:25:37-0400

=== Xamarin.Mac ===

Version: 1.11.1.3 (Business Edition)

=== Build Information ===

Release ID: 506020005
Git revision: 19bc3b64b70332bfab18faf9cf1ce7d3aa191b36
Build date: 2014-10-17 14:49:01-04

=== Operating System ===

Mac OS X 10.9.5
Darwin MacMini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 3 troy-dawson 2014-11-10 04:50:08 UTC
You are reproducing the issue. What you can't do yet is figure out how to verify this code works on older versions of XS like I did.

First off, the "good" working build was done with XS Version 5.3 (build 427)

since the stable version of XS won't build any apps for me due to the "business license required to build from command line" bug.

Secondiy, the attached sample will need minor edits to build on the stable Xamarin.Mac 1.10.0.18; for one, the override on NSWindow is DidMoved() not DidMove().

Also DidChangeBackingProperties() is not an override in 1.10 so you'll have to delete that member function 

You probably need to select Rebuild All to get these build errors to show up in Xamarin.Mac 1.10
Comment 4 troy-dawson 2014-11-20 10:13:37 UTC
Created attachment 8822 [details]
Updated test code

Reduced extraneous stuff from my test case. I only get a blank window, there should be a green view with a white sphere.

This code is based on the iOS C# SceneKit sample from June.
Comment 5 Chris Hamons 2014-11-20 10:18:44 UTC
Repro case = confirmed until we have a chance to run it.
Comment 6 troy-dawson 2014-11-21 07:36:01 UTC
Confirmed that regressing to the stable channel:

Xamarin Studio
Version 5.5.4 (build 15)
Installation UUID: 4b991e3f-5b17-407e-970d-153a6e5764e2
Runtime:
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

Apple Developer Tools
Xcode 6.2 (6736)
Build 6C86e

Xamarin.Mac
Version: 1.10.0.18 (Indie Edition)

and deleting the Update() override function and ShowsStatistics = true (both not present back then) results in this code working correctly.
Comment 7 troy-dawson 2014-11-23 22:49:20 UTC
Tonight I noticed XS has a SceneKit template project and I was able to get that functional, so I suspect this bug is caused by something weird in the way I programmatically set up the window and view.
Comment 8 Chris Hamons 2014-12-01 16:07:07 UTC
I was able to fix this example by changing DisplayView's constructor to do this instead:

window.ContentView.AddSubview (this);

That fixed it for me. I'm going to close the bug as invalid. Please reopen if that doesn't fix it for you in alpha.