linuxgurugamer / KCT

Kerbal Construction Time - An addon for Kerbal Space Program
GNU General Public License v3.0
11 stars 15 forks source link

Main menu unclickable if KCT (or Tac Fuel Balancer) is installed together with ModularFlightIntegrator #61

Closed Vladimir-csp closed 4 years ago

Vladimir-csp commented 4 years ago

Hi! I've got an incompatibility issue on Debian testing with KSP 1.8.1 If either of Kerbal Construction time or Tac Fuel balancer is installed together with ModularFlightIntegrator (from Kopernicus distribution), main menu becomes unclickable. Of my 40 mods collection these 2+1 are the only ones that cause this issue.

Something potentially relevant from the diff between Player.log of MFI+KCT and just MFI installs:

ADDON BINDER: Cannot resolve assembly: ToolbarControl, Culture=neutral, PublicKeyToken=null

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

ADDON BINDER: Cannot resolve assembly: ToolbarControl, Culture=neutral, PublicKeyToken=null

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 2173 unused Assets to reduce memory usage. Loaded Objects now: 165231.
Total: 316.785390 ms (FindLiveObjects: 15.288431 ms CreateObjectMapping: 10.539913 ms MarkObjects: 271.775045 ms  DeleteObjects: 19.180097 ms)
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 <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader+LoadedAssembly.TypeOperation (System.Action`1[T] action) [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action`1[T] action) [0x0001c] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.AgentMentality.GenerateMentalityTypes () [0x00025] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.AgentMentality.AddMentality (Contracts.Agents.Agent agent, System.String mentalityName, System.Single factor) [0x00000] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.Agent.LoadAgent (ConfigNode node) [0x0010a] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.AgentList.LoadAgents (ConfigNode[] nodes) [0x00008] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.AgentList.Start () [0x00014] in <2c9e31d65a604d1980fb0cb89728fc1e>: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)
(Filename: <ad04dee02e7e4a85a1299c7ee81c79f6> Line: 0)

[ModuleManager] Intercepted a ReflectionTypeLoadException. List of broken DLLs:
KerbalConstructionTime 1.4.7.10 GameData/Kerbal_Construction_Time-1.4.7.11/GameData/KerbalConstructionTime/Plugins/KerbalConstructionTime.dll
UnloadTime: 2.202211 ms
[AddonLoader]: Exception iterating 'KerbalConstructionTime': Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 345 unused Assets to reduce memory usage. Loaded Objects now: 170179.
Total: 311.415856 ms (FindLiveObjects: 10.341782 ms CreateObjectMapping: 8.714340 ms MarkObjects: 285.171294 ms  DeleteObjects: 7.187601 ms)
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 <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader+LoadedAssembly.TypeOperation (System.Action`1[T] action) [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action`1[T] action) [0x0001c] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at GameParameters.GenerateParameterTypes () [0x00025] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at GameParameters..cctor () [0x00010] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
Rethrow as TypeInitializationException: The type initializer for 'GameParameters' threw an exception.
  at MainMenu.Start () [0x00057] in <2c9e31d65a604d1980fb0cb89728fc1e>: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)
(Filename: <ad04dee02e7e4a85a1299c7ee81c79f6> Line: 0)
[ModuleManager] Total loading Time = 64.831s

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Exception handling event onNewGameLevelLoadRequestWasSanctionedAndActioned in class ScenarioRunner:System.Reflection.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 <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader+LoadedAssembly.TypeOperation (System.Action`1[T] action) [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action`1[T] action) [0x0001c] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at KSPScenarioType.GetAllScenarioTypesInAssemblies () [0x00011] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at ScenarioRunner.AddMainMenuScenarios () [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at ScenarioRunner.onLevelWasLoaded (GameScenes scene) [0x00017] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at EventData`1[T].Fire (T data) [0x000b0] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
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 <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader+LoadedAssembly.TypeOperation (System.Action`1[T] action) [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action`1[T] action) [0x0001c] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at KSPScenarioType.GetAllScenarioTypesInAssemblies () [0x00011] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at ScenarioRunner.AddMainMenuScenarios () [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at ScenarioRunner.onLevelWasLoaded (GameScenes scene) [0x00017] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at EventData`1[T].Fire (T data) [0x000b0] in <2c9e31d65a604d1980fb0cb89728fc1e>: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:LogException(Exception)
EventData`1:Fire(GameScenes)
<FireLoadedEvent>d__44:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: <ad04dee02e7e4a85a1299c7ee81c79f6> Line: 0)

[ModuleManager] Intercepted a ReflectionTypeLoadException. List of broken DLLs:
KerbalConstructionTime 1.4.7.10 GameData/Kerbal_Construction_Time-1.4.7.11/GameData/KerbalConstructionTime/Plugins/KerbalConstructionTime.dll

[MessageSystem] Reposition 0.06447165 4301
Curl error 42: Callback aborted
  Thread -> id: 7fe717399700 -> priority: 1 
  Thread -> id: 7fe716b98700 -> priority: 1 
siimav commented 4 years ago

GameData/Kerbal_Construction_Time-1.4.7.11/GameData/KerbalConstructionTime/Plugins/KerbalConstructionTime.dll Looks like your gamedata structure is seriously messed up.

Vladimir-csp commented 4 years ago

Whoops, one of the messier tests, copying everything back and forth. Here is the similar diff with proper placement, same result:

ADDON BINDER: Cannot resolve assembly: ToolbarControl, Culture=neutral, PublicKeyToken=null

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

ADDON BINDER: Cannot resolve assembly: ToolbarControl, Culture=neutral, PublicKeyToken=null

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 2173 unused Assets to reduce memory usage. Loaded Objects now: 165231.
Total: 314.059594 ms (FindLiveObjects: 12.815101 ms CreateObjectMapping: 10.182035 ms MarkObjects: 271.943526 ms  DeleteObjects: 19.117590 ms)
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 <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader+LoadedAssembly.TypeOperation (System.Action`1[T] action) [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action`1[T] action) [0x0001c] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.AgentMentality.GenerateMentalityTypes () [0x00025] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.AgentMentality.AddMentality (Contracts.Agents.Agent agent, System.String mentalityName, System.Single factor) [0x00000] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.Agent.LoadAgent (ConfigNode node) [0x0010a] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.AgentList.LoadAgents (ConfigNode[] nodes) [0x00008] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at Contracts.Agents.AgentList.Start () [0x00014] in <2c9e31d65a604d1980fb0cb89728fc1e>: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)
(Filename: <ad04dee02e7e4a85a1299c7ee81c79f6> Line: 0)

[ModuleManager] Intercepted a ReflectionTypeLoadException. List of broken DLLs:
KerbalConstructionTime 1.4.7.10 GameData/KerbalConstructionTime/Plugins/KerbalConstructionTime.dll
UnloadTime: 2.167221 ms
[AddonLoader]: Exception iterating 'KerbalConstructionTime': Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Unloading 345 unused Assets to reduce memory usage. Loaded Objects now: 170179.
Total: 305.290731 ms (FindLiveObjects: 10.435169 ms CreateObjectMapping: 9.132428 ms MarkObjects: 278.056804 ms  DeleteObjects: 7.665681 ms)
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 <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader+LoadedAssembly.TypeOperation (System.Action`1[T] action) [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action`1[T] action) [0x0001c] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at GameParameters.GenerateParameterTypes () [0x00025] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at GameParameters..cctor () [0x00010] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
Rethrow as TypeInitializationException: The type initializer for 'GameParameters' threw an exception.
  at MainMenu.Start () [0x00057] in <2c9e31d65a604d1980fb0cb89728fc1e>: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)
(Filename: <ad04dee02e7e4a85a1299c7ee81c79f6> Line: 0)
[ModuleManager] Total loading Time = 68.344s

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

Exception handling event onNewGameLevelLoadRequestWasSanctionedAndActioned in class ScenarioRunner:System.Reflection.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 <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader+LoadedAssembly.TypeOperation (System.Action`1[T] action) [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action`1[T] action) [0x0001c] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at KSPScenarioType.GetAllScenarioTypesInAssemblies () [0x00011] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at ScenarioRunner.AddMainMenuScenarios () [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at ScenarioRunner.onLevelWasLoaded (GameScenes scene) [0x00017] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at EventData`1[T].Fire (T data) [0x000b0] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
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 <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at AssemblyLoader+LoadedAssembly.TypeOperation (System.Action`1[T] action) [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at AssemblyLoader+LoadedAssembyList.TypeOperation (System.Action`1[T] action) [0x0001c] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at KSPScenarioType.GetAllScenarioTypesInAssemblies () [0x00011] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at ScenarioRunner.AddMainMenuScenarios () [0x00006] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at ScenarioRunner.onLevelWasLoaded (GameScenes scene) [0x00017] in <2c9e31d65a604d1980fb0cb89728fc1e>:0 
  at EventData`1[T].Fire (T data) [0x000b0] in <2c9e31d65a604d1980fb0cb89728fc1e>: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:LogException(Exception)
EventData`1:Fire(GameScenes)
<FireLoadedEvent>d__44:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: <ad04dee02e7e4a85a1299c7ee81c79f6> Line: 0)

[ModuleManager] Intercepted a ReflectionTypeLoadException. List of broken DLLs:
KerbalConstructionTime 1.4.7.10 GameData/KerbalConstructionTime/Plugins/KerbalConstructionTime.dll

[MessageSystem] Reposition 0.06549218 4237
  Thread -> id: 7f12431ef700 -> priority: 1 
  Thread -> id: 7f122c816700 -> priority: 1 
linuxgurugamer commented 4 years ago

Please ask for help on the forums before opening an issue here. Especially when you make such an obvious mistake. I just installed both KCT and MFI using CKAN, and there are no issues at all. In your case, you are missing the ToolbarController, in the very first line of the log snippit that you posted:

ADDON BINDER: Cannot resolve assembly: ToolbarControl, Culture=neutral, PublicKeyToken=null

linuxgurugamer commented 4 years ago

One more thing. Always post a complete log file, not a snippit. There is information throughout the log file which we use to track down a problem, the actual problem is not always where the final exception is