utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
26.66k stars 1.34k forks source link

Black Screen After Switching To Another App/Home Screen #6018

Open MotorBottle opened 9 months ago

MotorBottle commented 9 months ago

Describe the issue Black Screen After Switching To Another App/Home Screen. When I go back to UTM, there was only a black screen while the cursor was able to move. I had to close the app and restart it and the VM

Configuration (required)

imkion commented 5 months ago

I'm in the same situation as you, but I have founded a solution, after entering the system in UTM app , tap once with your finger or 3 times in a row on the 3 dots at the top of the screen, then select Split screen browsing, then select to open another app, and drag the dividing line in the middle to finally minimize the UTM app, after doing so, the next time you open the UTM app, the screen will not go black.

osy commented 5 months ago

image

curious if the run in background option is selected

imkion commented 5 months ago

image

curious if the run in background option is selected

Yes, I have selected the run in background option, but the screen is still black after Switching To Another App/Home Screen. However, I solved it temporarily through the above method. My other iOS 15.1 iPad Pro 2021 don't like this.

imkion commented 5 months ago

It seems that this bug is 100% reproducible on iOS 16.3 devices.

MotorBottle commented 5 months ago

An update on my case guys. I updated UTM to 4.5.0beta and 4.5.1beta. The 2 versions partially solved the problem. When I retrun from home/other app, the view would still turn black but moving the cursor could respawn the view (But the wallpaper did not show up directly, only other elements of the UI. Wallpaper could show up if I rotated the screen or wait for a while, but this could not be precise cuz I'm not using it lately).

imkion commented 5 months ago

An update on my case guys. I updated UTM to 4.5.0beta and 4.5.1beta. The 2 versions partially solved the problem. When I retrun from home/other app, the view would still turn black but moving the cursor could respawn the view (But the wallpaper did not show up directly, only other elements of the UI. Wallpaper could show up if I rotated the screen or wait for a while, but this could not be precise cuz I'm not using it lately).

You can try the method I mentioned earlier,You can use split screen browsing to minimize UTM app and then switch to other app/home screen, which can solve the problem perfectly.

osy commented 5 months ago

Another thing to try: after getting the black screen, try switching to split screen or rotating the iPad to cause a screen resolution change. I'm wondering if there's some Metal framebuffer that's getting invalidated.

Does this happen if you use a graphics card that doesn't support GPU acceleration?

MotorBottle commented 5 months ago

I did test on various of settings on 4.5.1beta. Here are the results.

1st thing: Render Backend switching showes both Angel OGL and Angel Metal have this issue.

2nd thing: Rotation of screen did helped making the view getting normal.

3rd thing: A new problem I found during the test which did not happen in 4.4.5. After swtiching back from home screen, the rotation sometimes appear to be inappropriate, like when ipad and vm view was horizontal, and I switch to home then wait 5 seconds and back, it would turn vertical. But could be turned normal by rotating the ipad for couple of times.

4th thing: Your hypothesis was correct, choosing a non-acceleration supported gpu would not perform the black screen issue, but the rotation issue described in 3rd also happens.

MotorBottle commented 5 months ago

I'm in the same situation as you, but I have founded a solution, after entering the system in UTM app , tap once with your finger or 3 times in a row on the 3 dots at the top of the screen, then select Split screen browsing, then select to open another app, and drag the dividing line in the middle to finally minimize the UTM app, after doing so, the next time you open the UTM app, the screen will not go black.

Well, I tried as you said but still got the rotation and black screen issue happened

imkion commented 5 months ago

I'm in the same situation as you, but I have founded a solution, after entering the system in UTM app , tap once with your finger or 3 times in a row on the 3 dots at the top of the screen, then select Split screen browsing, then select to open another app, and drag the dividing line in the middle to finally minimize the UTM app, after doing so, the next time you open the UTM app, the screen will not go black.

Well, I tried as you said but still got the rotation and black screen issue happened

You did not follow my instructions completely:

1.Open the UTM app and enter any system. 2.Tap the three dots in the middle of the top of the screen and select split-screen browsing. 3.Open another application. At this point, half of the screen should be UTM and the other half should be the other application. 4.Hold your finger on the middle of the divider and drag it until UTM disappears. 5.Switch to another application or lock the screen for 10 minutes. When you come back and open the UTM app again, you will find that the screen is no longer black.