Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException in ContractParameter.Update #695

Open
lpgagnon opened this issue Oct 9, 2020 · 3 comments
Open

NullReferenceException in ContractParameter.Update #695

lpgagnon opened this issue Oct 9, 2020 · 3 comments

Comments

@lpgagnon
Copy link

lpgagnon commented Oct 9, 2020

Using CC 1.30.5. Don't know if it happened with previous version.

Seeing this on every scene change:

[ERR 11:48:28.059] [ContractParameter] - Call to OnUpdate failed System.NullReferenceException: Object reference not set to an instance of an object
  at ContractConfigurator.ContractVesselTracker+<>c__DisplayClass21_0.<GetAssociatedKeys>b__0 (System.Collections.Generic.KeyValuePair`2[TKey,TValue] p) [0x00007] in <ef0243a06f2841fe9bf57034a334902e>:0 
  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00037] in <fbb5ed17eb6e46c680000f8910ebb50c>:0 
  at ContractConfigurator.ContractVesselTracker+<GetAssociatedKeys>d__21.MoveNext () [0x000c1] in <ef0243a06f2841fe9bf57034a334902e>:0 
  at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in <fbb5ed17eb6e46c680000f8910ebb50c>:0 
  at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00015] in <fbb5ed17eb6e46c680000f8910ebb50c>:0 
  at ContractConfigurator.Parameters.Duration.OnUpdate () [0x000de] in <ef0243a06f2841fe9bf57034a334902e>:0 
  at Contracts.ContractParameter.Update () [0x00053] in <9d71e4043e394d78a6cf9193ad011698>:0 

This is a RP-1 install, I imagine this is getting triggered by something wrong in a particular contract. But presumably CC should at least handle it more gracefully, detecting the error and reporting it in a more meaningful way.

@jrossignol
Copy link
Owner

This doesn't look like it would've been caused by anything I did recently. Can you send your save file and I'll try to reproduce?

@lpgagnon
Copy link
Author

warning, 60MB zip, 90MB .sfs (principia)
https://drive.google.com/file/d/1XT1l5CdbBDZYYIH1432EIKF6f9hrjZXx/view?usp=sharing

I tried deleting all vessels to get a more reasonable size, but that made the exception go away. I expect that'll make reproduction problematic.

I don't relish the idea of binary-searching which vessel(s) might be triggering it...

@jrossignol
Copy link
Owner

Will hopefully look at this later tonight.... Principia and the huge file makes it pretty tough though, but hopefully I'll figure something out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants