Mod compatibility checker - null issue
See original GitHub issueSubaru had this error on the mods incompatibility checker (LABS prior to PR #333) - only happened one time, I’m unable to reproduce it.
However, I’ll add some try/catch wrappers to the updates in #333 so future errors won’t impact end-users.
Note: Mac platform - Mac has known issues with Linq, we should avoid Linq wherever possible. I’ll try and rip out the Linq code from #333 - it’s only used in one place IIRC, a .last()
somewhere.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: source
at System.Linq.Check.Source (System.Object source) [0x00000] in <filename unknown>:0
at System.Linq.Enumerable.ToArray[PublishedFileId] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at TrafficManager.Util.ModsCompatibilityChecker.GetUserModsList () [0x00000] in <filename unknown>:0
at TrafficManager.Util.ModsCompatibilityChecker..ctor () [0x00000] in <filename unknown>:0
at TrafficManager.TrafficManagerMod.OnGameIntroLoaded () [0x00000] in <filename unknown>:0
at TrafficManager.TrafficManagerMod.OnEnabled () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Anything to replace the "(Obsolete, do not use) Mod ...
So I installed a bunch of new mod, and have been having errors, I read a lot of thread telling me to install...
Read more >HELP, [System.NullReferenceException] error :: Cities
I need to go through the broken mod list, but there is some which definitely cause of your issue. As the error message...
Read more >Cities: Skylines (Steam) - NullReferenceException appearing ...
First check the mod compatibility checker report (in options of Auto Repair) to make sure you don't have outdated workshop and be sure...
Read more >Mod Compatibility
Highly Incompatible · Incompatible · Slightly Incompatible · Errors With RT · Incompatibility Issues · Needs Triage · Compatible / Unknown.
Read more >Fatal: null error with starsector+ mod
I've been reading through other bug reports trying to figure out what's wrong, but I haven't found a solution yet.
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
I’m not sure the “massive performance issues” on Mac were caused by Linq. Rather by an inappropriate Linq usage 😄
@VictorPhilipp, can you give a particular example where Linq causes performance drop on Mac only? This is a very interesting topic.
@krzychu124, that field indeed can be null. The call into your code comes from
Awake
of theOptionsMainPanel
. TheContentManagerPanel
is a different object, thus it will be initialized independently from the options panel. The initialization order is not guaranteed.@dymanoid Check the updated code in #333 - that scenario should no longer be an issue as it no longer pulls mod list from or otherwise interacts with the
ContentManagerPanel
.