zer0Kerbal / SimpleConstruction

Provides simple craft building capability in flight mode to stock parts for Kerbal Space Program.
https://forum.kerbalspaceprogram.com/index.php?/topic/191424-*/
GNU General Public License v3.0
6 stars 7 forks source link

[Bug 🐞]: Centrifuges/Inflateable parts in general cause Kraken attacks. #182

Closed StormCircuit closed 1 year ago

StormCircuit commented 1 year ago

Brief description of your issue (aka the problem)

Centrifuges from SSPX (and many inflateable parts not just in SSPX, really) cause explosions when craft is constructed.

Operating system

Windows 10/11 (upgraded, still having issue)

KSP version

1.12.5

Version of addon

4.0.99.33-prerelease

Steps to reproduce the behavior or issue

Make a vessel, I managed to reproduce with just a centrifuge, some command modules, and launch clamps.

Expected behavior

For the craft to build radially from the docking port

Actual behavior

Well, The centrifuge is fine but the parts connecting it almost always above it then see a penny on the ground and throw themselves into it trying to get it. They throw themselves a little too hard and instead of getting the penny they eat dirt explosively. The vehicle is now decapitated and is just some engines hanging out.

If you turn on unbreakable joints it turns into a super merry-go-round where the centrifuge swings its self wildly in a circle around the vehicle.

Environment

Full mods list from CKAN. Worth mentioning that the version of Simple Construction here is arbitrary.
I overwrote it with your curseforge version. 
(You can copy and paste this into a CKAN file if you wish and it should work):

{
    "spec_version": "v1.18",
    "identifier": "installed-portable",
    "name": "installed-portable",
    "abstract": "A list of modules installed on the portable KSP instance",
    "author": [
        "storm"
    ],
    "version": "2023.01.29.06.26.17",
    "ksp_version_min": "1.9",
    "ksp_version_max": "1.12",
    "license": [
        "unknown"
    ],
    "depends": [
        {
            "name": "AtmosphereAutopilot",
            "version": "v1.6.0"
        },
        {
            "name": "B9-PWings-Fork",
            "version": "3:0.43.0.11"
        },
        {
            "name": "B9PartSwitch",
            "version": "v2.20.0"
        },
        {
            "name": "Benjee10-SharedAssets",
            "version": "v0.2.1"
        },
        {
            "name": "BetterCrewAssignment",
            "version": "1.4.1"
        },
        {
            "name": "BetterDuna",
            "version": "1.1"
        },
        {
            "name": "BetterTimeWarpCont",
            "version": "2.3.13"
        },
        {
            "name": "BOSSContinued",
            "version": "3.1.2.3"
        },
        {
            "name": "ClickThroughBlocker",
            "version": "1:2.1.10.21"
        },
        {
            "name": "CommunityResourcePack",
            "version": "v112.0.1"
        },
        {
            "name": "CommunityTechTree",
            "version": "1:3.4.4"
        },
        {
            "name": "CustomBarnKit",
            "version": "1.1.22.0"
        },
        {
            "name": "DeployableInventory",
            "version": "0.9.5"
        },
        {
            "name": "DistantObject",
            "version": "v2.1.1.11r2"
        },
        {
            "name": "DistantObject-default",
            "version": "v2.1.1.11r2"
        },
        {
            "name": "DynamicBatteryStorage",
            "version": "2:2.2.5.0"
        },
        {
            "name": "EasyVesselSwitch",
            "version": "2.3"
        },
        {
            "name": "EnvironmentalVisualEnhancements",
            "version": "3:1.11.7.1"
        },
        {
            "name": "FirespitterCore",
            "version": "v7.17"
        },
        {
            "name": "FirespitterResourcesConfig",
            "version": "v7.17"
        },
        {
            "name": "FreeIva",
            "version": "0.2.5.2"
        },
        {
            "name": "HabTechProps",
            "version": "v0.2.0"
        },
        {
            "name": "HangerExtenderExtended",
            "version": "3.6.0.2"
        },
        {
            "name": "Harmony2",
            "version": "2.2.1.0"
        },
        {
            "name": "HeatControl",
            "version": "0.6.1"
        },
        {
            "name": "HideEmptyTechNodes",
            "version": "1.3.2"
        },
        {
            "name": "HyperEdit",
            "version": "1.5.8.0"
        },
        {
            "name": "JanitorsCloset",
            "version": "0.3.7.8"
        },
        {
            "name": "Kaboom",
            "version": "1.4.0.1"
        },
        {
            "name": "KAS",
            "version": "1.12"
        },
        {
            "name": "KerbalEngineerRedux",
            "version": "1.1.9.0"
        },
        {
            "name": "KerbalJointReinforcementNext",
            "version": "v4.1.19"
        },
        {
            "name": "KerbnetController",
            "version": "5.0"
        },
        {
            "name": "Kopernicus",
            "version": "2:release-1.12.1-145"
        },
        {
            "name": "kOS",
            "version": "1:1.3.2.0"
        },
        {
            "name": "kOS-KerbalEngineer",
            "version": "v0.1.1"
        },
        {
            "name": "kOSforAll",
            "version": "0.0.5"
        },
        {
            "name": "KSP-Recall",
            "version": "v0.3.0.9r2"
        },
        {
            "name": "KSPCommunityFixes",
            "version": "1.24.5"
        },
        {
            "name": "MakingLessHistory",
            "version": "1.0"
        },
        {
            "name": "MechJeb2",
            "version": "2.14.2.0"
        },
        {
            "name": "MechJebForAll",
            "version": "1.3.0.7"
        },
        {
            "name": "ModularFlightIntegrator",
            "version": "1.2.10.0"
        },
        {
            "name": "ModuleManager",
            "version": "4.2.2"
        },
        {
            "name": "NearFutureElectrical",
            "version": "1.2.3"
        },
        {
            "name": "NearFutureElectrical-Core",
            "version": "1.2.3"
        },
        {
            "name": "NearFutureProps",
            "version": "1:0.7.1"
        },
        {
            "name": "notes",
            "version": "0.17.0.0-adoption"
        },
        {
            "name": "Parallax",
            "version": "2.0.6"
        },
        {
            "name": "Parallax-StockScatterTextures",
            "version": "2.0.1"
        },
        {
            "name": "Parallax-StockTextures",
            "version": "2.0.0"
        },
        {
            "name": "ParkingBrake",
            "version": "0.4.4"
        },
        {
            "name": "PitchPerfect",
            "version": "0.8"
        },
        {
            "name": "PlanetsideExplorationTechnologies",
            "version": "1.0.2"
        },
        {
            "name": "QuickGoTo",
            "version": "1:1.4.0.9"
        },
        {
            "name": "RCSBuildAid",
            "version": "v1.0.6"
        },
        {
            "name": "RealPlume",
            "version": "2:v13.3.2"
        },
        {
            "name": "RealPlume-StockConfigs",
            "version": "v4.0.8"
        },
        {
            "name": "RetractableLiftingSurface",
            "version": "0.2.1.2"
        },
        {
            "name": "RocketSoundEnhancement",
            "version": "0.9.6"
        },
        {
            "name": "RocketSoundEnhancement-Config-Default",
            "version": "1.2.4"
        },
        {
            "name": "SCANsat",
            "version": "v20.4"
        },
        {
            "name": "Scatterer",
            "version": "3:v0.0838"
        },
        {
            "name": "Scatterer-config",
            "version": "3:v0.0838"
        },
        {
            "name": "Scatterer-sunflare",
            "version": "3:v0.0838"
        },
        {
            "name": "ServiceBayLimiter",
            "version": "1.12.2"
        },
        {
            "name": "ShipManifest",
            "version": "6.0.6.0"
        },
        {
            "name": "SimpleConstruction",
            "version": "1:4.0.2.7"
        },
        {
            "name": "SimpleRepaint",
            "version": "0.4.1"
        },
        {
            "name": "SmartDockingAid",
            "version": "v1.1.0"
        },
        {
            "name": "SmokeScreen",
            "version": "2.8.14.0"
        },
        {
            "name": "SpaceTuxLibrary",
            "version": "0.0.8.5"
        },
        {
            "name": "Spectra",
            "version": "v1.6.5"
        },
        {
            "name": "Spectra-ScattererJoolShineOnLaythe",
            "version": "1.6.5"
        },
        {
            "name": "StageRecovery",
            "version": "1.9.6.1"
        },
        {
            "name": "StationKeeping",
            "version": "1:0.2.3"
        },
        {
            "name": "StationPartsExpansionRedux",
            "version": "2.0.10"
        },
        {
            "name": "StationPartsExpansionRedux-IVAs",
            "version": "2.0.10"
        },
        {
            "name": "StockalikeMiningExtension",
            "version": "1.1.6"
        },
        {
            "name": "StockSCANsat",
            "version": "v1.02"
        },
        {
            "name": "SXTContinued",
            "version": "2:0.3.29.8"
        },
        {
            "name": "TacFuelBalancer",
            "version": "v2.21.5.3"
        },
        {
            "name": "TheGoldStandard",
            "version": "1.6.2.1"
        },
        {
            "name": "Toolbar",
            "version": "1:1.8.0.8"
        },
        {
            "name": "ToolbarController",
            "version": "1:0.1.9.9"
        },
        {
            "name": "TrackingStationEvolved",
            "version": "7.0"
        },
        {
            "name": "TweakScale",
            "version": "v2.4.6.21"
        },
        {
            "name": "TweakScale-Redist",
            "version": "v2.4.6.21"
        },
        {
            "name": "WaypointManager",
            "version": "2.8.3.5"
        }
    ],
    "release_date": "2023-01-29T13:26:17.1484302-05:00",
    "kind": "metapackage"
}

Log files

KSP.log UPDATE: added MM config: ModuleManager.ConfigCache.txt

Screenshots

From start to finish, here is what happens: https://imgur.com/a/Itg2fTl

Additional context

Happens across all versions of Launchpad.dll (EPL and SCON versions).

How did you download and install this?

CurseForge (download and manual installation)

StormCircuit commented 1 year ago

Added MM configcache to logs section

zer0Kerbal commented 1 year ago

@StormCircuit well there are three basic levels of log errors (you probably know this) for KSP - from least to worst - [WRN, [ERR, and [EXC

your log is showing 214 EXC that may or may not be related to this issue.

Query: does this happen in space where there is no gravity? (If I find the time I will test as well)

EXC(eption)

examples of EXC:

[EXC 15:51:17.069] Exception: Terminating stock loader coroutine, this is intended and not an error
    KSPCommunityFixes.Performance.KSPCFFastLoader.GameDatabase_SetupMainLoaders_Prefix () (at <3a1e5be8c8bf4d7cb62e9bf5397ce391>:0)
    (wrapper dynamic-method) GameDatabase.GameDatabase.SetupMainLoaders_Patch1(GameDatabase)
    GameDatabase+<LoadObjects>d__90.MoveNext () (at <4b449f2841f84227adfaad3149c8fdba>:0)
    UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <12e76cd50cc64cf19e759e981cb725af>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
    <CreateDatabase>d__71:MoveNext()
    UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
    GameDatabase:StartLoad()
    <LoadSystems>d__11:MoveNext()
    UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
    LoadingScreen:Start()
[WRN 15:52:29.728] DragCubeSystem: Part 'SXTAlouetteI' has more than two IMultipleDragCube part modules. You should consider procedural drag cubes.
[LOG 15:52:29.729] DragCubeSystem: Creating drag cubes for part 'SXTAlouetteI'
[EXC 15:52:29.730] NullReferenceException: Object reference not set to an instance of an object
    ModuleDeployablePart.AssumeDragCubePosition (System.String name) (at <4b449f2841f84227adfaad3149c8fdba>:0)
    (wrapper dynamic-method) DragCubeSystem+<RenderDragCubes>d__34.DragCubeSystem+<RenderDragCubes>d__34.MoveNext_Patch0(DragCubeSystem/<RenderDragCubes>d__34)
    KSPCommunityFixes.Performance.KSPCFFastLoader+<FrameUnlockedCoroutine>d__61.MoveNext () (at <3a1e5be8c8bf4d7cb62e9bf5397ce391>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:LogException(Exception)
    KSPCommunityFixes.Performance.<FrameUnlockedCoroutine>d__61:MoveNext()
    KSPCommunityFixes.Performance.<PartLoader_CompileAll>d__57:MoveNext()
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

the lines leading up to the log entry often pin-point the causation:

[LOG 16:00:54.407] [ParallaxScatter] Processing a scene change from MAINMENU to SPACECENTER
[LOG 16:00:54.408] Scene change: MAINMENU -> SPACECENTER
[LOG 16:00:54.408] [ParallaxScatter] Scene change logged, awaiting planet change before starting scatters...
[EXC 16:00:55.461] NullReferenceException
    UnityEngine.Component.GetComponent[T] () (at <12e76cd50cc64cf19e759e981cb725af>:0)
    scatterer.SkyNode.Cleanup () (at <684aa87c0d2345f8a9e4739403f4afff>:0)
    scatterer.ProlandManager.OnDestroy () (at <684aa87c0d2345f8a9e4739403f4afff>:0)
    scatterer.ScattererCelestialBodiesManager.Cleanup () (at <684aa87c0d2345f8a9e4739403f4afff>:0)
    scatterer.Scatterer.OnDestroy () (at <684aa87c0d2345f8a9e4739403f4afff>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[LOG 16:01:09.797] [CustomConfigsManager] Setting modded tech tree as the active one
[EXC 16:01:09.798] MissingMethodException: System.Collections.IEnumerator PartModuleList.GetEnumerator()
    SpaceRace.PartUpgrader.Start () (at <0a10f6e2d87c4faa9584b3a406319564>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[EXC 16:01:38.455] NullReferenceException: Object reference not set to an instance of an object
    scatterer.ShadowMapCopy.get_RenderTexture () (at <684aa87c0d2345f8a9e4739403f4afff>:0)
    scatterer.ShadowMapCopier.CreateTextureCopyCB () (at <684aa87c0d2345f8a9e4739403f4afff>:0)
    scatterer.ShadowMapCopier+<DelayedRecreateForSceneChange>d__12.MoveNext () (at <684aa87c0d2345f8a9e4739403f4afff>:0)
    UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <12e76cd50cc64cf19e759e981cb725af>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

[LOG 16:04:46.094] Create button for module Vessel Info [EXC 16:04:46.110] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <9577ac7a62ef43179789031239ba8798>:0) System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <9577ac7a62ef43179789031239ba8798>:0) kOS.Screen.Interpreter.IsWaitingForCommand () (at <3ccb18ebae2a49929054690a1a176760>:0) kOS.Screen.TermWindow.ProcessUnconsumedInput () (at <3ccb18ebae2a49929054690a1a176760>:0) kOS.Screen.TermWindow.Update () (at <3ccb18ebae2a49929054690a1a176760>:0) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

[EXC 16:04:46.228] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
    System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <9577ac7a62ef43179789031239ba8798>:0)
    System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <9577ac7a62ef43179789031239ba8798>:0)
    kOS.Screen.Interpreter.IsWaitingForCommand () (at <3ccb18ebae2a49929054690a1a176760>:0)
    kOS.Screen.TermWindow.ProcessUnconsumedInput () (at <3ccb18ebae2a49929054690a1a176760>:0)
    kOS.Screen.TermWindow.Update () (at <3ccb18ebae2a49929054690a1a176760>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(
[EXC 16:04:51.265] ArgumentException: An item with the same key has already been added. Key: bc8e3042
    System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <9577ac7a62ef43179789031239ba8798>:0)
    System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <9577ac7a62ef43179789031239ba8798>:0)
    JanitorsCloset.JanitorsCloset.addToHiddenBlockList (KSP.UI.Screens.ApplicationLauncherButton selectedButton, JanitorsCloset.Blocktype btype) (at <b923cf88b9a04cd182c1d4b0a0fe8dbb>:0)
    JanitorsCloset.ToolbarIconEvents+InstallToolIconEvents.CheckToolbarButtons () (at <b923cf88b9a04cd182c1d4b0a0fe8dbb>:0)
    JanitorsCloset.ToolbarIconEvents+InstallToolIconEvents.FixedUpdate () (at <b923cf88b9a04cd182c1d4b0a0fe8dbb>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
zer0Kerbal commented 1 year ago

NOTE: just because a certain mod creates a EXCeption log entry doesn't make it the culprit - hence why I say 'symptom or cause'

CommunityFixes,Scatterer, kOS, Parallax, B9PartSwitch, and Janitor's Closet seem to either be the symptom or cause of the 214 EXC in the log.

zer0Kerbal commented 1 year ago

[ERR (or)

372 errors reported in KSP.log

important NOTE:

possible multiple installations of Scatterer

[ERR 16:06:25.139] [Scatterer][Error] Destroying duplicate instance, check your install for duplicate scatterer folders, or nested GameData folders

while there are many 'ignorable' errors logged:

[ERR 15:51:08.264] ADDON BINDER: Cannot resolve assembly: AtmosphereAutopilot.UI, Culture=neutral, PublicKeyToken=null

[ERR 16:06:16.739] Input is null for field 'agent' in config node 'CONTRACT'
  at System.Environment.get_StackTrace () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at KSPCommunityFixes.Performance.ConfigNodePerf.ConfigNode_AddValue2_Prefix (ConfigNode __instance, System.String name, System.String value) [0x00000] in <3a1e5be8c8bf4d7cb62e9bf5397ce391>:0 
  at ConfigNode.ConfigNode.AddValue_Patch1 (ConfigNode , System.String , System.String ) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at Contracts.Contract.Save (ConfigNode node) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at Contracts.ContractSystem.OnSave (ConfigNode gameNode) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at ScenarioModule.Save (ConfigNode node) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at ProtoScenarioModule..ctor (ScenarioModule module) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at ScenarioRunner.UpdateModules () [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at ScenarioRunner.GetUpdatedProtoModules () [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at Game.Updated (GameScenes startSceneOverride) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at GamePersistence.SaveGame (System.String saveFileName, System.String saveFolder, SaveMode saveMode, GameScenes startScene) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at GamePersistence.SaveGame (System.String saveFileName, System.String saveFolder, SaveMode saveMode) [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at FlightLogger+<waitAndEndFlight>d__56.MoveNext () [0x00000] in <4b449f2841f84227adfaad3149c8fdba>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <12e76cd50cc64cf19e759e981cb725af>:0 
[WRN 16:06:25.684] [R&D]: No Experiment definition found with id CactEyePlanetary
[ERR 16:06:25.692] [ScienceSubject] - Error in converting Situation InSpaceLow_System.ArgumentException: Requested value 'InSpaceLow_' was not found.
  at System.Enum+EnumResult.SetFailure (System.Enum+ParseFailureKind failure, System.String failureMessageID, System.Object failureMessageFormatArgument) [0x00023] in <9577ac7a62ef43179789031239ba8798>:0 
  at System.Enum.TryParseEnum (System.Type enumType, System.String value, System.Boolean ignoreCase, System.Enum+EnumResult& parseResult) [0x0017a] in <9577ac7a62ef43179789031239ba8798>:0 
  at System.Enum.Parse (System.Type enumType, System.String value, System.Boolean ignoreCase) [0x00010] in <9577ac7a62ef43179789031239ba8798>:0 
  at System.Enum.Parse (System.Type enumType, System.String value) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at ScienceUtil.GenerateLocalizedTitle (System.String id, System.Boolean skipAsteroidsComets) [0x0019e] in <4b449f2841f84227adfaad3149c8fdba>:0 
zer0Kerbal commented 1 year ago

_SCON-LOG-2023-01-3114-38-33.txt image

https://www.twitch.tv/zer0kerbal

zer0Kerbal commented 1 year ago

https://www.twitch.tv/videos/1724272738

you can watch the entire test on that link (will also be on YouTube)

No issues found, seemingly worked flawlessly.