joelngwt / CloudyGamePlugin

Plugin to interface between the Engine and the thin client
1 stars 0 forks source link

RemoteController crashes if a player joins a standalone game that is launched from the editor #3

Closed joelngwt closed 7 years ago

joelngwt commented 7 years ago

See next comment for updated reason.

This is because the UDP socket has been created and is in use when the editor is launched, and the standalone game tries to use the same socket.

[2016.10.03-04.57.49:559][  0]ModuleLog:Warning: CloudyGame: RemoteController Module Starting
[2016.10.03-04.57.49:559][  0]ServerLog:Warning: CloudyGame: RemoteController Server Started
[2016.10.03-04.57.49:559][  0]FUdpSocketBuilder: Failed to create the socket RemoteControllerServerSocket as configured
[2016.10.03-04.57.49:559][  0]LogWindows:Error: Windows GetLastError: The operation completed successfully. (0)
[2016.10.03-04.57.51:936][  0]LogWindows: === Critical error: ===
Assertion failed: Socket != NULL [File:C:\Users\stuadmin\Desktop\Repositories\UnrealEngine\Engine\Source\Runtime\Networking\Public\Common\UdpSocketReceiver.h] [Line: 40] 

KERNELBASE.dll
UE4Editor-Core.dll!FOutputDeviceWindowsError::Serialize() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor-Core.dll!FOutputDevice::Logf__VA() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\core\private\misc\outputdevice.cpp:143]
UE4Editor-Core.dll!FDebug::AssertFailed() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\core\private\misc\outputdevice.cpp:354]
UE4Editor-CloudyRemoteController.dll!FUdpSocketReceiver::FUdpSocketReceiver() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\networking\public\common\udpsocketreceiver.h:41]
UE4Editor-CloudyRemoteController.dll!RemoteControllerServer::StartServer() [c:\users\stuadmin\documents\unreal projects\myproject\plugins\cloudygameplugin\source\cloudyremotecontroller\private\server\remotecontrollerserver.cpp:21]
UE4Editor-CloudyRemoteController.dll!RemoteControllerServer::RemoteControllerServer() [c:\users\stuadmin\documents\unreal projects\myproject\plugins\cloudygameplugin\source\cloudyremotecontroller\private\server\remotecontrollerserver.cpp:10]
UE4Editor-CloudyRemoteController.dll!RemoteControllerModule::InitializeRemoteServer() [c:\users\stuadmin\documents\unreal projects\myproject\plugins\cloudygameplugin\source\cloudyremotecontroller\private\remotecontrollermodule.cpp:27]
UE4Editor-Core.dll!FModuleManager::LoadModuleWithFailureReason() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\core\private\modules\modulemanager.cpp:438]
UE4Editor-Projects.dll!FModuleDescriptor::LoadModulesForPhase() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\projects\private\moduledescriptor.cpp:370]
UE4Editor-Projects.dll!FPluginManager::LoadModulesForEnabledPlugins() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\projects\private\pluginmanager.cpp:454]
UE4Editor.exe!FEngineLoop::LoadStartupModules() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\launch\private\launchengineloop.cpp:1989]
UE4Editor.exe!FEngineLoop::PreInit() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\launch\private\launchengineloop.cpp:1495]
UE4Editor.exe!GuardedMain() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\launch\private\launch.cpp:110]
UE4Editor.exe!GuardedMainWrapper() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor.exe!WinMain() [c:\users\stuadmin\desktop\repositories\unrealengine\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]
UE4Editor.exe!__tmainCRTStartup() [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
KERNEL32.DLL
ntdll.dll
ntdll.dll

[2016.10.03-04.57.51:936][  0]LogExit: Executing StaticShutdownAfterError
[2016.10.03-04.57.51:939][  0]LogWindows: FPlatformMisc::RequestExit(1)
[2016.10.03-04.57.51:939][  0]Log file closed, 10/03/16 12:57:51```
joelngwt commented 7 years ago

Above issue is magically fixed.

Now the engine is unable to get the game instance from the viewport. It might be that the standalone version does not have a viewport (i.e. viewports might be for editors only)

[2016.10.14-08.01.08:499][  1]CloudyWebConnectorLog:Error: Request failed! Is the server up?
[2016.10.14-08.01.12:663][307]LogSavePackage: Save=1359.54ms
[2016.10.14-08.01.12:663][307]LogSavePackage: Moving '../../../../../Documents/Unreal Projects/MyProject3 (4.13)/Saved/UEDPCFirstPersonExampleMap670724B24A51B4731192E2A3FAAEA163.tmp' to '../../../../../Documents/Unreal Projects/MyProject3 (4.13)/Saved/Autosaves/Game/FirstPersonCPP/Maps/UEDPCFirstPersonExampleMap.umap'
[2016.10.14-08.01.12:666][307]LogSavePackage:Display: Finished SavePackage ../../../../../Documents/Unreal Projects/MyProject3 (4.13)/Saved/Autosaves/Game/FirstPersonCPP/Maps/UEDPCFirstPersonExampleMap.umap
[2016.10.14-08.01.12:672][307]LogEditorTransaction: Undo Spawn Play From Here Start
[2016.10.14-08.01.30:370][317]LogWindows:Warning: CreateProc failed (2) ..\..\..\Engine\Binaries/Win64/CrashReportClient.exe  -AppName=UE4-MyProject3 -CrashGUID=UE4CC-Windows-B2D9DF514DA570D313EF5BA9D0D70993_0000 -DebugSymbols=..\..\..\Engine\Intermediate\Symbols
[2016.10.14-08.01.30:370][317]LogWindows: Could not start CrashReportClient.exe
[2016.10.14-08.01.30:370][317]LogMemory: Platform Memory Stats for Windows
[2016.10.14-08.01.30:370][317]LogMemory: Process Physical Memory: 1371.72 MB used, 1452.54 MB peak
[2016.10.14-08.01.30:371][317]LogMemory: Process Virtual Memory: 1689.73 MB used, 1774.92 MB peak
[2016.10.14-08.01.30:371][317]LogMemory: Physical Memory: 9772.50 MB used, 32730.68 MB total
[2016.10.14-08.01.30:371][317]LogMemory: Virtual Memory: 2478.56 MB used, 134217728.00 MB total
[2016.10.14-08.01.33:249][645]LogCrashTracker: 

[2016.10.14-08.01.34:477][784]LogThreadingWindows:Error: Runnable thread Udp Input Receiver crashed.
[2016.10.14-08.01.34:477][784]LogCrashTracker: 

[2016.10.14-08.01.34:477][784]LogWindows:Error: === Critical error: ===
[2016.10.14-08.01.34:477][784]LogWindows:Error: 
[2016.10.14-08.01.34:477][784]LogWindows:Error: Fatal error!
[2016.10.14-08.01.34:477][784]LogWindows:Error: 
[2016.10.14-08.01.34:477][784]LogWindows:Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000098
[2016.10.14-08.01.34:477][784]LogWindows:Error: 
[2016.10.14-08.01.34:477][784]LogWindows:Error: UE4Editor-Engine.dll!UGameViewportClient::GetGameInstance() [c:\users\stuadmin\desktop\unrealengine4.13\engine\source\runtime\engine\private\gameviewportclient.cpp:363]
[2016.10.14-08.01.34:477][784]LogWindows:Error: UE4Editor-CloudyRemoteController.dll
[2016.10.14-08.01.34:477][784]LogWindows:Error: UE4Editor-CloudyRemoteController.dll
[2016.10.14-08.01.34:477][784]LogWindows:Error: UE4Editor-CloudyRemoteController.dll
[2016.10.14-08.01.34:477][784]LogWindows:Error: UE4Editor-CloudyRemoteController.dll
[2016.10.14-08.01.34:477][784]LogWindows:Error: UE4Editor-Core.dll!FRunnableThreadWin::Run() [c:\users\stuadmin\desktop\unrealengine4.13\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:74]
[2016.10.14-08.01.34:477][784]LogWindows:Error: UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() [c:\users\stuadmin\desktop\unrealengine4.13\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:31]
[2016.10.14-08.01.34:477][784]LogWindows:Error: KERNEL32.DLL
[2016.10.14-08.01.34:477][784]LogWindows:Error: ntdll.dll
[2016.10.14-08.01.34:477][784]LogWindows:Error: ntdll.dll
[2016.10.14-08.01.34:477][784]LogWindows:Error: 
[2016.10.14-08.01.34:477][784]LogWindows:Error: Crash in runnable thread Udp Input Receiver
[2016.10.14-08.01.34:493][786]LogExit: Executing StaticShutdownAfterError
[2016.10.14-08.01.34:493][786]LogWindows: FPlatformMisc::RequestExit(1)
[2016.10.14-08.01.34:493][786]Log file closed, 10/14/16 16:01:34