KSP-RO / ProceduralParts

A continuation of StretchySRBs, which is a continuation of StretchyTanks
71 stars 79 forks source link

Game freeze on startup with ProceduralParts #166

Closed mobarre closed 8 years ago

mobarre commented 9 years ago

Since the last RealFuel update (along with a few dependencies of RF) done via CKAN, game freezes on startup unless I uninstall ProceduralParts. Bellow is a screenshot of the loading screen. Loading hints still change, but progress bar is stuck. in KSP.log I see a bad looking exceptions that seem to happen at the time of processing the ProceduralParts parts.

loading screen

KSP.log extract:

[LOG 12:32:22.574] PartLoader: Compiling Part 'ProceduralParts/Parts/Electrical/Battery/proceduralBattery'
[LOG 12:32:22.701] PartLoader: Part 'ProceduralParts/Parts/Electrical/Battery/proceduralBattery' has no database record. Creating.
[LOG 12:32:22.718] DragCubeSystem: Creating drag cubes for part 'proceduralBattery'
[LOG 12:32:22.804] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/Heatshield/proceduralHeatshield'
[ERR 12:32:22.807] [ShipTemplate]: No Resource definition found for RESOURCE

[WRN 12:32:22.819] Could not create PartResource of type 'Ablator
[LOG 12:32:22.834] PartLoader: Part 'ProceduralParts/Parts/Structural/Heatshield/proceduralHeatshield' has no database record. Creating.
[LOG 12:32:22.845] DragCubeSystem: Creating drag cubes for part 'proceduralHeatshield'
[LOG 12:32:22.961] no fairing mesh
[LOG 12:32:22.963] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/NoseCone/proceduralNoseCone'
[LOG 12:32:22.986] PartLoader: Part 'ProceduralParts/Parts/Structural/NoseCone/proceduralNoseCone' has no database record. Creating.
[LOG 12:32:22.996] DragCubeSystem: Creating drag cubes for part 'proceduralNoseCone'
[LOG 12:32:23.043] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/StackDecoupler/proceduralStackDecoupler'
[LOG 12:32:23.074] Added sound_decoupler_fire to FXGroup decouple
[LOG 12:32:23.097] PartLoader: Part 'ProceduralParts/Parts/Structural/StackDecoupler/proceduralStackDecoupler' has no database record. Creating.
[LOG 12:32:23.107] DragCubeSystem: Creating drag cubes for part 'proceduralStackDecoupler'
[LOG 12:32:23.158] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/Structural/proceduralStructural'
[LOG 12:32:23.195] PartLoader: Part 'ProceduralParts/Parts/Structural/Structural/proceduralStructural' has no database record. Creating.
[LOG 12:32:23.212] DragCubeSystem: Creating drag cubes for part 'proceduralStructural'
[LOG 12:32:23.259] PartLoader: Compiling Part 'ProceduralParts/Parts/Tanks/TankOre/proceduralTankOre'
[ERR 12:32:23.262] [ShipTemplate]: No Resource definition found for RESOURCE

[WRN 12:32:23.263] Could not create PartResource of type 'Ore
[LOG 12:32:23.299] PartLoader: Part 'ProceduralParts/Parts/Tanks/TankOre/proceduralTankOre' has no database record. Creating.
[LOG 12:32:23.318] DragCubeSystem: Creating drag cubes for part 'proceduralTankOre'
[LOG 12:32:23.365] PartLoader: Compiling Part 'ProceduralParts/Parts/ZOtherMods/RFSRB/proceduralSRBRealFuels'
[LOG 12:32:23.420] Added sound_rocket_hard to FXGroup running
[LOG 12:32:23.446] [MFS] Loading global settings
[LOG 12:32:23.487] *RF* Loading RFSETTINGS global settings
[LOG 12:32:23.490] *RFMEC* Could not find appropriate module of type ModuleEnginesRF, with ID= and index -1
[LOG 12:32:23.493] SolidFuel not found in resource database. Propellant Setup has failed.
[EXC 12:32:23.503] NullReferenceException: Object reference not set to an instance of an object
    ModuleEngines.SetupPropellant ()
    ModuleEngines.OnLoad (.ConfigNode node)
    PartModule.Load (.ConfigNode node)
    Part.AddModule (.ConfigNode node)
    PartLoader.ParsePart (.UrlConfig urlConfig, .ConfigNode node)
    PartLoader+.MoveNext ()
[EXC 12:32:23.506] NullReferenceException: Object reference not set to an instance of an object
    ProceduralParts.ProceduralPart.InitializeObjects ()
    ProceduralParts.ProceduralPart.OnStart (StartState state)
    UnityEngine.Debug:LogException(Exception)
    ProceduralParts.ProceduralPart:OnStart(StartState)
    Part:ModulesOnStart()
    :MoveNext()
[LOG 12:32:23.513] SolidFuel not found in resource database. Propellant Setup has failed.
[EXC 12:32:23.514] NullReferenceException: Object reference not set to an instance of an object
    ModuleEngines.SetupPropellant ()
    ModuleEngines.OnLoad (.ConfigNode node)
    PartModule.Load (.ConfigNode node)
    RealFuels.ModuleEngineConfigs.SetConfiguration (System.String newConfiguration, Boolean resetTechLevels)
    RealFuels.ModuleEngineConfigs.OnStart (StartState state)
    Part.ModulesOnStart ()
    Part+.MoveNext ()
[LOG 12:35:50.976] IR: [ServoController] destroy
mobarre commented 9 years ago

If any other information is needed I'd gladly send it. Cheers.

OtherBarry commented 9 years ago

Have you tried manually reinstalling PP?

On Thu, Sep 17, 2015 at 8:43 PM, Marc-Olivier Barre < notifications@github.com> wrote:

If any other information is needed I'd gladly send it. Cheers.

— Reply to this email directly or view it on GitHub https://github.com/Swamp-Ig/ProceduralParts/issues/166#issuecomment-141040416 .

OtherBarry commented 9 years ago

Log suggests its an issue with RF I think.

On Thu, Sep 17, 2015 at 8:45 PM, Charlie Wilson charlie.wilson4@gmail.com wrote:

Have you tried manually reinstalling PP?

On Thu, Sep 17, 2015 at 8:43 PM, Marc-Olivier Barre < notifications@github.com> wrote:

If any other information is needed I'd gladly send it. Cheers.

— Reply to this email directly or view it on GitHub https://github.com/Swamp-Ig/ProceduralParts/issues/166#issuecomment-141040416 .

mobarre commented 9 years ago

Ok, so reinstalling by hand yields the same result on loading the game. An incompatibilty issue with the latest realfuel would make sense since it started happening after the update to RF 10.6.1. I'll ring the realfuel guys to see if it's something they're aware of and keep you posted.

mobarre commented 9 years ago

Tried downgrading both realfuel and module manager. Still didn't work. There's something fishy here. Are there additional logs I could provide ? Not sure if there's a way of running KSP in debug mode for this.

NathanKell commented 9 years ago

You somehow managed to nuke your Squad folder's resources file, the log is saying it can't find the (stock) resource SolidFuel

Sent by my thumbs, slowly. On Sep 17, 2015 6:42 AM, "Marc-Olivier Barre" notifications@github.com wrote:

Since the last RealFuel update (along with a few dependencies of RF) done via CKAN, game freezes on startup unless I uninstall ProceduralParts. Bellow is a screenshot of the loading screen. Loading hints still change, but progress bar is stuck. in KSP.log I see a bad looking exceptions that seem to happen at the time of processing the ProceduralParts parts.

[image: loading screen] https://cloud.githubusercontent.com/assets/13680567/9931102/ff8ca07e-5d38-11e5-95c4-c4fefc96c1cb.png

KSP.log extract:

[LOG 12:32:22.574] PartLoader: Compiling Part 'ProceduralParts/Parts/Electrical/Battery/proceduralBattery' [LOG 12:32:22.701] PartLoader: Part 'ProceduralParts/Parts/Electrical/Battery/proceduralBattery' has no database record. Creating. [LOG 12:32:22.718] DragCubeSystem: Creating drag cubes for part 'proceduralBattery' [LOG 12:32:22.804] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/Heatshield/proceduralHeatshield' [ERR 12:32:22.807] [ShipTemplate]: No Resource definition found for RESOURCE

[WRN 12:32:22.819] Could not create PartResource of type 'Ablator [LOG 12:32:22.834] PartLoader: Part 'ProceduralParts/Parts/Structural/Heatshield/proceduralHeatshield' has no database record. Creating. [LOG 12:32:22.845] DragCubeSystem: Creating drag cubes for part 'proceduralHeatshield' [LOG 12:32:22.961] no fairing mesh [LOG 12:32:22.963] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/NoseCone/proceduralNoseCone' [LOG 12:32:22.986] PartLoader: Part 'ProceduralParts/Parts/Structural/NoseCone/proceduralNoseCone' has no database record. Creating. [LOG 12:32:22.996] DragCubeSystem: Creating drag cubes for part 'proceduralNoseCone' [LOG 12:32:23.043] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/StackDecoupler/proceduralStackDecoupler' [LOG 12:32:23.074] Added sound_decoupler_fire to FXGroup decouple [LOG 12:32:23.097] PartLoader: Part 'ProceduralParts/Parts/Structural/StackDecoupler/proceduralStackDecoupler' has no database record. Creating. [LOG 12:32:23.107] DragCubeSystem: Creating drag cubes for part 'proceduralStackDecoupler' [LOG 12:32:23.158] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/Structural/proceduralStructural' [LOG 12:32:23.195] PartLoader: Part 'ProceduralParts/Parts/Structural/Structural/proceduralStructural' has no database record. Creating. [LOG 12:32:23.212] DragCubeSystem: Creating drag cubes for part 'proceduralStructural' [LOG 12:32:23.259] PartLoader: Compiling Part 'ProceduralParts/Parts/Tanks/TankOre/proceduralTankOre' [ERR 12:32:23.262] [ShipTemplate]: No Resource definition found for RESOURCE

[WRN 12:32:23.263] Could not create PartResource of type 'Ore [LOG 12:32:23.299] PartLoader: Part 'ProceduralParts/Parts/Tanks/TankOre/proceduralTankOre' has no database record. Creating. [LOG 12:32:23.318] DragCubeSystem: Creating drag cubes for part 'proceduralTankOre' [LOG 12:32:23.365] PartLoader: Compiling Part 'ProceduralParts/Parts/ZOtherMods/RFSRB/proceduralSRBRealFuels' [LOG 12:32:23.420] Added sound_rocket_hard to FXGroup running [LOG 12:32:23.446] [MFS] Loading global settings [LOG 12:32:23.487] RF Loading RFSETTINGS global settings [LOG 12:32:23.490] RFMEC Could not find appropriate module of type ModuleEnginesRF, with ID= and index -1 [LOG 12:32:23.493] SolidFuel not found in resource database. Propellant Setup has failed. [EXC 12:32:23.503] NullReferenceException: Object reference not set to an instance of an object ModuleEngines.SetupPropellant () ModuleEngines.OnLoad (.ConfigNode node) PartModule.Load (.ConfigNode node) Part.AddModule (.ConfigNode node) PartLoader.ParsePart (.UrlConfig urlConfig, .ConfigNode node) PartLoader+�.MoveNext () [EXC 12:32:23.506] NullReferenceException: Object reference not set to an instance of an object ProceduralParts.ProceduralPart.InitializeObjects () ProceduralParts.ProceduralPart.OnStart (StartState state) UnityEngine.Debug:LogException(Exception) ProceduralParts.ProceduralPart:OnStart(StartState) Part:ModulesOnStart() �:MoveNext() [LOG 12:32:23.513] SolidFuel not found in resource database. Propellant Setup has failed. [EXC 12:32:23.514] NullReferenceException: Object reference not set to an instance of an object ModuleEngines.SetupPropellant () ModuleEngines.OnLoad (.ConfigNode node) PartModule.Load (.ConfigNode node) RealFuels.ModuleEngineConfigs.SetConfiguration (System.String newConfiguration, Boolean resetTechLevels) RealFuels.ModuleEngineConfigs.OnStart (StartState state) Part.ModulesOnStart () Part+�.MoveNext () [LOG 12:35:50.976] IR: [ServoController] destroy

— Reply to this email directly or view it on GitHub https://github.com/Swamp-Ig/ProceduralParts/issues/166.

OtherBarry commented 9 years ago

Ahhh, I just assumed that was RF causing that. That makes more sense. Grab a new copy of KSP and replace the squad folder. Or if you use steam verifying the integrity of the game cache may work.

On Friday, 18 September 2015, NathanKell notifications@github.com wrote:

You somehow managed to nuke your Squad folder's resources file, the log is saying it can't find the (stock) resource SolidFuel

Sent by my thumbs, slowly. On Sep 17, 2015 6:42 AM, "Marc-Olivier Barre" <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Since the last RealFuel update (along with a few dependencies of RF) done via CKAN, game freezes on startup unless I uninstall ProceduralParts. Bellow is a screenshot of the loading screen. Loading hints still change, but progress bar is stuck. in KSP.log I see a bad looking exceptions that seem to happen at the time of processing the ProceduralParts parts.

[image: loading screen] < https://cloud.githubusercontent.com/assets/13680567/9931102/ff8ca07e-5d38-11e5-95c4-c4fefc96c1cb.png

KSP.log extract:

[LOG 12:32:22.574] PartLoader: Compiling Part 'ProceduralParts/Parts/Electrical/Battery/proceduralBattery' [LOG 12:32:22.701] PartLoader: Part 'ProceduralParts/Parts/Electrical/Battery/proceduralBattery' has no database record. Creating. [LOG 12:32:22.718] DragCubeSystem: Creating drag cubes for part 'proceduralBattery' [LOG 12:32:22.804] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/Heatshield/proceduralHeatshield' [ERR 12:32:22.807] [ShipTemplate]: No Resource definition found for RESOURCE

[WRN 12:32:22.819] Could not create PartResource of type 'Ablator [LOG 12:32:22.834] PartLoader: Part 'ProceduralParts/Parts/Structural/Heatshield/proceduralHeatshield' has no database record. Creating. [LOG 12:32:22.845] DragCubeSystem: Creating drag cubes for part 'proceduralHeatshield' [LOG 12:32:22.961] no fairing mesh [LOG 12:32:22.963] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/NoseCone/proceduralNoseCone' [LOG 12:32:22.986] PartLoader: Part 'ProceduralParts/Parts/Structural/NoseCone/proceduralNoseCone' has no database record. Creating. [LOG 12:32:22.996] DragCubeSystem: Creating drag cubes for part 'proceduralNoseCone' [LOG 12:32:23.043] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/StackDecoupler/proceduralStackDecoupler' [LOG 12:32:23.074] Added sound_decoupler_fire to FXGroup decouple [LOG 12:32:23.097] PartLoader: Part 'ProceduralParts/Parts/Structural/StackDecoupler/proceduralStackDecoupler' has no database record. Creating. [LOG 12:32:23.107] DragCubeSystem: Creating drag cubes for part 'proceduralStackDecoupler' [LOG 12:32:23.158] PartLoader: Compiling Part 'ProceduralParts/Parts/Structural/Structural/proceduralStructural' [LOG 12:32:23.195] PartLoader: Part 'ProceduralParts/Parts/Structural/Structural/proceduralStructural' has no database record. Creating. [LOG 12:32:23.212] DragCubeSystem: Creating drag cubes for part 'proceduralStructural' [LOG 12:32:23.259] PartLoader: Compiling Part 'ProceduralParts/Parts/Tanks/TankOre/proceduralTankOre' [ERR 12:32:23.262] [ShipTemplate]: No Resource definition found for RESOURCE

[WRN 12:32:23.263] Could not create PartResource of type 'Ore [LOG 12:32:23.299] PartLoader: Part 'ProceduralParts/Parts/Tanks/TankOre/proceduralTankOre' has no database record. Creating. [LOG 12:32:23.318] DragCubeSystem: Creating drag cubes for part 'proceduralTankOre' [LOG 12:32:23.365] PartLoader: Compiling Part 'ProceduralParts/Parts/ZOtherMods/RFSRB/proceduralSRBRealFuels' [LOG 12:32:23.420] Added sound_rocket_hard to FXGroup running [LOG 12:32:23.446] [MFS] Loading global settings [LOG 12:32:23.487] RF Loading RFSETTINGS global settings [LOG 12:32:23.490] RFMEC Could not find appropriate module of type ModuleEnginesRF, with ID= and index -1 [LOG 12:32:23.493] SolidFuel not found in resource database. Propellant Setup has failed. [EXC 12:32:23.503] NullReferenceException: Object reference not set to an instance of an object ModuleEngines.SetupPropellant () ModuleEngines.OnLoad (.ConfigNode node) PartModule.Load (.ConfigNode node) Part.AddModule (.ConfigNode node) PartLoader.ParsePart (.UrlConfig urlConfig, .ConfigNode node) PartLoader+�.MoveNext () [EXC 12:32:23.506] NullReferenceException: Object reference not set to an instance of an object ProceduralParts.ProceduralPart.InitializeObjects () ProceduralParts.ProceduralPart.OnStart (StartState state) UnityEngine.Debug:LogException(Exception) ProceduralParts.ProceduralPart:OnStart(StartState) Part:ModulesOnStart() �:MoveNext() [LOG 12:32:23.513] SolidFuel not found in resource database. Propellant Setup has failed. [EXC 12:32:23.514] NullReferenceException: Object reference not set to an instance of an object ModuleEngines.SetupPropellant () ModuleEngines.OnLoad (.ConfigNode node) PartModule.Load (.ConfigNode node) RealFuels.ModuleEngineConfigs.SetConfiguration (System.String newConfiguration, Boolean resetTechLevels) RealFuels.ModuleEngineConfigs.OnStart (StartState state) Part.ModulesOnStart () Part+�.MoveNext () [LOG 12:35:50.976] IR: [ServoController] destroy

— Reply to this email directly or view it on GitHub https://github.com/Swamp-Ig/ProceduralParts/issues/166.

— Reply to this email directly or view it on GitHub https://github.com/Swamp-Ig/ProceduralParts/issues/166#issuecomment-141129339 .

Sent from my iPhone

mobarre commented 9 years ago

Indeed...I have to assume that either ckan or module manager messed up my stock folders. Restoring my steam ksp backup did the trick.

KSP and bugs... Thanks for the help anyways :) I hope this'll help someone else with the same issue.

kypalmer commented 8 years ago

It certainly did help. Thanks for both the question and the answer!

mobarre commented 8 years ago

Ok, it happened to me again last week-end (along with a long list of incredibly annoying issues :p) The Squad folder removal of last time was my blunder. Solution I found this time was to remove all mods, nuke ckan, reinstall KSP and reinstall all my mods from a ckan file. Important to note that other than a ckan mods update, there was no change in my installation. Unfortunately this time, I did not manage to keep logs...

Polymaker commented 8 years ago

I'm closing this issue since it has been over a year now. If the issue still exist please open a new one.