Apple Silicon Mac, Unity Package Manager cannot connect

Hi, I just solved this problem and I figured this is one of those things that I should document for future wanderers in case they encounter it.

In case you have an Apple Silicon (M1 M2 M3 M4) Mac, you might find out at a certain point that Unity decides, for all your installations, not to start anymore with error:

“Failed to start the Unity Package Manager local server process.” make sure that the process is not blocked by your anti-virus configuration

there is a diagnostic tool and it says
:multiply: Measuring the latency of the latest editor download endpoint…

:multiply: Test the downloadability of the latest editor…

:check_mark: Test the HTTP timings with the latest editor download URL…

:multiply: Accessing Unity Services Endpoints…

and in the logs

:cross_mark: UPM IPC connection (FAIL)
Test connection to UPM via IPC connection

Failed to start UPM process: assertion failed [thread_starts_interval.has_value()]: __thread_starts section missing
(RebaseRuntimeMachO.cpp:191 rebase_image)

this last one is the important one! Basically this binary:
/Applications/Unity/Hub/Editor/ (version) /Unity.app/Contents/Resources/PackageManager/Server/UnityPackageManager is not running because for some reason it’s x64 instead of arm64!

all it takes for this problem to go away is install Rosetta. Run in the terminal:

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Hopefully this will be solved (AHEM AHEM) by Unity in the future, as, you know, you shouldn’t push x64 binaries in arm64 installations. But for now, here’s the solution for you.

Hopefully this will prevent headaches to somebody in the future.

6 Likes

Hi @MarcoCarandenteDCL,

Thank you for reporting this. Could you please let me know which Hub and Editor version you encountered this issue with?

I had three installs all suddenly giving the same error from nowhere: 6000.32f1 46f1 and 2021.3.16f1 hub is 3.12.0 but installation was done on a previous version probably, don’t know which.

It’s not clear to me how this suddenly came out of nowhere for you.
As you noticed (in an unfortunate manner), Unity still requires Rosetta to run as some of its dependencies are still x64.

Your solution (install Rosetta) is the right one. Thanks for sharing it with the community!

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

2 Likes

Beats me! Out of the blue, it didn’t startup anymore. I think I might have had an OS update last night, though? Maybe it disabled Rosetta or something like that.
I was stumped and it was a fun couple of hours understanding what was going on! :smiley:

Hi, I got the same issue, caused by an OS-Update yesterday night. And to confirm: the installation of rosetta solved the problem.

2 Likes

That’s very interesting, what OS update did you get, if you recall? Same question for @ MarcoCarandenteDCL

yay for documenting this pats himself on the back

@davidro_unity it should be 15.4.1

Thanks Marco!

If anyone else runs into the same thing and hasn’t yet force installed installed Rosetta I’d be curious to know if this file exists on their system.

/Library/Apple/usr/lib/libRosettaAot.dylib

Thank you so much. Sincerely!

1 Like

This saved me after my work Mac got stuck in recovery mode. I was able to get it restarted, but was getting this last line of your error anytime I tried to do anything on a terminal. I wasn’t able to find much about this error so thank you so much for posting

2 Likes

Was about to install Rosetta before I read this. Rosetta not force installed (yet) and libRosettaAot.dylib exists at the mentioned path. (M2, Sequoia 15.5)

1 Like

Hi everyone! I’m trying to gather much more information regarding this so have some questions to help me more fully understand the nuances of how Rosetta may be installed on different systems.

What OS version are you seeing the problem on?
Does /Library/Apple/System/Library/Receipts/com.apple.pkg.RosettaUpdateAuto.bom exist?
If it does what is the output of lsbom -f /Library/Apple/System/Library/Receipts/com.apple.pkg.RosettaUpdateAuto.bom
What is the output of pkgutil --pkg-info com.apple.pkg.RosettaUpdateAuto
Does /Library/Apple/usr/libexec/oah/libRosettaRuntime exist?
Does /Library/Apple/usr/lib/libRosettaAot.dylib exist?

Thanks!