MDK-SE
MDK-SE copied to clipboard
Crash: "an unexpected error occurred during the attempt to analyze the solution"
System.NullReferenceException: Object reference not set to an instance of an object.
at Malware.MDKServices.HealthAnalysis.GetProjects(IEnumerable1 projects) at Malware.MDKServices.HealthAnalysis.GetProjects(IEnumerable
1 projects)
at Malware.MDKServices.HealthAnalysis.AnalyzeAsync(Solution solution, HealthAnalysisOptions options)
at MDK.MDKPackage.<OnSolutionLoaded>d__42.MoveNext() in D:\Repos\SpaceEngineers\MDK-SE\Source\MDK\MDKPackage.cs:line 209
Notes:
- Happened immediately when I loaded my .sln.
- There's nothing SpaceEngineers related on my D:\ drive, so I'm not sure where the MoveNext() error is coming from.
- The crash was resolved when I made a new Solution and copied the contents of my Projects over.
Strange - what is different with that solution? And that's from the MDK source and has nothing to do with anything you have 🙂
It could have been solar radiation that corrupted a bit somewhere in the .sln.
Only half-joking.
In the new solution, the only change was that I didn't select the "Trim" option for any of the Projects.
The same error has resurfaced in my new Solution:
System.NullReferenceException: Object reference not set to an instance of an object.
at Malware.MDKServices.HealthAnalysis.GetProjects(IEnumerable`1 projects)
at Malware.MDKServices.HealthAnalysis.GetProjects(IEnumerable`1 projects)
at Malware.MDKServices.HealthAnalysis.AnalyzeAsync(Solution solution, HealthAnalysisOptions options)
at MDK.MDKPackage.<OnSolutionLoaded>d__42.MoveNext() in D:\Repos\SpaceEngineers\MDK-SE\Source\MDK\MDKPackage.cs:line 209
Once again, making a new solution and copy-pasting the contents of all of my .cs files into new projects fixed the error/crashing.
Next time, please upload the failing project.
Since I haven't received any failing projects again I'll assume this is no longer a problem.