Jump to content

ReflectionTypeLoadException caused by BetterBurnTime hangs KSP loading


Recommended Posts

I'm trying to run a new 1.12.2 modded install. However, it keeps hanging when loading parts on the initial load.

Here is a GH gist containing my mod list (from CKAN's exported  installed mod list), and the Player.log before I manually killed the game.

Of note, I noticed this ReflectionTypeLoadException in Player.log line 117883:

Spoiler


PartLoader: Part 'Bluedog_DB/Parts/Agena/bluedog_Agena_AInterstage/bluedog_Agena_AInterstage' has no database record. Creating. 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[DragCubeSystem]: Drag cubes not found or cannot be read for part Part. Generating New drag cubes. 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

DragCubeSystem: Creating drag cubes for part 'bluedog.Agena.AInterstage' 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Uploading Crash Report
ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at AssemblyLoader+LoadedAssembyList.GetPathByType (System.Type type) [0x00020] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at AssemblyLoader.GetPathByType (System.Type type) [0x00000] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at KSP.IO.IOUtils.GetFilePathFor (System.Type T, System.String file, Vessel flight) [0x00005] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at KSP.IO.PluginConfiguration.CreateForType[T] (Vessel flight) [0x00000] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at BetterBurnTime.Configuration..cctor () [0x00000] in <71649f67204e44e7970ea5c3a77170bb>:0 
Rethrow as TypeInitializationException: The type initializer for 'BetterBurnTime.Configuration' threw an exception.
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at BetterBurnTime.TimeFormatter..cctor () [0x00027] in <71649f67204e44e7970ea5c3a77170bb>:0 
Rethrow as TypeInitializationException: The type initializer for 'BetterBurnTime.TimeFormatter' threw an exception.
  at BetterBurnTime.ModuleEngineBurnTime.GetPrimaryField () [0x00006] in <71649f67204e44e7970ea5c3a77170bb>:0 
  at BetterBurnTime.ModuleEngineBurnTime.GetInfo () [0x00000] in <71649f67204e44e7970ea5c3a77170bb>:0 
  at PartLoader.CompilePartInfo (AvailablePart newPartInfo, Part part) [0x0017c] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at PartLoader+<CompileParts>d__56.MoveNext () [0x007a2] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <12e76cd50cc64cf19e759e981cb725af>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

Initially, KSP would stop loading on BDB's Agena Interstage. Then I removed BDB, then it stopped on reDIRECT. Based on the `DragCubeSystem` in the Player.log, I removed FAR to see if it was causing the issue, which it seems to not, since the issue continues.

Then I noticed that BetterBurnTime was throwing an exception, specifically `BetterBurnTime.TimeFormatter`. After killing KSP, removing BetterBurnTime, and relaunching again, the game launched as normal

So, in the end, it seems BetterBurnTime v1.10 was the culprit, but why?

cc @Snark, since this is in regards to his mod.

Link to comment
Share on other sites

On 8/7/2021 at 5:57 PM, bigyihsuan said:

So, in the end, it seems BetterBurnTime v1.10 was the culprit, but why?

cc @Snark, since this is in regards to his mod.

No idea here; can't reproduce it, works fine for me.

Do you see the issue if you have BetterBurnTime, but nothing else installed?

Link to comment
Share on other sites

On 8/7/2021 at 5:57 PM, bigyihsuan said:

I'm trying to run a new 1.12.2 modded install. However, it keeps hanging when loading parts on the initial load.

Here is a GH gist containing my mod list (from CKAN's exported  installed mod list), and the Player.log before I manually killed the game.

Of note, I noticed this ReflectionTypeLoadException in Player.log line 117883:

  Hide contents

 

 

PartLoader: Part 'Bluedog_DB/Parts/Agena/bluedog_Agena_AInterstage/bluedog_Agena_AInterstage' has no database record. Creating. 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[DragCubeSystem]: Drag cubes not found or cannot be read for part Part. Generating New drag cubes. 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

DragCubeSystem: Creating drag cubes for part 'bluedog.Agena.AInterstage' 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Uploading Crash Report
ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
  at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 
  at AssemblyLoader+LoadedAssembyList.GetPathByType (System.Type type) [0x00020] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at AssemblyLoader.GetPathByType (System.Type type) [0x00000] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at KSP.IO.IOUtils.GetFilePathFor (System.Type T, System.String file, Vessel flight) [0x00005] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at KSP.IO.PluginConfiguration.CreateForType[T] (Vessel flight) [0x00000] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at BetterBurnTime.Configuration..cctor () [0x00000] in <71649f67204e44e7970ea5c3a77170bb>:0 
Rethrow as TypeInitializationException: The type initializer for 'BetterBurnTime.Configuration' threw an exception.
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at BetterBurnTime.TimeFormatter..cctor () [0x00027] in <71649f67204e44e7970ea5c3a77170bb>:0 
Rethrow as TypeInitializationException: The type initializer for 'BetterBurnTime.TimeFormatter' threw an exception.
  at BetterBurnTime.ModuleEngineBurnTime.GetPrimaryField () [0x00006] in <71649f67204e44e7970ea5c3a77170bb>:0 
  at BetterBurnTime.ModuleEngineBurnTime.GetInfo () [0x00000] in <71649f67204e44e7970ea5c3a77170bb>:0 
  at PartLoader.CompilePartInfo (AvailablePart newPartInfo, Part part) [0x0017c] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at PartLoader+<CompileParts>d__56.MoveNext () [0x007a2] in <cd473063d3a2482f8d93d388d0c95035>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <12e76cd50cc64cf19e759e981cb725af>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

 

Initially, KSP would stop loading on BDB's Agena Interstage. Then I removed BDB, then it stopped on reDIRECT. Based on the `DragCubeSystem` in the Player.log, I removed FAR to see if it was causing the issue, which it seems to not, since the issue continues.

Then I noticed that BetterBurnTime was throwing an exception, specifically `BetterBurnTime.TimeFormatter`. After killing KSP, removing BetterBurnTime, and relaunching again, the game launched as normal

So, in the end, it seems BetterBurnTime v1.10 was the culprit, but why?

cc @Snark, since this is in regards to his mod.

Are you running JNSQ?  Do you have Kronometer installed?  Any chance of a MiniAVC.dll still in there somewhere?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...