SoapboxRaceWorld / GameLauncher_NFSW

An unofficial launcher for Need for Speed: World (https://launcher.worldunited.gg / https://soapboxrace.world)
GNU General Public License v3.0
434 stars 133 forks source link

Unable to Start Launcher The type initializer for 'System.Windows.Application' threw an exception. #165

Closed zielony12 closed 1 year ago

zielony12 commented 3 years ago
DavidCarbon commented 3 years ago

Hello, I would like to have you test a Test Build that uses the old starting (Launcher) method. While I can not guarantee that it would work for you, but it could shed light if it does solve your issue.

Based on 2.1.7.8 (So you will need the .DLL files from 2.1.7.8 along with Linux Compact) Test Build: Download

MD5: 936783D1F7A374DCC93E93D1DD9CA5A2 SHA-1: A210EF1298A5EA8099E73CE5CED217EA555C4017 SHA-256: 4DCBF8F98E281A98B131A30F8B83AA47AE6421E1A805B5D5B9B29B659CECA23C

Juje commented 3 years ago

I got the same error and it threw the following with the new exe. I'm using Ubuntu 20.10.

System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> <CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load during appdomain initialization.
 ---> System.DllNotFoundException: ucrtbase_clr0400.dll assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) <Module>._calloc_base(uint,uint)
  at <Module>.__scrt_initialize_type_info () [0x00000] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>._initatexit_app_domain () [0x00035] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>.<CrtImplementationDetails>.LanguageSupport.InitializePerAppDomain (<CrtImplementationDetails>.LanguageSupport* ) [0x0002c] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>.<CrtImplementationDetails>.LanguageSupport._Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00015] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x0000c] in <90e7e48a62b14b1d9342b00af966f24b>:0 
   --- End of inner exception stack trace ---
  at <Module>.<CrtImplementationDetails>.ThrowModuleLoadException (System.String errorMessage, System.Exception innerException) [0x00007] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00022] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>..cctor () [0x00008] in <90e7e48a62b14b1d9342b00af966f24b>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Application..cctor () [0x00024] in <3c415cb1390242439cb4ddcbf49673aa>:0 
   --- End of inner exception stack trace ---
  at Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.ApplyNativeSettings (Microsoft.WindowsAPICodePack.Dialogs.IFileDialog dialog) [0x0002b] in <aaf690882eff4f39953ba99e3e7bde23>:0 
  at Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.ShowDialog () [0x00014] in <aaf690882eff4f39953ba99e3e7bde23>:0 
  at GameLauncher.App.Classes.LauncherCore.Global.FunctionStatus.FirstTimeRun () [0x00106] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.LauncherUpdater.LauncherUpdateCheck.Latest () [0x001a5] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.LauncherUpdater.UpdaterExecutable.Check () [0x002eb] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.Validator.VerifyTrust.IsExeVerified.Check () [0x0002a] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.SystemPlatform.Windows.CertificateStore.Latest () [0x00565] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.Lists.ServerListUpdater.GetList () [0x0044f] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.Lists.LanguageListUpdater.GetList () [0x0028f] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.Visuals.Theming.CheckIfThemeExists () [0x01ca4] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.SystemPlatform.Windows.Redistributable.Check () [0x0027f] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.Program.Start () [0x008c7] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.Program.Main () [0x00399] in <8e403687484f4a179fb569987980905a>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Application' threw an exception. ---> System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> <CrtImplementationDetails>.ModuleLoadException: The C++ module failed to load during appdomain initialization.
 ---> System.DllNotFoundException: ucrtbase_clr0400.dll assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) <Module>._calloc_base(uint,uint)
  at <Module>.__scrt_initialize_type_info () [0x00000] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>._initatexit_app_domain () [0x00035] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>.<CrtImplementationDetails>.LanguageSupport.InitializePerAppDomain (<CrtImplementationDetails>.LanguageSupport* ) [0x0002c] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>.<CrtImplementationDetails>.LanguageSupport._Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00015] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x0000c] in <90e7e48a62b14b1d9342b00af966f24b>:0 
   --- End of inner exception stack trace ---
  at <Module>.<CrtImplementationDetails>.ThrowModuleLoadException (System.String errorMessage, System.Exception innerException) [0x00007] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize (<CrtImplementationDetails>.LanguageSupport* ) [0x00022] in <90e7e48a62b14b1d9342b00af966f24b>:0 
  at <Module>..cctor () [0x00008] in <90e7e48a62b14b1d9342b00af966f24b>:0 
   --- End of inner exception stack trace ---
  at System.Windows.Application..cctor () [0x00024] in <3c415cb1390242439cb4ddcbf49673aa>:0 
   --- End of inner exception stack trace ---
  at Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.ApplyNativeSettings (Microsoft.WindowsAPICodePack.Dialogs.IFileDialog dialog) [0x0002b] in <aaf690882eff4f39953ba99e3e7bde23>:0 
  at Microsoft.WindowsAPICodePack.Dialogs.CommonFileDialog.ShowDialog () [0x00014] in <aaf690882eff4f39953ba99e3e7bde23>:0 
  at GameLauncher.App.Classes.LauncherCore.Global.FunctionStatus.FirstTimeRun () [0x00106] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.LauncherUpdater.LauncherUpdateCheck.Latest () [0x001a5] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.LauncherUpdater.UpdaterExecutable.Check () [0x002eb] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.Validator.VerifyTrust.IsExeVerified.Check () [0x0002a] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.SystemPlatform.Windows.CertificateStore.Latest () [0x00565] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.Lists.ServerListUpdater.GetList () [0x0044f] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.Lists.LanguageListUpdater.GetList () [0x0028f] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.LauncherCore.Visuals.Theming.CheckIfThemeExists () [0x01ca4] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.App.Classes.SystemPlatform.Windows.Redistributable.Check () [0x0027f] in <8e403687484f4a179fb569987980905a>:0 
  at GameLauncher.Program.Start () [0x008c7] in <8e403687484f4a179fb569987980905a>:0