Jump to content

[1.11.x] MADLAD - Mod Assembly Dll Loading Anomaly Detector 2.2.1.2 (01/03/2021)


severedsolo

Recommended Posts

5 hours ago, Vorg said:

This keeps doing a popup but I don't know which mod is triggering it. Must have missed something when going through them:

 

  Hide contents


[ERR 19:25:06.827] AssemblyLoader: Exception loading 'MultiAnimators': System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
[2019-11-18 21:54:26]: 002_MultiAnimators, Version=1.1.0.2, Culture=neutral, PublicKeyToken=null
Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x0001c] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 
System.RuntimeType
Could not load file or assembly 'DMModuleScienceAnimateGeneric, Version=0.21.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at KerboKatz.ASS.AutomatedScienceSampler.CheckTypeForScienceActivator (System.Type type) [0x00060] in <5a8cf6fa51b341e5a2b9633bfcfe406f>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x00030] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 
System.RuntimeType
Could not load file or assembly 'StationScience, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at KerboKatz.ASS.AutomatedScienceSampler.CheckTypeForScienceActivator (System.Type type) [0x00060] in <5a8cf6fa51b341e5a2b9633bfcfe406f>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x00030] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 

[2019-11-18 21:56:40]: 002_MultiAnimators, Version=1.1.0.2, Culture=neutral, PublicKeyToken=null
Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x0001c] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 
System.RuntimeType
Could not load file or assembly 'DMModuleScienceAnimateGeneric, Version=0.21.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at KerboKatz.ASS.AutomatedScienceSampler.CheckTypeForScienceActivator (System.Type type) [0x00060] in <5a8cf6fa51b341e5a2b9633bfcfe406f>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x00030] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 
System.RuntimeType
Could not load file or assembly 'StationScience, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at KerboKatz.ASS.AutomatedScienceSampler.CheckTypeForScienceActivator (System.Type type) [0x00060] in <5a8cf6fa51b341e5a2b9633bfcfe406f>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x00030] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 

[2019-11-18 23:14:20]: 002_MultiAnimators, Version=1.1.0.2, Culture=neutral, PublicKeyToken=null
Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x0001c] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 
System.RuntimeType
Could not load file or assembly 'DMModuleScienceAnimateGeneric, Version=0.21.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at KerboKatz.ASS.AutomatedScienceSampler.CheckTypeForScienceActivator (System.Type type) [0x00060] in <5a8cf6fa51b341e5a2b9633bfcfe406f>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x00030] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 
System.RuntimeType
Could not load file or assembly 'StationScience, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at KerboKatz.ASS.AutomatedScienceSampler.CheckTypeForScienceActivator (System.Type type) [0x00060] in <5a8cf6fa51b341e5a2b9633bfcfe406f>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x00030] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 

[2019-11-18 23:17:44]: 002_MultiAnimators, Version=1.1.0.2, Culture=neutral, PublicKeyToken=null
Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x0001c] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 
System.RuntimeType
Could not load file or assembly 'DMModuleScienceAnimateGeneric, Version=0.21.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at KerboKatz.ASS.AutomatedScienceSampler.CheckTypeForScienceActivator (System.Type type) [0x00060] in <5a8cf6fa51b341e5a2b9633bfcfe406f>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x00030] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 
System.RuntimeType
Could not load file or assembly 'StationScience, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
  at KerboKatz.ASS.AutomatedScienceSampler.CheckTypeForScienceActivator (System.Type type) [0x00060] in <5a8cf6fa51b341e5a2b9633bfcfe406f>:0 
  at KerboKatz.Utilities.LoopTroughAssemblies (System.Action`1[T] CheckType) [0x00030] in <a9fd0328e42c42c683680f8ee94d4e7e>:0 

 

 

Indirectly the exception is being triggered by Automated Science Sampler - it's complaining that Dmagic Orbital Science and Station Science aren't installed.

Knowing the way that mod works, you can safely ignore those errors if you don't have either of those mods installed. The dlls that have failed to load are just "extras" to make it work properly with those mods.

You have brought up a good point though, I should provide a way for "known failures" to not trigger.

Edited by severedsolo
Link to comment
Share on other sites

Just want to say thanks for the Righteous Work.

MADLAB just pointed out two problems with my install while also teaching me something
important to look for in the logs while when installing a new mod.

I also fully support checking for "correct install locations" - even if your are knowledgeable
it is all to possible to fumble finger an install into the wrong sub directory and not catch it
until your game is mucked up.

Link to comment
Share on other sites

  • 3 weeks later...

MADLAD 2.2 Released

  • Fix PATH always failing in InstallValidator (linuxgurugamer)
  • Added support for KSPAssembly dependencies
  • Added support for a whitelist where an assembly is expected to fail to load (for example ContractConfigurators extra dlls to support KerbalKonstructs) - see OP for details
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
  • 2 weeks later...
6 hours ago, severedsolo said:

Should be - there were no changes, it was just a recompile.

Thats what I thought, based on the release notes... Just wanted to know if it would be safe to ignore the KSPAVC warning for 1.8.1, and to go ahead and override it.

Link to comment
Share on other sites

  • 11 months later...
39 minutes ago, Murdabenne said:

We are now a couple major version numbers behind.  Im pretty sure this still works (no reason why it shouldn't, right?), any chance to get a version compatibility bump in CKAN (or a recompile against 1.11.1)?

No reason it would fail to work unless we get a Unity update / .Net framework change (the mod doesn't actually interface with KSP at all, it uses basic Unity and .Net file system methods only).

I'll do a recompile in a couple of weeks - currently waiting for my new PC to arrive as the laptop I'm currently using complains when Firefox is running, I'm not brave enough to try installing Rider on it :)

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 months later...

Thanks for writing this mod!  It gives me a little more peace of mind running the many mods that I do.

Just FYI, the mod ASET PRC  has its .version file in the folder Gamedata/ASET.   MADLAD apparently expects to find it in the folder Gamedata/ASET/PRC, and complains with the following stark warning when it's not there:

KSP Installation Validation Monitor
INSTALLATION ISSUES
ASET_PRC has been installed incorrectly and will not function properly.  All files should be located in: <KSP install directory>/GameData/ASET/PRC. Do not move any files from inside that folder.

Related entries in KSP.log:  

[LOG 21:27:51.942] [MADLAD]: Found 0 exceptions
[LOG 21:27:51.943] [MADLAD]: Parsed Log in 53 ms
[ERR 21:27:52.088] InstallValidator: Missing file: ASET_PRC.version

[LOG 21:27:52.108] [MADLAD]: Parsed .version files in 164ms

ASET PRC in fact functions just fine.  Copying the .version file from Gamedata/ASET to Gamedata/ASET/PRC silences the warning.  Thought you'd like to know.

Link to comment
Share on other sites

45 minutes ago, wreckreation said:

Just FYI, the mod ASET PRC  has its .version file in the folder Gamedata/ASET.   MADLAD apparently expects to find it in the folder Gamedata/ASET/PRC, and complains with the following stark warning when it's not there:

Not something I can easily fix without watering down the mods functionality :/  basically, when a mod doesn't specify an installation location the Install Validator assumes it should be in a folder which is named the same as the .version file. It also assumes that the version file is at the root directory of the mod. In this case it seems to be interpreting the underscore as a directory separator, and as it doesn't find the version file at the place the path is being parsed to, it assumes it's installed incorrectly.

So you have three options:

  1.  You can rename the version file to ASET.version.
  2.  You can manually specify the installation directory in the .version file - Docs: (https://github.com/severedsolo/MADLAD)
  3. You can ask LinuxGuruGamer to specify InstallValidator options in the .version file himself.

Obviously with options 1 and 2 you will need to redo this every time the mod updates, but I also don't particularly want to hassle LGG about option 3, when it's such a minor issue.

Edited by severedsolo
Link to comment
Share on other sites

Thanks for the response.  I agree it's a minor issue.   

But I assume most mod authors want to know about even annoying little things like this so, if they do have the time, they can address it if they choose, or have the opportunity to explain why they can't or aren't going to.  I know I'd prefer to know something isn't going to get fixed and I have to live with it than wonder about it.

But LGG has already solved it in the latest version by using option 4: moving the .version file to where madlad expects to find it.  :)

Edited by wreckreation
Link to comment
Share on other sites

  • 1 year later...

I just wanted to say, THANX! @severedsolo for this mod. It's been a "must-have" mod in every one of my installs, since it came out.

Also wanted to say it still seems to be working great in 1.12.5 ;)

Pretty sure in this mod's case: No feedback is Good feedback :P  meaning it just *works* :D

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