IntelliJ IDEA hangs when used with Apple Vision Pro & Mac Virtual Desktop

Answered

Has anyone else seen this issue?

I spend almost all of my workday in an Apple Vision Pro, and much of that time is spent using IntelliJ IDEA.

I've noticed that while I'm using the Vision Pro with IntelliJ, taking the device off (doffing) and putting it back on (donning) will cause IntelliJ to lock up completely, requiring a Force Quit of the application.

In addition to he application freeze, a strange, slow animation occurs in the project window. The window will turn from grey to black in a creeping animation from left to right. When this happens, the UI is completely locked. Using ⌘-Q does not work to quit the app, and clicking the “red stoplight” in the top-left corner does not close the window. The only recourse at this point is to Force Quit — and not just a single Force Quit, either; this freeze requires two Force Quit invocations for the app to terminate.

STEPS TO REPRODUCE

  1. Have a Mac running IntelliJ IDEA (I am on 2024.3 Ultimate Edition Build #IU-243.21565.193)
  2. Open a project in IntelliJ IDEA
  3. Don the Vision Pro
  4. Using Mac Virtual Display, connect to the Mac running IntelliJ IDEA from the Vision Pro
  5. Doff the Vision Pro
  6. Don the Vision Pro again & use MVD to reconnect to the Mac

OBSERVATIONS

  1. IntelliJ IDEA is no longer responding to any keypresses or mouse clicks
  2. The project window will show a slow horizontal  rightward-sweeping animation where the grey window will become black (see screenshot below)
  3. Nothing can be done to recover except Force Quit

EXPECTATIONS

IntelliJ would behave correctly and consistently regardless of how many times I’ve reconnected MVD.

SCREENSHOT

The attachment shows the IntelliJ IDEA project window in the process of turning from grey to black in a slow, horizontally-creeping animation. The dividing line between the black and grey can be seen under the green maximize button at the top-center of the image. 

0
9 comments
Could you please help collect the zipped log folder from "Help | Collect Logs and Diagnostic Data" and upload it to https://uploads.jetbrains.com/ letting us know the upload id?
0

Thank you Bond. The issue just happened again — I have collected the logs & uploaded this:

Upload id: 2024_12_18_RoyzhTYiNaoy5F1uUDTEo7 (file: idea-logs-20241218-1738489250193694712345661.zip)

0
Thank you for sharing the log, it looks like a match of https://youtrack.jetbrains.com/issue/JBR-5497/Freeze-in-metal-MTLRenderQueue.flushNow

Please try the solutions mentioned there and see if it helps.
0

Hi Bond,

I did try the solutions mentioned by that link, but I am still experiencing the freezes with IntelliJ IDEA when I take the Apple Vision Pro off and put it back on.

Is there anything else I can try? This is making the daily development experience unusable.

Thanks,

ECM

0

Ecm Thank you for trying out. Did you try all the listed solutions? Was there any improvements? Could you please share the latest zipped log folder also? I'd like to see how the new dump look like with the solutions applied this time.

0

Hi Bond, I sent in the updated logs: Upload ID: 2025_01_07_24rhATP2FN6q48yor9JVvh (file: idea-logs-20250107-13300714447496927327517349.zip)

As for what I tried, I did everything shown in the Solution above, but have not yet tried the suggestion below it to add `-Dawt.mac.flushBuffers.invokeLater=true ` to the Custom VM Options. I'll try that next.

0

Ecm Thank you. The dump still shows the same pattern, and BTW, the log indicates “-Dsun.java2d.metal=true” still, could you please double check that? Also, would 2024.1.X make a difference?

0

BTW, the log indicates “-Dsun.java2d.metal=true” still, could you please double check that?

Presumably, this is simply a consequence of me removing the previously-added “-Dsun.java2d.metal=false” from the VM options as instructed by Item 4 of the solution I followed here.

Was I not supposed to remove that?

This screenshot shows all the values currently defined when I select “Edit Custom VM Options…” —

Please send me the most up-to-date instructions and I'll follow those.

0

Note that I added “-Dawt.mac.flushBuffers.invokeLater=true” yesterday and so far have not yet encountered the hang. Fingers crossed!

0

Please sign in to leave a comment.