Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when the plugin is enabled in UE 5.4 packaged builds #97

Open
StefanLundmark opened this issue Oct 25, 2024 · 3 comments
Open

Crash when the plugin is enabled in UE 5.4 packaged builds #97

StefanLundmark opened this issue Oct 25, 2024 · 3 comments

Comments

@StefanLundmark
Copy link

My packaged Unreal project crashes on startup when the plugin is enabled.

This is the callstack of the crash:

	Game-Win64-Debug.exe!__delayLoadHelper2(const ImgDelayDescr * pidd, __int64(*)() * ppfnIATEntry) Line 312	C++
 	Game-Win64-Debug.exe!CCallback<USteamNotificationsSubsystem::cSteamEventsStore,GameOverlayActivated_t,0>::Register(USteamNotificationsSubsystem::cSteamEventsStore * pObj, void(USteamNotificationsSubsystem::cSteamEventsStore::*)(GameOverlayActivated_t *) func) Line 163	C++
 	Game-Win64-Debug.exe!CCallback<USteamNotificationsSubsystem::cSteamEventsStore,GameOverlayActivated_t,0>::CCallback<USteamNotificationsSubsystem::cSteamEventsStore,GameOverlayActivated_t,0>(USteamNotificationsSubsystem::cSteamEventsStore * pObj, void(USteamNotificationsSubsystem::cSteamEventsStore::*)(GameOverlayActivated_t *) func) Line 148	C++
	Game-Win64-Debug.exe!USteamNotificationsSubsystem::USteamNotificationsSubsystem() Line 32	C++
 	Game-Win64-Debug.exe!InternalConstructor<USteamNotificationsSubsystem>(const FObjectInitializer & X) Line 3559	C++
 	Game-Win64-Debug.exe!UClass::CreateDefaultObject() Line 4586	C++
 	Game-Win64-Debug.exe!UClass::InternalCreateDefaultObjectWrapper() Line 5191	C++
 	Game-Win64-Debug.exe!UClass::GetDefaultObject(bool bCreateIfNeeded) Line 3242	C++
 	Game-Win64-Debug.exe!UObjectLoadAllCompiledInDefaultProperties(TArray<UClass *,TSizedDefaultAllocator<32>> & OutAllNewClasses) Line 810	C++
 	Game-Win64-Debug.exe!ProcessNewlyLoadedUObjects(FName Package, bool bCanProcessNewlyLoadedObjects) Line 894	C++
 	Game-Win64-Debug.exe!FEngineLoop::PreInitPostStartupScreen(const wchar_t * CmdLine) Line 3804	C++
 	Game-Win64-Debug.exe!FEngineLoop::PreInit(const wchar_t * CmdLine) Line 4483	C++
 	Game-Win64-Debug.exe!EnginePreInit(const wchar_t * CmdLine) Line 41	C++
 	Game-Win64-Debug.exe!GuardedMain(const wchar_t * CmdLine) Line 136	C++
 	Game-Win64-Debug.exe!LaunchWindowsStartup(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow, const wchar_t * CmdLine) Line 247	C++
 	Game-Win64-Debug.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * pCmdLine, int nCmdShow) Line 298	C++

Things I've tried:

  • Verified that steam_api64.dll is included in the package.
  • Rebuild.
  • Wiped DerivedDataCache and Intermediate folders followed by Rebuild.
  • Build on a separate computer.
  • Checked to make sure all plugin dependencies are included, like SteamSockets and the OnlineSubsystems.

It seems the top call in the callstack points at some kind of dynamic library not being found?

I'm not sure what else to do. I'm on the latest version of the plugin from GitHub.

@mordentral
Copy link
Owner

Yeah some people have this issue where it doesn't bind to the DLLs, however its using the engines implementation not something custom of mine and it works for the vast majority of users. I've never been able to reproduce it on any of my systems to track down what the engine structure is doing here or if its a weird load time issue.

I have considered just ripping out that event binding all together.

@StefanLundmark
Copy link
Author

I understand. Well, not much you can do if you can't reproduce it reliably.

Thanks for confirming, Joshua!

@StefanLundmark
Copy link
Author

I moved steam_api64.dll from its ThirdParty location in the packaged game, to where the game executable is. And now everything works. I don't understand but maybe this will help someone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants