Visual Studio Android Emulator Black Screen in Apps periodically

I'm currently beginning app development using Xamarin with Visual studio in a virtual machine (My actual PC doesn't support android Emulation but the server next door does).
Whenever I have the virtual android device (using Visual Studio Emulator for Android) open and am using or debugging apps I get a black screen for some unknown reason, I can stop this behaviour by clicking where the home back and app manager buttons would be and this returns me to the app.

After reading other questions and responses online I don't believe my issue is similar, many have issues with flat out black screens with no interactivity, whereas my issue is different.

Some specs:

Virtual Machine I am developing in:
- Intel xeon E5 2630 v4 2.2Ghz
- 12 GB dedicated to my machine
Android device:
- 5" KitKat (4.4) XXHDPI Phone
- API Level 19
If anybody knows what could be the cause of this issue and perhaps a solution, it would be greatly appreciate.d

Best Answer

  • Curtis_MCurtis_M GB
    Accepted Answer

    No however Andrew Crawley from Microsoft gave a workaround however it requires you to run without OpenGL, I'll leave his email here for anybody else that needs it in the future.

    "Hi, Curtis

    I’ve seen this happen when running in nested virtualization scenarios due to the lack of a real GPU, which we don’t really support. If you can run on a non-virtual machine, I recommend you do that.

    If running on “bare metal” is not an option, you can try disabling OpenGL, which is also unsupported, by following the instructions here: https://creativewebspecialist.co.uk/2015/07/22/how-to-use-visual-studio-android-emulator-on-vmware-fusion/

    Thanks"

Answers

  • Curtis_MCurtis_M GBMember

    Upon further inspection if my app is built in Release and is not debugging then these issues do not occur.

  • Curtis_MCurtis_M GBMember

    Nope does it with release now... great

  • ChrisWhiskerChrisWhisker GBMember ✭✭

    @Curtis_M - Did you ever get to the bottom of this problem? - I have the same issue

  • Curtis_MCurtis_M GBMember
    Accepted Answer

    No however Andrew Crawley from Microsoft gave a workaround however it requires you to run without OpenGL, I'll leave his email here for anybody else that needs it in the future.

    "Hi, Curtis

    I’ve seen this happen when running in nested virtualization scenarios due to the lack of a real GPU, which we don’t really support. If you can run on a non-virtual machine, I recommend you do that.

    If running on “bare metal” is not an option, you can try disabling OpenGL, which is also unsupported, by following the instructions here: https://creativewebspecialist.co.uk/2015/07/22/how-to-use-visual-studio-android-emulator-on-vmware-fusion/

    Thanks"

  • Rotating the emulated device (little rotate arrow on toolbar beside the emulator window), then rotating it back will force the screen to redraw also. That's what I do when this occurs.

Sign In or Register to comment.