satisfactorymodding / SatisfactoryModLoader

SatisfactoryModLoader is an unofficial tool to load mods for the game Satisfactory.
GNU General Public License v3.0
277 stars 185 forks source link

Crash on launch if any mods installed #95

Open BlowMyHron opened 3 years ago

BlowMyHron commented 3 years ago

Hi, this issue only started recently. If I launch Satisfactory with mods enabled, I get the following crash (UE4 crash reporter):


Version: 159365, IsEditor: No, IsPerforceBuild: No, BuildConfiguration: Shipping, Launcher: Steam, NetMode: -, IsUsingMods: Yes

Fatal error: [File:C:/jnk/workspace/SML2_master/SML/Plugins/SML/Source/SML/Private/Patching/NativeHookManager.cpp] [Line: 44] Hooking function AFGSchematicManager::PopulateSchematicsLists failed: funchook failed: Failed to execute VirtualQuery (addr=0x7fffffff0000, error=87(The parameter is incorrect.))

FactoryGame_SML_Win64_Shipping!FNativeHookManagerInternal::RegisterHookFunction() [C:\jnk\workspace\SML2_master\SML\Plugins\SML\Source\SML\Private\Patching\NativeHookManager.cpp:78] FactoryGame_SML_Win64_Shipping!AModContentRegistry::DisableVanillaContentRegistration() [C:\jnk\workspace\SML2_master\SML\Plugins\SML\Source\SML\Private\Registry\ModContentRegistry.cpp:112] FactoryGame_SML_Win64_Shipping!FSatisfactoryModLoader::InitializeModLoading() [C:\jnk\workspace\SML2_master\SML\Plugins\SML\Source\SML\Private\SatisfactoryModLoader.cpp:194] FactoryGame_SML_Win64_Shipping!TBaseStaticDelegateInstance<void __cdecl(void)>::ExecuteIfSafe() [C:\jnk\workspace\SML2_master\ue4\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:859] FactoryGame_Win64_Shipping!TBaseMulticastDelegate::Broadcast() [d:\ws\sb-lowprio\ue4\engine\source\runtime\core\public\delegates\delegatesignatureimpl.inl:1013] FactoryGame_Win64_Shipping!FEngineLoop::Init() [d:\ws\sb-lowprio\ue4\engine\source\runtime\launch\private\launchengineloop.cpp:4057] FactoryGame_Win64_Shipping!GuardedMain() [d:\ws\sb-lowprio\ue4\engine\source\runtime\launch\private\launch.cpp:155] FactoryGame_Win64_Shipping!GuardedMainWrapper() [d:\ws\sb-lowprio\ue4\engine\source\runtime\launch\private\windows\launchwindows.cpp:137] FactoryGame_Win64_Shipping!WinMain() [d:\ws\sb-lowprio\ue4\engine\source\runtime\launch\private\windows\launchwindows.cpp:268] FactoryGame_Win64_Shipping!__scrt_common_main_seh() [d:\agent_work\2\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288] kernel32 ntdll


To note, I found a workaround is to start SMM in Administrator mode, but I never had to do this before. This issue still happens following;

  1. Verifying Steam files
  2. Uninstalling and re-downloading mods
  3. Reinstalling SMM
skittlekillr commented 3 years ago

I am getting the same exact error. Starting SMM in admin mode did not help. I tried with it both installed 'just for me', and for 'all users'. I also uninstalled everything, include the game client, and reinstalled and it did not work.

The only mod I'm using is the Smart Mod. Seems like it started after whatever minor patch we had recently. But I didn't see anyone else complaining on the Smart discord, so I don't know what the deal is.

budak7273 commented 2 years ago

Similar to #131, the only known fixes for this crash are restarting your PC and reinstalling the game.

ThatBeaverDev commented 2 years ago

I get this, But It's Only When I Launch The Game (Experimental Update 6) With Mods That Aren't Compatible With Update 6

Khazul commented 2 years ago

Same issue here.

I was able to run the game earlier today with a bunch of mods deployed. Quit the game, removed on of the mods. Several hours later I tried to run the game and since then the game will not start with any mod deployed. I thought at first it was Efficiency checker as that wax in the call stack and discovered it had an update. Updated, no change. Since tried creating a new profile with mods enabled, but no mods deployed and that runs OK. It seems that deploying any mod now yields this issue.

Version: 201145, IsEditor: No, IsPerforceBuild: No, BuildConfiguration: Shipping, Launcher: Steam, NetMode: -, IsUsingMods: Yes

Fatal error: [File:C:/ar-sml/_work/SatisfactoryModLoader/SatisfactoryModLoader/SML/Plugins/SML/Source/SML/Private/Patching/NativeHookManager.cpp] [Line: 44] Hooking function AFGSchematicManager::PopulateSchematicsLists failed: funchook failed: Failed to execute VirtualQuery (addr=0x7fffffff0000, error=87(The parameter is incorrect.))

FactoryGame_SML_Win64_Shipping!FNativeHookManagerInternal::RegisterHookFunction() [C:\ar-sml_work\SatisfactoryModLoader\SatisfactoryModLoader\SML\Plugins\SML\Source\SML\Private\Patching\NativeHookManager.cpp:78] FactoryGame_SML_Win64_Shipping!AModContentRegistry::DisableVanillaContentRegistration() [C:\ar-sml_work\SatisfactoryModLoader\SatisfactoryModLoader\SML\Plugins\SML\Source\SML\Private\Registry\ModContentRegistry.cpp:113] FactoryGame_SML_Win64_Shipping!FSatisfactoryModLoader::InitializeModLoading() [C:\ar-sml_work\SatisfactoryModLoader\SatisfactoryModLoader\SML\Plugins\SML\Source\SML\Private\SatisfactoryModLoader.cpp:171] FactoryGame_SML_Win64_Shipping!TBaseStaticDelegateInstance<void cdecl(void),FDefaultDelegateUserPolicy>::ExecuteIfSafe() [C:\ar-sml_work\SatisfactoryModLoader\SatisfactoryModLoader\ue4\lb\win\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:731] FactoryGame_Win64_Shipping!TMulticastDelegate<void cdecl(void),FDefaultDelegateUserPolicy>::Broadcast() [D:\ws\SB-220602145101-842\UE4\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:955] FactoryGame_Win64_Shipping!FEngineLoop::Init() [D:\ws\SB-220602145101-842\UE4\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4015] FactoryGame_Win64_Shipping!GuardedMain() [D:\ws\SB-220602145101-842\UE4\Engine\Source\Runtime\Launch\Private\Launch.cpp:155] FactoryGame_Win64_Shipping!GuardedMainWrapper() [D:\ws\SB-220602145101-842\UE4\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137] FactoryGame_Win64_Shipping!WinMain() [D:\ws\SB-220602145101-842\UE4\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268] FactoryGame_Win64_Shipping!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288] kernel32 ntdll

JoshuaPearce commented 1 year ago

For anyone who lands here, in 2023 restarting Steam fixed it (this time) for me. Otherwise, it behaved exactly like trying to load an incompatible mod, except that the mod reported by logs was seemingly random.