question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cloud Build fails due to NullRefException in RedistInstall

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
eintopfcommented, Feb 21, 2017

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).

0reactions
eintopfcommented, Feb 21, 2017

Ok, what a mess 😦 However: Big thanks for your efforts! Keep up the great work!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found