Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse cursor disappears completely (from the UTM main window) if the cursor is inside the window of a closing macOS 14 VM (while it's saving its state) #5607

Closed
rxhfcy opened this issue Aug 26, 2023 · 6 comments
Labels
apple virtualization macOS Virtualization issues
Milestone

Comments

@rxhfcy
Copy link

rxhfcy commented Aug 26, 2023

Describe the issue
The mouse cursor disappears completely (edit: from the UTM main window) if you close a macOS 14 (beta) VM window and then immediately move the mouse cursor inside that same VM window (while the window is still in the process of closing / saving the VM state)

edit: The mouse cursor only comes back after quitting and reopening UTM.app

Configuration

  • UTM Version: v4.4.0 (Beta) / 4.4.0 (88)
  • macOS Version: 14.0 Beta (23A5328b)
  • Mac Chip (Intel, M1, ...): M1 (MacBook Air M1, 16 GB RAM)

Steps to reproduce:
0. Make a new macOS 14 Beta VM (see below for details)

  1. Start a macOS 14 Beta VM, login into macOS normally
  2. Close the macOS UTM VM window from the red close button (top left corner) (UTM begins to save the state of the VM)
  3. (a) Immediately move the mouse cursor down and right so that the cursor is hovering inside the VM window you just clicked to close

What happens: the mouse cursor disappears completely (!) and doesn't reappear until you switch to another application or quit UTM.app
Expected: normal mouse cursor

  1. (b) If after clicking close you keep the mouse cursor outside the VM window, the cursor doesn't disappear.

The mouse cursor only seems to disappear if it's hovering inside the VM window while it's closing / saving the state of the VM.

PS. Here's how I made the macOS 14 beta VM, it's as standard/uninteresting as possible:

  1. Download "UniversalMac_14.0_23A5328b_Restore.ipsw" (14.0 beta 6) from here: https://ipswbeta.dev/macos/14.x/
  2. In UTM, click "+" (New)
  3. Virtualize
  4. macOS 12+
  5. Browse... (choose the ipsw file downloaded previously)
  6. Continue -> Continue -> Save
  7. Edit the VM settings -> Virtualization -> disable "Enable entropy device" and "Enable Sound" -> Save
  8. Start the new VM
  9. Install macOS normally
@rxhfcy rxhfcy changed the title Mouse cursor disappears completely if the cursor is inside the window of a closing macOS 14 VM (while it's saving its state) Mouse cursor disappears completely (from the UTM main window) if the cursor is inside the window of a closing macOS 14 VM (while it's saving its state) Aug 27, 2023
@rxhfcy
Copy link
Author

rxhfcy commented Aug 27, 2023

I edited the title and description a little bit to highlight the fact that the mouse cursor disappears from the main UTM.app window itself, not just from the VM window

@osy osy added the apple virtualization macOS Virtualization issues label Sep 2, 2023
@osy
Copy link
Contributor

osy commented Sep 2, 2023

This is an issue with Virtualization.framework. You can probably report the issue to Apple but if not, at some point, I will compile all the issues filed here and send them to Apple.

@rxhfcy
Copy link
Author

rxhfcy commented Sep 2, 2023

In the meantime, is it possible to somehow work around this Apple bug in UTM UI?

  • Somehow notice that the cursor is gone and try to fix it by restarting whatever needs to be restarted (or something)?

  • ...or even assume that the cursor is gone every time a macOS 14 VM is saved / stopped and automatically apply the fix/hack?

  • or maybe force a custom mouse cursor in UTM UI or something, if that makes it reappear?

After the cursor disappears, the mouse still works correctly, the UTM UI can be clicked etc, the cursor works normally in other applications, and the it reappears in UTM after restarting UTM.

@osy osy added this to the v4.4 milestone Sep 2, 2023
@osy
Copy link
Contributor

osy commented Sep 2, 2023

Let me try

@osy osy closed this as completed in ce9f7f1 Sep 2, 2023
@johnnyshankman
Copy link

I still have this issue constantly. Randomly the cursor just disappears and i cannot get it back.

@curtismccaw
Copy link

Same issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apple virtualization macOS Virtualization issues
Projects
None yet
Development

No branches or pull requests

4 participants