Hi, this is the first time I post on this forum. if this is missplaced please tell me.
(Edit : I just saw there was a dedicated OSX section -.-')
(Edit2 : I’ve posted at the correct place but I can’t delete this obsolet post)
So : I’m making a mobile game.
I mainly develop on my windows computer.
To do IOS Build I need to use a mac.
lately when I pull the project on my mac (I use git) it won’t open. Instead the Editor crash
Here is what I get from the recovery message :
Searchs only lead me to this old forum post :
but it is old and doesn’t correspond exactly to my case.
To bypass this issue I know I can delete the Library folder and then the project will open fine (although it take some times to rebuild)
This is not a blocker for me but it might be for other people
Are you source controlling you library directory?
Its not interchangeable between platforms, its all temp data. Trying to use it between platforms is likely the reason for your crash. https://docs.unity3d.com/Manual/ExternalVersionControlSystemSupport.html
Remove the Library dir from source control and add it to the ignore list so each platform can manage their own version.
I have the same crash - though deleting/rebuilding library does not fix the issue for more than a single unity session, and library folder is not included in source control. As soon as I exit Unity and reopen this one project, it will crash again with:
And a bunch of other errors related to shader stuff. Was running metal. On airplane, will try to follow up with further details later. Probably some kind of incompatibility between a shader/model/texture in the project and metal/mac unity version, as other projects open fine.
The bug report options that pops up are just for submitting to Apple, not Unity. And I can’t, unfortunately, share the project it was happening in. I haven’t seen this issue with other cross-platform projects, which is why I think it might have been some kind of incompatibility with a shader imported from a 3rd party plugin. Is there a way to log the opening of a project so that I can see what the project might have been crashing on?
I was able to get my project to open again by manually editing the ProjectSettings.asset file to turn off Metal editor rendering support. So I can at least confirm that the crash is caused by the new metal editor renderer.
When the crash happens it also leaves behind a single Unity process that starts to overheat the mac because they stack up and are all using heaps of CPU…
Using Unity 5.6.0f3
MacOs 10.12.4
but turning metal support off does fix this issue for me…
I have same problem.
Cannot open project after upgrade to Unity 5.6.1f1
Even if I delete Library folder, I cant open project once.
Also, I found a file “shadercompiler-UnityShaderCompiler0.log” in Library folder,
The content of this file is:
Base path: /Applications/Unity/Unity.app/Contents
Cmd: initializeCompiler
Unhandled exception: Protocol error - failed to read correct magic number
Quitting shader compiler process
Same problem and error message as in the original post for me, tested with 5.6.1f1 and 5.6.2f1.
Library folder is not in source control. After deleting the library folder and reimporting the entire project it opens successfully once, then crashes again the next time.
I solved it by running Unity from the Terminal with -force-glcore parameter (the Documentation says this is “Windows only”, but it works on Mac too), then disabling “Metal Editor support” in Edit → Project Settings → Player.