getnamo / SocketIOClient-Unreal

Socket.IO client plugin for the Unreal Engine.
Other
899 stars 240 forks source link

windows compilation issue:Fatal Error! #399

Closed TonyWang972 closed 1 year ago

TonyWang972 commented 1 year ago

Hello, Unreal Engine 5.0,ScoketIOClient 2.4.0, when connect to server,game crash immediately。

image

error log as follow: image


> 
> LogPlayLevel: Error: [2023.11.22-07.42.51:217][  7]LogRHI: Error: Breadcrumbs 'RHIThread'
> LogPlayLevel: Context 1/2
> LogPlayLevel:     00 Scene
> LogPlayLevel:     01 DiffuseIndirectAndAO
> LogPlayLevel:     02 LumenScreenProbeGather
> LogPlayLevel:     03 RadianceCache
> LogPlayLevel:     04 TranslucentSurfacesMarkPass
> LogPlayLevel: Error: [2023.11.22-07.42.51:219][  7]LogRHI: Error: Breadcrumbs 'RHIThread'
> LogPlayLevel: Error: [2023.11.22-07.42.56:033][483]LogThreadingWindows: Error: Runnable thread Background Worker #9 crashed.
> LogPlayLevel: Engine exit requested (reason: EngineExit() was called; note: exit was already requested)
> LogPlayLevel: Error: [2023.11.22-07.42.56:046][483]LogWindows: Error: begin: stack for UAT
> LogPlayLevel: Error: [2023.11.22-07.42.56:057][483]LogWindows: Error: === Critical error: ===
> LogPlayLevel: Error: [2023.11.22-07.42.56:057][483]LogWindows: Error:
> LogPlayLevel: Error: [2023.11.22-07.42.56:057][483]LogWindows: Error: Fatal error!
> LogPlayLevel: Error: [2023.11.22-07.42.56:057][483]LogWindows: Error:
> LogPlayLevel: Error: [2023.11.22-07.42.56:057][483]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000010008
> LogPlayLevel: Error: [2023.11.22-07.42.56:057][483]LogWindows: Error:
> LogPlayLevel: Error: [2023.11.22-07.42.56:057][483]LogWindows: Error: [Callstack] 0x00007ff695a0bceb DongTouNanTang.exe!rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>::Malloc() [D:\Unreal Project\DongTouNanTang\Plugins\SocketIOClient\Source\ThirdParty\rapidjson\include\rapidjson\allocators.h:194]
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69caa7ee2 DongTouNanTang.exe!rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69caa6770 DongTouNanTang.exe!rapidjson::GenericReader<rapidjson::UTF8<char>,rapidjson::UTF8<char>,rapidjson::CrtAllocator>::ParseString<0,rapidjson::EncodedInputStream<rapidjson::UTF8<char>,rapidjson::MemoryStream>,rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator> >() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69caa6118 DongTouNanTang.exe!rapidjson::GenericReader<rapidjson::UTF8<char>,rapidjson::UTF8<char>,rapidjson::CrtAllocator>::ParseObject<0,rapidjson::EncodedInputStream<rapidjson::UTF8<char>,rapidjson::MemoryStream>,rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator> >() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69caa6118 DongTouNanTang.exe!rapidjson::GenericReader<rapidjson::UTF8<char>,rapidjson::UTF8<char>,rapidjson::CrtAllocator>::ParseObject<0,rapidjson::EncodedInputStream<rapidjson::UTF8<char>,rapidjson::MemoryStream>,rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator> >() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69caa63a6 DongTouNanTang.exe!rapidjson::GenericDocument<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>,rapidjson::CrtAllocator>::ParseStream<0,rapidjson::UTF8<char>,rapidjson::EncodedInputStream<rapidjson::UTF8<char>,rapidjson::MemoryStream> >() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69cae56e7 DongTouNanTang.exe!std::map<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,CesiumUtility::JsonValue,std::less<std::basic_string<char,std::char_traits<char>,std::allocator<char> > >,std::allocator<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,CesiumUtility::JsonValue> > >::operator[]() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69cadbda7 DongTouNanTang.exe!async::detail::task_func<async::detail::inline_scheduler_impl,async::detail::continuation_exec_func<async::detail::inline_scheduler_impl,async::task<Cesium3DTilesSelection::TileLoadResultAndRenderResources>,async::detail::fake_void,async::detail::unwrapped_func<Cesium3DTilesSelection::TileLoadResultAndRenderResources,async::task<Cesium3DTilesSelection::TileLoadResultAndRenderResources> >,std::integral_constant<bool,0>,0>,async::detail::fake_void>::destroy() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69cb8ed46 DongTouNanTang.exe!CesiumAsync::CesiumImpl::ImmediateScheduler<CesiumAsync::CesiumImpl::TaskScheduler>::SchedulerScope::~SchedulerScope() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff6956d78c8 DongTouNanTang.exe!<lambda_c3bbe2f525419bca719c4acf171c4763>::operator()() [D:\build\U5M-Marketplace\Sync\LocalBuilds\PluginTemp\HostProject\Plugins\CesiumForUnreal\Source\CesiumRuntime\Private\UnrealTaskProcessor.cpp:10]
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff696562ebc DongTouNanTang.exe!TGraphTask<FAsyncGraphTask>::ExecuteTask() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff6965527dc DongTouNanTang.exe!<lambda_b0effac95abe128e68ff2c315eb1e3d1>::operator()() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69655892e DongTouNanTang.exe!LowLevelTasks::TTaskDelegate<void __cdecl(bool),48>::TTaskDelegateImpl<<lambda_b0effac95abe128e68ff2c315eb1e3d1>,0>::CallAndMove() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff696564176 DongTouNanTang.exe!LowLevelTasks::FTask::ExecuteTask() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69654cc9d DongTouNanTang.exe!LowLevelTasks::FScheduler::TryExecuteTaskFrom<&LowLevelTasks::TLocalQueueRegistry<1024>::TLocalQueue::DequeueGlobal,0>() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff696582782 DongTouNanTang.exe!LowLevelTasks::FScheduler::WorkerMain() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff6965566f0 DongTouNanTang.exe!UE::Core::Private::Function::TFunctionRefCaller<<lambda_3277f5600efe2aa6f5f67d459ec105a9>,unsigned __int64 __cdecl(unsigned __int64)>::Call() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff69669adc5 DongTouNanTang.exe!FThreadImpl::Run() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff696bbc59b DongTouNanTang.exe!FRunnableThreadWin::Run() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ff696bb5210 DongTouNanTang.exe!FRunnableThreadWin::GuardedRun() []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ffe0f03257d KERNEL32.DLL!UnknownFunction []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: [Callstack] 0x00007ffe0f3caa58 ntdll.dll!UnknownFunction []
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error:
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: Crash in runnable thread Background Worker #9
> LogPlayLevel: Error: [2023.11.22-07.42.56:058][483]LogWindows: Error: end: stack for UAT
> LogPlayLevel: Error: ERROR: Client exited with error code: 3
getnamo commented 1 year ago

based on crash it appears to be related to the json sent, got a sample of the data you're trying to decode?

TonyWang972 commented 1 year ago

It can be correctly received and printed in the level debug window, the json data as follow: image

TonyWang972 commented 1 year ago

My question seems to be the same as this issue【my Fatal error when Packaging #347】, but it seems to be a little different in the UE5 branch