Lisias Posted November 2, 2018 Author Share Posted November 2, 2018 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! Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted November 2, 2018 Share Posted November 2, 2018 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. Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 2, 2018 Author Share Posted November 2, 2018 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. Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 2, 2018 Author Share Posted November 2, 2018 (edited) 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. 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. — — — — — — — 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 November 2, 2018 by Lisias FINALLY! Quote Link to comment Share on other sites More sharing options...
TranceaddicT Posted November 2, 2018 Share Posted November 2, 2018 <Jeopardy! tune plays> Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 2, 2018 Author Share Posted November 2, 2018 (edited) 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 November 2, 2018 by Lisias MOAR INFO. Quote Link to comment Share on other sites More sharing options...
TranceaddicT Posted November 3, 2018 Share Posted November 3, 2018 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? Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 3, 2018 Author Share Posted November 3, 2018 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...) Quote Link to comment Share on other sites More sharing options...
TranceaddicT Posted November 3, 2018 Share Posted November 3, 2018 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. Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 3, 2018 Author Share Posted November 3, 2018 Just now, TranceaddicT said: I think it's been quiet productive. My boss doesn't agrees with you! Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted November 3, 2018 Share Posted November 3, 2018 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 Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted November 3, 2018 Share Posted November 3, 2018 (edited) @Lisias I just found the same code in the EVA Parachutes & Ejector Seat mod, I'm doing the same fix now Edited November 3, 2018 by linuxgurugamer Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 3, 2018 Author Share Posted November 3, 2018 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? 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. Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted November 3, 2018 Share Posted November 3, 2018 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? 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 Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 3, 2018 Author Share Posted November 3, 2018 (edited) 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. 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 November 3, 2018 by Lisias hit "Save" too soon Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted November 3, 2018 Share Posted November 3, 2018 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. 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 Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 3, 2018 Author Share Posted November 3, 2018 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. Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted November 3, 2018 Share Posted November 3, 2018 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 Quote Link to comment Share on other sites More sharing options...
Mathrilord Posted November 5, 2018 Share Posted November 5, 2018 (edited) 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 November 5, 2018 by Mathrilord Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 9, 2018 Author Share Posted November 9, 2018 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? Quote Link to comment Share on other sites More sharing options...
Mathrilord Posted November 9, 2018 Share Posted November 9, 2018 (edited) 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.8or[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 November 9, 2018 by Mathrilord Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 9, 2018 Author Share Posted November 9, 2018 (edited) 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.8or[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 November 9, 2018 by Lisias tyops as usulla... Quote Link to comment Share on other sites More sharing options...
Mathrilord Posted November 9, 2018 Share Posted November 9, 2018 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! Quote Link to comment Share on other sites More sharing options...
Lisias Posted November 9, 2018 Author Share Posted November 9, 2018 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… 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. Quote Link to comment Share on other sites More sharing options...
Le-chimiste Posted November 10, 2018 Share Posted November 10, 2018 (edited) Hi, i am new here. In the past we can tweak all the core parts and now only some of them, why ? Thank's for this good mod. an article about twekscale Edited November 10, 2018 by Le-chimiste Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.