UTM icon indicating copy to clipboard operation
UTM copied to clipboard

Graphics problems in Chrome & Electron apps in macOS 12 guest on M1 Mac

Open user425846 opened this issue 3 years ago • 10 comments

Describe the issue Generally the performance inside the VM is really really good, but some apps just dont work correctly. A few examples:

Bildschirmfoto 2022-02-27 um 03 08 12

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.

Bildschirmfoto 2022-02-27 um 03 18 20

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!

user425846 avatar Feb 27 '22 02:02 user425846

I get the same thing with Chrome. Maybe electron based apps just don't work at all.

kjunggithub avatar Mar 05 '22 04:03 kjunggithub

You can launch these apps with disabled gpu acceleration from Terminal: open /Applications/Visual\ Studio\ Code.app --args --disable-gpu

alxsoft avatar Mar 05 '22 06:03 alxsoft

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!

user425846 avatar Mar 05 '22 10:03 user425846

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.

user425846 avatar Mar 05 '22 10:03 user425846

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)

kjunggithub avatar Mar 16 '22 17:03 kjunggithub

I think it's got something to do with the video driver..

kababoom avatar Mar 17 '22 11:03 kababoom

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.

LeonSolisPedro avatar Apr 02 '22 21:04 LeonSolisPedro

I can confirm that disabling the gpu works as a workaround.

handletastic avatar May 02 '22 07:05 handletastic

upvote for bugfix.

jukrb0x avatar Jun 09 '22 13:06 jukrb0x

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).

wakco avatar Sep 19 '22 04:09 wakco

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.

julbd avatar Sep 23 '22 11:09 julbd

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.

ElevateAir avatar Oct 03 '22 20:10 ElevateAir

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.

jukrb0x avatar Oct 09 '22 06:10 jukrb0x

Visual Studio 17.4 is now fully functional on a Virtual M1 Mac

LeonSolisPedro avatar Nov 12 '22 18:11 LeonSolisPedro

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:

  1. Type in terminal - sudo nano /etc/gdm3/custom.conf
  2. Uncomment WaylandEnable=false by removing # in front of it
  3. If you have sounds problem, just make sure you've turned it on Linux
image

acherkashin avatar Dec 02 '22 06:12 acherkashin

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

image

At the same VS Coding works fine

image

acherkashin avatar Dec 04 '22 15:12 acherkashin

Unfortunately I found the same issues apply to the google drive app :( login screen does not display in macOS.

ElevateAir avatar Jan 04 '23 14:01 ElevateAir

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

mahnunchik avatar Feb 25 '23 19:02 mahnunchik