不得不表示这是个很神奇的问题, 最近在开发时候碰到(5.3.6)‘Fatal error!GetManagerFromContext: pointer to object of manager ‘(null)’ is NULL (table index 5)’,解决方案也很神奇,分享给大家。
This morning starting up Unity 5.1.0 greeted me with the following message and a blank project selection window (I have unity configured to ask me which project to load on startup)
Fatal error!GetManagerFromContext: pointer to object of manager ‘(null)’ is NULL (table index 5)
Update
Confirmation from Unity that this is a bug in the updater and they have now disabled this server side checking for versions 5.1.0f3 – 5.1.1f1 so hopefully that’s the last we see of it!
Solution
Many thanks to @Rusty_Bolt on twitter who tweeted to suggest switching WiFi/Internet off which lead me to the following steps. Switching WiFi off would indeed allow unity to start, however after quitting and starting again if WiFi was on (usually is!) it would crash again.
Switch your internet connection off 。断网
Load Unity and select a project 重开unity
Switch your internet connection on 开启网络
Now within Unity load a new project via File->OpenProject
Quit unity
Hopefully now when you start unity everything is back to normal
Other things I tried
As part of trying to track this down I tried the following, none of which helped.
Delete all unity settings from ~/Library/Preferences
Delete my Unity license file from Library/Application Support/PACE Anti-Piracy/License Files see link
Moved all of my unity projects to a different location to ensure they were not involved
Deleted Unity
Installed Unity
网友评论