Bug 36107 - OpenTK - Black Screen between swapping an AndroidGameView -> android.view.View
Summary: OpenTK - Black Screen between swapping an AndroidGameView -> android.view.View
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: 6.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Radek Doulik
URL:
Depends on:
Blocks:
 
Reported: 2015-11-20 13:25 UTC by Jon Douglas [MSFT]
Modified: 2016-01-14 10:20 UTC (History)
3 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 for Bug 36107 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Jon Douglas [MSFT] 2015-11-20 13:25:53 UTC
*Description:

When switching from a AndroidGameView to an android.view.View, the screen goes black momentarily before the android.view.View becomes visible. In this case a ViewSwitcher is used to change views between the AndroidGameView and android.view.View, but even without a ViewSwitcher, manually replacing the view, the issue still occurs.

It seems that the AndroidGameView gets cleared from the screen before the respective OnDraw() of the android.view.View is called and thus why the black screen is shown. So it seems that the AndroidGameView is not removed until the respective View switch.

*Reproduction

https://www.dropbox.com/s/hv96j2i3da77k2k/GLTriangle30.zip?dl=0

There is a Thread.Sleep() call between the ShowNext and ShowPrevious to demonstrate that the screen goes black between the AndroidGameView -> android.View.View

*Version Information

Xamarin.Android 6.0.0.34

OpenTK-1.0 - C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v5.1\OpenTK-1.0.dll
Comment 1 Sadik Ali 2016-01-14 10:20:03 UTC
I have checked this issue with latest C6SR1 XS build XamarinStudio-5.10.2.51_36453d5e06a1ad2cc8d261ad32e29abe0ed57c1f and able to reproduce the issue.


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

IDE Logs: https://gist.github.com/anonymous/ed2666d15fba871699d5

Environment info: 

=== Xamarin Studio ===

Version 5.10.2 (build 51)
Installation UUID: 3a161e2e-f177-4de6-b6fa-36c4669f952b
Runtime:
	Microsoft .NET 4.0.30319.42000
	GTK+ 2.24.23 (MS-Windows theme)
	GTK# 2.12.30

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: 6.0.1.5 (Starter Edition)
Android SDK: F:\Android\android-sdk
	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)
		6.0    (API level 23)

SDK Tools Version: 24.4.1

SDK Platform Tools Version: 23.0.1

SDK Build Tools Version: 23.0.1


Java SDK: C:\Program Files (x86)\Java\jdk1.7.0_71
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) Client VM (build 24.71-b01, mixed mode, sharing)

=== Xamarin Android Player ===

Version: 0.6.2
Location: C:\Program Files\Xamarin Android Player\DeviceManager.exe

=== Build Information ===

Release ID: 510020051
Git revision: 36453d5e06a1ad2cc8d261ad32e29abe0ed57c1f
Build date: 2016-01-12 14:16:50-05
Xamarin addins: ab25321e8918350655a7d46c86cfbaac3222fd3c
Build lane: monodevelop-windows-cycle6-c6sr1

=== Operating System ===

Windows 6.3.9600.0 (64-bit)