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)

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


Attachments

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)

Note You need to log in before you can comment on or make changes to this bug.