Jump to content

What mod is causing this nullref?


Recommended Posts

Just got a whitescreen crash... the log is full of entries similar to or identical to this:

 

[EXC 21:26:49.087] NullReferenceException: Object reference not set to an instance of an object
    ScienceChecklist.ExperimentFilter.IsAmountLimitedByDMagic (ScienceChecklist.ScienceInstance x, System.Collections.Generic.IList`1[T] DMModuleScienceAnimateGenerics) (at <e37e30492055407cb07984669fc8a878>:0)
    ScienceChecklist.ExperimentFilter+<>c__DisplayClass42_0.<UpdateFilter>b__4 (ScienceChecklist.ScienceInstance x) (at <e37e30492055407cb07984669fc8a878>:0)
    System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].ToList () (at <fbb5ed17eb6e46c680000f8910ebb50c>:0)
    System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) (at <fbb5ed17eb6e46c680000f8910ebb50c>:0)
    ScienceChecklist.ExperimentFilter.UpdateFilter (System.Collections.Generic.IList`1[T] DMModuleScienceAnimateGenerics) (at <e37e30492055407cb07984669fc8a878>:0)
    ScienceChecklist.StatusWindow.RefreshFilter (System.Object sender, System.EventArgs e) (at <e37e30492055407cb07984669fc8a878>:0)
    ScienceChecklist.StatusWindow.<.ctor>b__32_2 (System.Object s, System.EventArgs e) (at <e37e30492055407cb07984669fc8a878>:0)
    ScienceChecklist.xScienceEventHandler.RefreshFilter () (at <e37e30492055407cb07984669fc8a878>:0)
    ScienceChecklist.xScienceEventHandler.Update () (at <e37e30492055407cb07984669fc8a878>:0)
    ScienceChecklist.ScienceChecklistAddon.Update () (at <e37e30492055407cb07984669fc8a878>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

 

Is this being caused by [x] Science, DMagic Orbital Science, Unity, or something else?  I'm not expert enough to parse it with confidence.

ETA:  Another possibility:  USI Sounding Rockets

Edited by MaxwellsDemon
addition
Link to comment
Share on other sites

If I had to guess I'd say it was a conflict between DMagic Orbital Science and [X] Science.

The easiest way to test this is to remove [X] Science and see if the errors go away. if so, ask on that mod's thread for help. I've never used DMagic Orbital Science but I believe it has parts, so removing it is probably not a valid option.

The reason I think this is because of the line:

ScienceChecklist.ExperimentFilter.IsAmountLimitedByDMagic (ScienceChecklist.ScienceInstance x, System.Collections.Generic.IList`1[T] DMModuleScienceAnimateGenerics) (at <e37e30492055407cb07984669fc8a878>:0)

ScienceChecklist sounds like maybe something from [X] Science (unless you have a mod named "Science Checklist" installed I suppose) and it seems to have code that is DMagic aware (because of IsAmountLimitedByDMagic). And it appears that DMagic has some custom animation code (DMModuleScienceAnimateGenerics). I've seen errors before when one mod changes something that the stock game does, and another mod assumes things are happening the stock way.

Also, I have some vague memories when I was writing All Y'All years ago, having some hard to fix issues with modded science in my "perform all science" button.

But still, it's just a guess.

Edited by 5thHorseman
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...