Lisias

[KSP >= 1.4.1] TweakScale - Under Lisias' Management - 2.4.3.10 - 2019-1030

Recommended Posts

Just now, linuxgurugamer said:

I'll bet that they changed something in the API, from a simple variable to a get/set.  This happened before as well.

That explains why sometimes merely recompiling the thing agains the new KSP libraries solves the problem!

Share this post


Link to post
Share on other sites
Just now, Lisias said:

That explains why sometimes merely recompiling the thing agains the new KSP libraries solves the problem!

 Yes. 

This happened with at least one of my mods, Kronol vessel viewer, and a recompile fixed the problem.

Share this post


Link to post
Share on other sites
Just now, linuxgurugamer said:

 Yes. 

This happened with at least one of my mods, Kronol vessel viewer, and a recompile fixed the problem.

I did recompiled HulcamVDS (and the whole shebang on that test bed) for 1.4.3 , and still got that NRE Exception from inside PartModule.Load, so I didn't bothered to try the stunt again on 1.4.5.

Well, I already had set up the circus (as we say around here). It will cost me nothing doing it again.

Share this post


Link to post
Share on other sites
1 hour ago, linuxgurugamer said:

This happened with at least one of my mods, Kronol vessel viewer, and a recompile fixed the problem.

Unfortunately, this is different. I fire up a KSP 1.5.1 (with MH) with TweakScale and "my" HullCameraVDS (instrumented to flood my log with messages), both recompiled against the KSP 1.5.1 libraries, and the misbehaviour persists.

The good news is that <part>.prefab.Modules is not null anymore (Squad acted on that, for sure), but the PartModule Exception is still happening.

Spoiler

[LOG 19:09:15.450] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVA.
[LOG 19:09:15.451] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:09:15.451] HullcamVDS::InstrumentKerbals: before changing kerbalEVA
[EXC 19:09:15.477] NullReferenceException: Object reference not set to an instance of an object
        PartModule.Load (.ConfigNode node)
        Part.AddModule (.ConfigNode node, Boolean forceAwake)
        HullcamVDS.initKerbalEVA+<InstrumentKerbals_task>d__5.MoveNext ()
        UnityEngine.Debug:LogException(Exception)
        HullcamVDS.<InstrumentKerbals_task>d__5:MoveNext()
        UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has 11 modules.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module KerbalEVA.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleTripLogger.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleEvaChute.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:09:15.477] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:09:15.478] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:09:15.478] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module .
[LOG 19:09:15.478] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVAfemale.

Above is the LOG for KSP 1.4.5

The following is the same DLL, still compiled against 1.4.5, but running on 1.4.3:

Spoiler

[LOG 19:13:01.366] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVA.
[LOG 19:13:01.366] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:13:01.366] HullcamVDS::InstrumentKerbals: before changing kerbalEVA
[EXC 19:13:01.446] NullReferenceException: Object reference not set to an instance of an object
        PartModule.Load (.ConfigNode node)
        Part.AddModule (.ConfigNode node, Boolean forceAwake)
        HullcamVDS.initKerbalEVA+<InstrumentKerbals_task>d__5.MoveNext ()
        UnityEngine.Debug:LogException(Exception)
        HullcamVDS.<InstrumentKerbals_task>d__5:MoveNext()
        UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has 11 modules.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module KerbalEVA.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleTripLogger.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleEvaChute.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module .
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVAfemale.
[LOG 19:13:01.447] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules is not null
[LOG 19:13:01.448] HullcamVDS::InstrumentKerbals: before changing kerbalEVAfemale
          
BLABLABLABALBALLA

[LOG 19:13:01.450] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVAfemaleVintage.
[LOG 19:13:01.450] HullcamVDS::InstrumentKerbals: kerbalEVAfemaleVintage.partPrefab.Modules is not null
[LOG 19:13:01.450] HullcamVDS::InstrumentKerbals: before changing kerbalEVAfemaleVintage
[EXC 19:13:01.450] NullReferenceException: Object reference not set to an instance of an object
        PartModuleList.Add (.PartModule module)
        Part.AddModule (System.String moduleName, Boolean forceAwake)
        Part.AddModule (.ConfigNode node, Boolean forceAwake)
        HullcamVDS.initKerbalEVA+<InstrumentKerbals_task>d__5.MoveNext ()
        UnityEngine.Debug:LogException(Exception)
        HullcamVDS.<InstrumentKerbals_task>d__5:MoveNext()
        UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[LOG 19:13:01.451] HullcamVDS::InstrumentKerbals: kerbalEVAfemaleVintage.partPrefab.Modules is not null
[LOG 19:13:01.451] HullcamVDS::InstrumentKerbals: kerbalEVAfemaleVintage.partPrefab.Modules has 0 modules.
[LOG 19:13:01.452] [ApplicationLauncher] Awake False
[LOG 19:13:01.454] [ApplicationLauncher] SpawnSimpleLayout: VerticalTopDown
[LOG 19:13:01.468] [UiApp] Awake: MessageSystem
[LOG 19:13:01.469] [ApplicationLauncher] OnSceneLoadedGUIReady: scene MAINMENU ShouldBeVisible() True ShouldBeOnTop() True iIsPositionedA
[ERR 19:13:01.472] [TweakScale] Exception on kerbalEVA.prefab.Modules.Contains: System.NullReferenceException: Object reference not set t
  at PartModuleList.Contains (Int32 classID) [0x00000] in <filename unknown>:0
  at PartModuleList.Contains (System.String className) [0x00000] in <filename unknown>:0
  at TweakScale.PrefabDryCostWriter+<WriteDryCost>d__3.MoveNext () [0x00000] in <filename unknown>:0

[WRN 19:13:01.474] PartModuleList
[ERR 19:13:01.474] [TweakScale] Exception on kerbalEVAfemale.prefab.Modules.Contains: System.NullReferenceException: Object reference not
  at PartModuleList.Contains (Int32 classID) [0x00000] in <filename unknown>:0
  at PartModuleList.Contains (System.String className) [0x00000] in <filename unknown>:0
  at TweakScale.PrefabDryCostWriter+<WriteDryCost>d__3.MoveNext () [0x00000] in <filename unknown>:0

          

above is the LOG for 1.4.3

INTERESTING : Besides I'm instrumenting both the vintages kerbalEVAs (and, then, getting the exception on them too), only the 'standard" ones got an exception on TweakScale...

And, finally, the very same DLL running on 1.4.1:

Spoiler

[LOG 19:19:09.672] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVA.
[LOG 19:19:09.672] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:19:09.672] HullcamVDS::InstrumentKerbals: before changing kerbalEVA
[EXC 19:19:09.706] NullReferenceException: Object reference not set to an instance of an object
        PartModule.Load (.ConfigNode node)
        Part.AddModule (.ConfigNode node, Boolean forceAwake)
        HullcamVDS.initKerbalEVA+<InstrumentKerbals_task>d__5.MoveNext ()
        UnityEngine.Debug:LogException(Exception)
        HullcamVDS.<InstrumentKerbals_task>d__5:MoveNext()
        UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[LOG 19:19:09.706] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:19:09.706] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has 11 modules.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module KerbalEVA.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleTripLogger.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleEvaChute.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module .
[LOG 19:19:09.707] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVAfemale.

above is the LOG for 1.4.1
 

The commit where the I added that messages is here.

AND THE 1.4.1 running the DLL compiled agains 1.4.5 behave exaclty as the other!! That was a surprise!. So I decided t recompile the whole shebang again, but agains the 1.4.1 libraries, and got THE EXACT SAME RESULTS.

I'm baffled, as 1.4.1 was running flawless this afternoon. :D But I have a theory, in this afternoon, the TweakScale running was the "Release" one, and now I'm running a DLL recompiled in Debug mode, with an awful amount of extra logging. This appears to corroborate my thesis of a race condition, as the extra logging is hugely delaying the processing - but I need to cross check this, by recompiling everything in Release mode. :D 

— — — — — — — 

TL;DR : Recompiling everything to 1.4.5 didn't solved the problem for any KSP version, the behaviour is consistent. Whatever the bug is, it was not solved on the most recent 1.4 series. And it does not involve a recompiling to solve it.

Worst, It not only breaks the offending code (as the feature is not installed!), but injects undesired colateral effects on the rest of the mods.

IMHO, the best line of action is decommissioning this code on HullCameraVDS, as it doesn't do what it intended (the kerbals don't get the EVACamera!) and breaks some KSP versions. At least, while we don't find a way to make the thing work as it should.  Module Manager cannot be used instead?

 

Edited by Lisias
FINALLY!

Share this post


Link to post
Share on other sites

I did something that I should had done before: listing the modules before the instrumentation. Got this:

Spoiler

[LOG 19:47:44.600] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVA.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has 10 modules.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module KerbalEVA.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleTripLogger.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleEvaChute.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: before changing kerbalEVA
[EXC 19:47:44.606] NullReferenceException: Object reference not set to an instance of an object
        PartModule.Load (.ConfigNode node)
        Part.AddModule (.ConfigNode node, Boolean forceAwake)
        HullcamVDS.initKerbalEVA+<InstrumentKerbals_task>d__5.MoveNext ()
        UnityEngine.Debug:LogException(Exception)
        HullcamVDS.<InstrumentKerbals_task>d__5:MoveNext()
        UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has 11 modules.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module KerbalEVA.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleTripLogger.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleEvaChute.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module .

 

So… The action it is not harmless. It is injecting a unnamed (perhaps null?) module on the part's module list.

— POST — EDIT — 

Exactly!!! I update my repo with the last edit for the log.

 

[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules is not null
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has 11 modules.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module KerbalEVA.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module FlagDecal.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleTripLogger.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleEvaChute.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module FlagDecal.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module <NULL!>.

We really need to find the root cause of this problem. It is injecting modules with a NULL on the name!

Edited by Lisias
MOAR INFO.

Share this post


Link to post
Share on other sites
1 hour ago, Lisias said:

I did something that I should had done before: listing the modules before the instrumentation. Got this:

  Hide contents


[LOG 19:47:44.600] HullcamVDS::InstrumentKerbals: Instrumenting kerbalEVA.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has 10 modules.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module KerbalEVA.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleTripLogger.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleEvaChute.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:47:44.601] HullcamVDS::InstrumentKerbals: before changing kerbalEVA
[EXC 19:47:44.606] NullReferenceException: Object reference not set to an instance of an object
        PartModule.Load (.ConfigNode node)
        Part.AddModule (.ConfigNode node, Boolean forceAwake)
        HullcamVDS.initKerbalEVA+<InstrumentKerbals_task>d__5.MoveNext ()
        UnityEngine.Debug:LogException(Exception)
        HullcamVDS.<InstrumentKerbals_task>d__5:MoveNext()
        UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules is not null
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has 11 modules.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module KerbalEVA.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleTripLogger.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleEvaChute.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module FlagDecal.
[LOG 19:47:44.607] HullcamVDS::InstrumentKerbals: kerbalEVA.partPrefab.Modules has the module .

 

So… The action it is not harmless. It is injecting a unnamed (perhaps null?) module on the part's module list.

— POST — EDIT — 

Exactly!!! I update my repo with the last edit for the log.

 


[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules is not null
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has 11 modules.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module KerbalEVA.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleScienceExperiment.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleScienceContainer.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module FlagDecal.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleTripLogger.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleEvaChute.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module ModuleLiftingSurface.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module FlagDecal.
[LOG 20:04:03.649] HullcamVDS::InstrumentKerbals: kerbalEVAfemale.partPrefab.Modules has the module <NULL!>.

We really need to find the root cause of this problem. It is injecting modules with a NULL on the name!

Do you think you might be able to see that module in a post ModuleManager dump?

Share this post


Link to post
Share on other sites
Just now, TranceaddicT said:

Do you think you might be able to see that module in a post ModuleManager dump?

I don't think so. This is being done after MM does its magic.

Both Tweakscale and HullcamVDS starts the offended/offending code when the main menu starts,.way after MM applied its last patch. 

(obviously, I need to confirm on the code, just in case - it was a tough day...)

Share this post


Link to post
Share on other sites
2 minutes ago, Lisias said:

(obviously, I need to confirm on the code, just in case - it was a tough day...)

I think it's been quiet productive.

Share this post


Link to post
Share on other sites
Just now, TranceaddicT said:

I think it's been quiet productive.

My boss doesn't agrees with you! :sticktongue:

Share this post


Link to post
Share on other sites
3 hours ago, Lisias said:

IMHO, the best line of action is decommissioning this code on HullCameraVDS, as it doesn't do what it intended (the kerbals don't get the EVACamera!) and breaks some KSP versions. At least, while we don't find a way to make the thing work as it should.  Module Manager cannot be used instead?

 

Actually, it does work, I just tested it.

But, it doesn't really need to be done at runtime, so I'm removing that code and adding a MM script to do what it is doing

Just released it, get the right one from here:

https://github.com/linuxgurugamer/HullcamVDSContinued/releases/tag/0.1.9.8

Share this post


Link to post
Share on other sites

@Lisias

I just found the same code in the EVA Parachutes & Ejector Seat mod, I'm doing the same fix now

Edited by linuxgurugamer

Share this post


Link to post
Share on other sites
4 hours ago, linuxgurugamer said:

Actually, it does work, I just tested it.

This information makes me yet more worried about the issue...

If the thing is working, the module is being attached correctly. So why by Kraken's sake a NRE is blowing up in PartModule.Load? :huh:

Concurrency appears to be the source of the problem, as moving the task to MM (that effectively owns the process at the loading time) will prevent the misbehaviour.

Share this post


Link to post
Share on other sites
6 hours ago, Lisias said:

This information makes me yet more worried about the issue...

If the thing is working, the module is being attached correctly. So why by Kraken's sake a NRE is blowing up in PartModule.Load? :huh:

Concurrency appears to be the source of the problem, as moving the task to MM (that effectively owns the process at the loading time) will prevent the misbehaviour.

I released the fix last night, try it and see if it was solved

Share this post


Link to post
Share on other sites
Just now, linuxgurugamer said:

I released the fix last night, try it and see if it was solved

Yes, it is. No more kerbalEVA's related exceptions. [on TweakScale]

This issue is fixed, but the problem is not. This is a workaround - it's good enough for TweakScale, HullcamVDS , EVA Parachutes & Ejector Seat. What's is… Good enough. :D 

But since we don't know what caused it, we are still prone to it later (mainly, TweakScale, as I'm the the last guy on this chain!). Some more investigation is on the way, but  is very good to know there's a good, working, workaround available while we don't find the root cause. :) 

Edited by Lisias
hit "Save" too soon

Share this post


Link to post
Share on other sites
5 hours ago, Lisias said:

Yes, it is. No more kerbalEVA's related exceptions. [on TweakScale]

This issue is fixed, but the problem is not. This is a workaround - it's good enough for TweakScale, HullcamVDS , EVA Parachutes & Ejector Seat. What's is… Good enough. :D 

But since we don't know what caused it, we are still prone to it later (mainly, TweakScale, as I'm the the last guy on this chain!). Some more investigation is on the way, but  is very good to know there's a good, working, workaround available while we don't find the root cause. :) 

change the code, so that instead of running at the main menu, run at the space center screen.  That will hopefully avoid any other race conditions

Share this post


Link to post
Share on other sites
55 minutes ago, linuxgurugamer said:

change the code, so that instead of running at the main menu, run at the space center screen.  That will hopefully avoid any other race conditions

Until someone else does the same. :)

well... The best quick'n'dirty solution is to go ModuleManager. If the add-on already uses it, it's the best possible solution.

About the ones that doesn't, or can't (by needing to change things on runtime), something else must be cooked.

 

Share this post


Link to post
Share on other sites
1 hour ago, Lisias said:

Until someone else does the same. :)

well... The best quick'n'dirty solution is to go ModuleManager. If the add-on already uses it, it's the best possible solution.

About the ones that doesn't, or can't (by needing to change things on runtime), something else must be cooked.

 

 

Doing it the MM way also reduces the code size a little bit, since you don't need to have code which is adding modules at runtime

Share this post


Link to post
Share on other sites

That's weird, tweakscale doesn't load at all in version 1.5.1 for me. Didn't play since 1.4.4 so maybe i'm doing something wrong. Is there any mod/addon(?) incompatible with tweakscale that could prevent it from working?

Ooooo shiny stuff! That's doing the stockalike parts a bit harder to make.

Edit: actually MM wasn't loading... what the...
Now everything is working but still doesn't know what happened.

Edited by Mathrilord

Share this post


Link to post
Share on other sites
On 11/5/2018 at 5:59 AM, Mathrilord said:

Edit: actually MM wasn't loading... what the...

Now everything is working but still doesn't know what happened.

Glad it worked out, but also curious about the issue.

Did you used the embedded ModuleManager.dll?  Did you overwrote your previous one?

What happened or was done when things started to work finally?

Share this post


Link to post
Share on other sites
4 hours ago, Lisias said:

Glad it worked out, but also curious about the issue.

Did you used the embedded ModuleManager.dll?  Did you overwrote your previous one?

What happened or was done when things started to work finally?

Nothing. Two try doesn't work, the next one was good. I didn't change anything. Sadly(or not) log have been overwrite and I've not been able to reproduce the bug without actually removing ModuleManager.

By the way while I was looking at the log I saw that:

OG 13:18:07.401] ValidateKspMinMax, KspVersionMin: 1.4.4, KspVersionMax: 1.4.8
or[LOG 13:18:07.410] KSP-AVC -> Identical remote version found: Using remote version information only.

or

[LOG99

Is that normal????

and lol (KAX)

[ERR 13:19:44.850] TweakScale::PrefabDryCostWriter: negative dryCost: part=size2Fuselage, DryCost=-3.814697E-05

Edited by Mathrilord

Share this post


Link to post
Share on other sites
8 hours ago, Mathrilord said:

Nothing. Two try doesn't work, the next one was good. I didn't change anything. Sadly(or not) log have been overwrite and I've not been able to reproduce the bug without actually removing ModuleManager.

Probably the Memory Manager cache. The (standard) MM save some files on the same directory the ModuleManager.dll to save some loading time, all of them starting with "modulemanager<someting>". We call them "cache". Sometimes, MM fails to detect that the cache is invalid, and use it nevertheless - what can cause many different problems. Deleting the cache fix the issue.

My guess is that, somehow, MM detected the situation on the second failure and deleted the cache itself on the third.

 

8 hours ago, Mathrilord said:

OG 13:18:07.401] ValidateKspMinMax, KspVersionMin: 1.4.4, KspVersionMax: 1.4.8
or[LOG 13:18:07.410] KSP-AVC -> Identical remote version found: Using remote version information only.

Yes, this is normal. It's just KSP-AVC logging up what it's doing, so if something gets wrong later, we can track down if the add-on version if the adequate one.

 

8 hours ago, Mathrilord said:

and lol (KAX)

[ERR 13:19:44.850] TweakScale::PrefabDryCostWriter: negative dryCost: part=size2Fuselage, DryCost=-3.814697E-05

Np, this is not normal. And it's good that you reported it. I use KAX too, but "mine" doesn't renders these errors - it's B9 parts the victims on my installation.

Long history made short: it's not something that TweakScale neither KAX (or B9) is doing wrong. It's something that no one is doing right. Technically, it's a "race condition", when more than one code wants to mangle the same thing on the computer. It's like many cars trying to run on  crossroad disregarding the others - sooner or later, a collision will happen.

In our case, obviously, there're no real collisions. But someone was instrumenting KAX (perhaps KAX itself, but can be any other add-on) at the same time TwekScale was. My current guess is that TweakScale gets a ConfigNode for the part that was recently recreated, but not yet repopulated - and then it gets a Zero on a field in which we expect the mass (as the other guy didn't filled the values yet).

Edited by Lisias
tyops as usulla...

Share this post


Link to post
Share on other sites
5 hours ago, Lisias said:

Yes, this is normal. It's just KSP-AVC logging up what it's doing, so if something gets wrong later, we can track down if the add-on version if the adequate one.

Actually I was asking if it's normal that some line of the log start with with missing bracket ( [ ) and non sensible letter or number. It's a bit like if there was a computer error that mix binary or hexadecimal or something. I want know because on my other computer(this one is new) I had one of the four ram array that was broken/desynchronized returning wrong value and it was slowly corrupting all my computer.

For KAX bug, I've been exploiting it secretly for the challenge Kerbal Express Airlines because who can say no to free parts! :ph34r: :cool:

Share this post


Link to post
Share on other sites
2 hours ago, Mathrilord said:

Actually I was asking if it's normal that some line of the log start with with missing bracket ( [ ) and non sensible letter or number. It's a bit like if there was a computer error that mix binary or hexadecimal or something. I want know because on my other computer(this one is new) I had one of the four ram array that was broken/desynchronized returning wrong value and it was slowly corrupting all my computer.

Oh… That… :P 

No, it's not and this is the first time I saw something like that on KSP. This usually happens when two or more threads try to write on the same buffer at the same time (another treading problem), but can be something else.

Corrupted RAM usually adds a lot of unintelligible garbage on data streams, but it can happen that the bad RAM could mess the threading arbitrator's data too. But… I'm wild guessing.

Add a bunch of heavy mods to a copy of your installment and see what happens. Abusing the free RAM usually make something blows early when you have some bad RAM on the system.

Share this post


Link to post
Share on other sites

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.