Cloud Build fails due to NullRefException in RedistInstall
See original GitHub issueHi,
we are currently trying to get Unity Cloud Build running with Linux (other platforms including OSX and Windows are building fine). However: Our build fails because of this error:
269: [Unity] System.NullReferenceException: Object reference not set to an instance of an object
270: [Unity] at RedistInstall.SetPlatformSettings () [0x00015] in /BUILD_PATH/.../Assets/Editor/Steamworks.NET/RedistInstall.cs:73
271: [Unity] at RedistInstall..cctor () [0x00011] in /BUILD_PATH/.../Assets/Editor/Steamworks.NET/RedistInstall.cs:25
An update to newest version (this repo, not unitypackage) would fix this, but it doesn’t.
Line 73 is if(Path.IsPathRooted(plugin.assetPath)) {
- so the only thing that can be null here is “plugin”. Why would PluginImporter.GetAllImporters()
return a plugin that points to null? Any ideas?
Best regards, Bennet
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
[Linux] Cloud Build fails (tar)
NullReferenceException : Object reference not set to an instance of an object. 12531: [Unity] at RedistInstall.SetPlatformSettings () ...
Read more >Troubleshooting build errors | Cloud Build Documentation
This page provides troubleshooting strategies as well as solutions for some common error messages that you might see when running a build.
Read more >c# - System.NullReferenceException only in Release Build
NullReferenceException : Object reference not set to an instance of an object." Error when I launch a release build of my web application....
Read more >Ignore failed step? · Issue #253 · GoogleCloudPlatform/ ...
Hi all, The first step of my build is a docker pull of an image to be used in the --cache-from of the...
Read more >Solved: cloud build does not recognize my build directory
Solved: I am trying to run a somewhat sophisticated build - a Cloud Run job deployed from a Cloud Build trigger copying sources...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So it is the actual plugin which is null, not the assetPath. I’ll add a null check for the moment + a debug which plugins are NOT null (to be sure that all required plugins are processed).
Ok, what a mess 😦 However: Big thanks for your efforts! Keep up the great work!