UTM
UTM copied to clipboard
Graphics problems in Chrome & Electron apps in macOS 12 guest on M1 Mac
Describe the issue Generally the performance inside the VM is really really good, but some apps just dont work correctly. A few examples:

Permanent graphical Glitches in Visual Studio Code. Also observed in Exodus Wallet, Monero Gui Wallet and Sublime Text. App is unresponsive during these glitches and that doesnt change.

Rider IDE for example is showing a crash (Probably something on their end). But if you continue, same issue as above, its glitchy and unresponsive.
Visual Studio 22 Preview doesnt open at all, Visual Studio 2019 runs perfectly fine and the performance is great.
Configuration
- UTM Version: 3.1.1 (48)
- OS Version: 12.2.1
- Intel or Apple Silicon? Apple Silicon
Debug log I think there is no debug option available for this guest? At least i didnt find one, sorry!
I get the same thing with Chrome. Maybe electron based apps just don't work at all.
You can launch these apps with disabled gpu acceleration from Terminal: open /Applications/Visual\ Studio\ Code.app --args --disable-gpu
You can launch these apps with disabled gpu acceleration from Terminal: open /Applications/Visual\ Studio\ Code.app --args --disable-gpu
This definitely fixed the issue itself, thanks! I didnt know you could do that. Obviously its still not a great experience, its not running smoothly without the 3d acceleration it usually gets, but at least its usable now!
I get the same thing with Chrome. Maybe electron based apps just don't work at all.
Yeah thats what i noticed aswell. Most problems i had were with electron apps. As chrome itself also has the same issue, i guess the issue here is with the chromium render engine.
But i also get a milder form of these issues with safari. The only browser that ive tested which works perfectly so far is firefox.
I get the same thing with Chrome. Maybe electron based apps just don't work at all.
Yeah thats what i noticed aswell. Most problems i had were with electron apps. As chrome itself also has the same issue, i guess the issue here is with the chromium render engine.
But i also get a milder form of these issues with safari. The only browser that ive tested which works perfectly so far is firefox.
I get the same thing. Firefox based browsers all work good. (tested Tor Browser and LibreWolf)
I think it's got something to do with the video driver..
I started to wonder if the Electron problem is on the Apple's end or not. I filed a feedback to apple anyways, they seems to be aware of the issue somehow, but I haven't received a reply back.
About Visual Studio... I managed to find a workaround to run Visual Studio 2022 on an Emulated M1 Mac, you have to run these commands on the Terminal:
export COMPlus_ReadyToRun=0
open /Applications/Visual\ Studio\ \(Preview\).app
However, I am unaware of any drawbacks by doing this. A GitHub contributor explained very detailed about why Dotnet 6 was crashing on M1 Virtual Machines.
I can confirm that disabling the gpu works as a workaround.
upvote for bugfix.
Another upvote for bug fix, as the workaround stopped working, at least for Google Chrome at around version 100 of Google Chrome. (version 105 at time of posting).
If no proper fix is found, could you allow to disable gpu acceleration on system level ? The Standard Notes app, for example, looks like an Electron app but does not respond to the --args --disable-gpu
hack.
Same issue here, on M1 MacOS on MacOS, VS Code does not work even with disabled GPU acceleration both from the command line and from the application itself. Really sad as it's one of my core applications. Interestingly Chrome works very well and so far VS Code was the only app that had issues for me.
I found it interesting that the same issue goes to Steam for macOS, but the problem only occurs after switching between other apps and Steam and does not always arise, guess they originate from the same graphic issue.
Visual Studio 17.4 is now fully functional on a Virtual M1 Mac
I had issues with both Firefox and VS Code.
I used the following tutorial to install Ubuntu on Mac with M1. Image was downloaded from here.
To fix the issue with Firefox and VS Code I've used the following article. To be short - I've disabled Wayland
in the following way:
- Type in terminal -
sudo nano /etc/gdm3/custom.conf
- Uncomment
WaylandEnable=false
by removing#
in front of it - If you have sounds problem, just make sure you've turned it on Linux

But anyway, vscode looks in the following way. Icons and some texts are not shown.

At the same VS Coding works fine

Unfortunately I found the same issues apply to the google drive app :( login screen does not display in macOS.
I've face with graphic issue on macOS 13.2.1 host and Windows 11 (22000.1098) arm64 guest while running Steam app.
Hardware: Macbook Air M2