Unity3D game build with PEW EOS plugin crashes on start with GfxPluginNativeRender_x64 in stack

Hello,

We are porting our game to Epic Game Store.

We are using PEW plugin.

Unity 2021.3.14f1

PEW plugin version 4.0.2 https://github.com/EOS-Contrib/eos_plugin_for_unity/releases/tag/v4.0.2

Build (and run) machine: Windows 10 Home 22H2 19045.6093

We successfully built our game.

We see that EOSBootstrapper.exe are in the build, also we see that EOSSDK-Win64-Shipping.dll and toher EOS libs re in build.

We tried solutions mentioned here:

https://github.com/EOS-Contrib/eos_plugin_for_unity/issues/671

https://github.com/EOS-Contrib/eos_plugin_for_unity/issues/806

but they didnt fix the problem.

We tried Mono backend, same result

Also tried on empty project with EOS configs from our main project -same result

Tried EOS plugin 3.2.1 - same result

Tried with Unity 2021.3.55f1, eos plugin 4.0.2 - same result

We are using Visual Studio 2019, if this matters.

How should we fix?

[0x0]   ntdll!NtWaitForMultipleObjects+0x14   0xfd3f6edac8   0x7fffd64b0cd0
[0x1]   KERNELBASE!WaitForMultipleObjectsEx+0xf0   0xfd3f6edad0   0x7fffd64b0bce
[0x2]   KERNELBASE!WaitForMultipleObjects+0xe   0xfd3f6eddc0   0x7fff58a4b452
[0x3]   UnityPlayer!winutils::ExternalCrashHandler::HandleCrash+0x242   0xfd3f6ede00   0x7fff58a4b4e2
[0x4]   UnityPlayer!winutils::ExternalCrashHandler::HandleCrash+0x22   0xfd3f6edeb0   0x7fff58a5c398
[0x5]   UnityPlayer!winutils::CrashHandler::HandleCrash+0x30   (Inline Function)   (Inline Function)
[0x6]   UnityPlayer!winutils::ProcessInternalCrash+0x118   0xfd3f6edf00   0x7fffd658c2d7
[0x7]   KERNELBASE!UnhandledExceptionFilter+0x1e7   0xfd3f6edf30   0x7fffd8af5818
[0x8]   ntdll!RtlUserThreadStart$filt$0+0xa2   0xfd3f6ee050   0x7fffd8adce46
[0x9]   ntdll!_C_specific_handler+0x96   0xfd3f6ee090   0x7fffd8af28bf
[0xa]   ntdll!RtlpExecuteHandlerForException+0xf   0xfd3f6ee100   0x7fffd8aa2554
[0xb]   ntdll!RtlDispatchException+0x244   0xfd3f6ee130   0x7fffd8af13ce
[0xc]   ntdll!KiUserExceptionDispatch+0x2e   0xfd3f6ee840   0x7fffa2dbc34f
[0xd]   GfxPluginNativeRender_x64+0xc34f   0xfd3f6eef50   0x7fffa2dba612
[0xe]   GfxPluginNativeRender_x64+0xa612   0xfd3f6eefe0   0x7fffa2dbb4ee
[0xf]   GfxPluginNativeRender_x64+0xb4ee   0xfd3f6ef070   0x7fffa2dbd488
[0x10]   GfxPluginNativeRender_x64!UnityPluginLoad+0x308   0xfd3f6ef370   0x7fff586e3b3f
[0x11]   UnityPlayer!RegisterPlugin+0x15f   0xfd3f6ef5b0   0x7fff586e1bbc
[0x12]   UnityPlayer!InitializePlugin+0xac   (Inline Function)   (Inline Function)
[0x13]   UnityPlayer!FindAndLoadUnityPlugin+0x1dc   0xfd3f6ef630   0x7fff586e36d6
[0x14]   UnityPlayer!PluginsInitializePreloadedPlugins+0x46   0xfd3f6ef6d0   0x7fff58507399
[0x15]   UnityPlayer!CallbackInfoBase<void (__cdecl*)(void),void (__cdecl*)(void const *)>::Invoke+0x8   (Inline Function)   (Inline Function)
[0x16]   UnityPlayer!CallbackArray::Invoke+0x39   0xfd3f6ef700   0x7fff586ec8ec
[0x17]   UnityPlayer!PlayerInitEngineNoGraphics+0x2fc   0xfd3f6ef730   0x7fff588d6210
[0x18]   UnityPlayer!UnityMainImpl+0x6a0   0xfd3f6ef7e0   0x7fff588d87eb
[0x19]   UnityPlayer!UnityMain+0xb   0xfd3f6ffa50   0x7ff670ac11f2
[0x1a]   OurGame!invoke_main+0x21   (Inline Function)   (Inline Function)
[0x1b]   OurGame!__scrt_common_main_seh+0x106   0xfd3f6ffa80   0x7fffd8467374
[0x1c]   kernel32!BaseThreadInitThunk+0x14   0xfd3f6ffac0   0x7fffd8a9cc91
[0x1d]   ntdll!RtlUserThreadStart+0x21   0xfd3f6ffaf0   0x0

One more question - where I can find pdb for GfxPluginNativeRender-x64.dll?

I see that some frames aren’t symbolicated.

I think if we can symbolicate them we can understand what causes crash

Hello,

Fixed.

I forgot to set deployment id (or didnt commit it after settings).

It should be very useful if SDK/plugin will write debug info in log in such cases.

Hi Petr,

I’m glad you were able to figure out the issue. Thanks for pointing out the cause of your issue, we’ll look into adding an error log for missing info such as deployment ID.

-Jeff