UI Toolkit does not work on macOS Ventura (macOS 13.0)

We are receiving numerous reports from players that after upgrading to macOS Ventura (macOS 13.0), they are unable to play our game because it is missing random pieces of text and icons.

The effect is that some elements in the UI do not render at all, and leave an empty space on the screen.

It may be related to this problem, but whereas that thread affects the editor, we are seeing it in actual standalone builds:

Has anyone else experienced the problem and knows if there is a workaround? We cannot tell our players to switch from Metal to OpenGL.

Thanks for reporting the problem. We are investigating. With what version of the editor was the player built with?

@AlexandreT-unity Thanks for reaching back. The game was built with 2022.1.6f1.

We have not been able to upgrade since 2022.1.6f1 due to a bug with scrolls which makes UI Toolkit unusable in any version post 2022.1.6f1 (Unity Issue Tracker - UI panel position resets when sliders are scrolled in Play mode).

Do you see it in the editor too? Also, it would help if you could submit a formal bug report in Help > Report a bug…

It should include the editor log that will contain useful data like the GPU/driver version, etc. But also, please attach a device log if you can. Please report the case number here so I can follow up faster.

@AlexandreT-unity Our team still runs macOS Monterey, so we have not yet reproduced the problem internally. But the number of reports that we receive from players suggests that it likely affects everyone, or a significant portion of people, who upgraded to macOS Ventura.

Is there a chance that some of your clients still run on a version that was built from 2020.3 (it would have been with the runtime package at that time)? I have identified the fix for that version, but it seems to already be applied in 21.1+. I am unable to repro in 22.1

@AlexandreT-unity The reports we received are all from the most recent version of the game, built with Unity 2022.1.6f1. For example, please see the attached screenshot from one of the reports which shows a missing icon. The screenshot also includes the game version, which allows us to confirm that it was built with 2022.1.6f1.

Other players also reported missing pieces of text in the options menu and other places in the game. All of them run macOS Ventura and a game version built with Unity 2022.1.6f1. We did not receive any such reports from players on other operating systems, or on older macOS versions.

Ok thanks for confirming, we’ll continue to investigate.

Good news, I was able to get a similar repro to your problem on the version you mentioned (and others).
It turns out there are 3 bugs with a similar root cause.

a) Text and textures becomes white (2020.3 only)
The ui toolkit render ids is incorrectly decoded in the shader, resulting in the wrong render type being used

b) Some ui stuff randomly goes “away” (your thread)
Affects all versions. Some transform ids, clipping rects and text settings are incorrectly decoded in the shader, which can move the mesh elsewhere (often offscreen) or show it incorrectly.

c) Graphview edges are missing
Affects all versions. The graphview edge render id is incorrectly decoded in the shader, so the special shading isn’t applied.

I have fixes for (b) and (c), so as soon as QA is done processing the cases I’ll be able to push my fixes through our integration pipeline.

Does (b) also affect Unity 2021, or is it specific to Unity 2022?

We haven’t had time to check all versions yet, but given that the fix applies to a part of the code that has remained unchanged for several years, I would say that pretty much all versions are affected. Sometimes it can be hard to notice. It can be a missing icon, a missing text, a missing background or border. When I opened the pacakge manager, sometimes one of the package names would not be displayed for example. Of course you need to have Ventura and the right GPU to repro (Radeon Pro).

When we have a case on the issue tracker I’ll update my post with the link and it will show exactly which versions are affected and you will be able to track the progress.

Good to know, thanks!

@AlexandreT-unity Thank you, the breakdown of the three separate problems is super helpful and it is good to know you were able to reproduce them!