porisius / FicsitRemoteMonitoring

54 stars 12 forks source link

segfault in FRM_Trains::getTrains #80

Open nward opened 3 weeks ago

nward commented 3 weeks ago

Great mod, but unfortunately it's been crashing for us every couple of hours.

Unsure if you're open to these - but here's a stack trace from a crash in FRM_Trains::getTrains:

[2024.10.13-10.09.07:073][ 40]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000330

[2024.10.13-10.09.07:073][ 40]LogCore: Fatal error!

0x00007215875a01b1 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!UFRM_Trains::getTrains(UObject*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FRM_Trains.cpp:51]
0x00007215875b1d1d libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::getTrains(UObject*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/../../FicsitRemoteMonitoring/Public/FicsitRemoteMonitoring.h:432]
0x0000721587556b4e libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::execgetTrains(UObject*, FFrame&, void*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Intermediate/Build/Linux/FactoryServer/Inc/FicsitRemoteMonitoring/UHT/FicsitRemoteMonitoring.gen.cpp:275]
0x00007215b60d4767 libFactoryServer-CoreUObject-Linux-Shipping.so!UFunction::Invoke(UObject*, FFrame&, void*) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./Runtime/CoreUObject/Private/UObject/Class.cpp:6665]
0x00007215b62fe99a libFactoryServer-CoreUObject-Linux-Shipping.so!UObject::ProcessEvent(UFunction*, void*) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:2159]
0x0000721587555f2c libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!FAPICallback_DelegateWrapper(TScriptDelegate<FNotThreadSafeDelegateMode> const&, UObject const*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Intermediate/Build/Linux/FactoryServer/Inc/FicsitRemoteMonitoring/UHT/FicsitRemoteMonitoring.gen.cpp:88]
0x00007215875597e2 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::CallEndpoint(UObject*, FString, bool&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:581]
0x0000721587559b7a libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::HandleEndpoint(UObject*, FString, bool&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:594]
0x00007215875621f6 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::HandleApiRequest(UObject*, uWS::HttpResponse<false>*, uWS::HttpRequest*, FString) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:362]
0x00007215875affc2 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!ofats::any_detail::handler_traits<void, uWS::HttpResponse<false>*, uWS::HttpRequest*>::large_handler<AFicsitRemoteMonitoring::StartWebSocketServer()::$_0::operator()() const::'lambda3'(auto*, auto*)>::call(ofats::any_detail::storage&, uWS::HttpResponse<false>*, uWS::HttpRequest*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/MoveOnlyFunction.h:152]
0x00007215875cf507 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!ofats::any_detail::handler_traits<bool, uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*>::large_handler<uWS::HttpContext<false>::onHttp(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, ofats::any_invocable<void (uWS::HttpResponse<false>*, uWS::HttpRequest*)>&&, bool)::'lambda'(auto*)>::call(ofats::any_detail::storage&, uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/MoveOnlyFunction.h:152]
0x00007215875c9eed libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>::executeHandlers(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>::Node*, int, uWS::HttpContextData<false>::RouterData&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpRouter.h:188]
0x00007215875c9cb5 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::operator()(us_socket_t*, char*, int) const::'lambda'(void*, uWS::HttpRequest*)::operator()(void*, uWS::HttpRequest*) const [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:177]
0x00007215875c9435 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!std::__1::pair<unsigned int, void*> uWS::HttpParser::fenceAndConsumePostPadded<0>(char*, unsigned int, void*, void*, uWS::HttpRequest*, ofats::any_invocable<void* (void*, uWS::HttpRequest*)>&, ofats::any_invocable<void* (void*, std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool)>&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpParser.h:513]
0x00007215875c8a1e libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpParser::consumePostPadded(char*, unsigned int, void*, void*, ofats::any_invocable<void* (void*, uWS::HttpRequest*)>&&, ofats::any_invocable<void* (void*, std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool)>&&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpParser.h:697]
0x00007215875c8313 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::operator()(us_socket_t*, char*, int) const [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:143]
0x00007215875c8241 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::__invoke(us_socket_t*, char*, int) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:111]
0x00007215875dd7b0 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!us_internal_dispatch_ready_poll(+0x28f)
0x00007215875dcb3d libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!us_loop_run(+0xac)
0x00007215875ae719 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!UE::Core::Private::Function::TFunctionRefCaller<AFicsitRemoteMonitoring::StartWebSocketServer()::$_0, void ()>::Call(void*) [A:/Unreal Engine - CSS/Engine/Source/Runtime/Core/Public/Templates/Function.h:479]
0x00007215b69b7ae7 libFactoryServer-Core-Linux-Shipping.so!TAsyncRunnable<void>::Run() [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/Runtime/Core/Public/Async/Async.h:457]
0x00007215b68fc419 libFactoryServer-Core-Linux-Shipping.so!FRunnableThreadPThread::Run() [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
0x00007215b68ba8ef libFactoryServer-Core-Linux-Shipping.so!FRunnableThreadPThread::_ThreadProc(void*) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:187]
0x00007215b1a9ca94 libc.so.6!UnknownFunction(0x9ca93)
0x00007215b1b29c3c libc.so.6!UnknownFunction(0x129c3b)

[2024.10.13-10.09.07:074][ 40]LogExit: Executing StaticShutdownAfterError
porisius commented 3 weeks ago

Thanks, I'll look when I get a moment

porisius commented 3 weeks ago

Troubleshooting this, any chance that you have a train that, isn't at a station and doesn't have a schedule configured?

I'm not saying it is your problem, but why the problem is happening.

nward commented 3 weeks ago

Yes I do - I have one that's permanently like that (disconnected from the main train network and just used to test layouts) and we also use trains manually driven from time to time.

Actually, I think that one time we had the crash, I was driving a manual train and I'd just crashed it heh.

porisius commented 3 weeks ago

Thanks, I think a null value is the problem. I will give that a try

porisius commented 3 weeks ago

This seems to fix it for me. I just have a locomotive that I just built and called the API.

https://github.com/porisius/FicsitRemoteMonitoring/commit/b80cf6098f49f009d30ad6577aa9970c0139a944

Uploading FRM 1.0.10 now

cavejonhon commented 3 weeks ago

I just ran into this problem on version 1.0.10. It seems like getting in a freshly spawned train crashes the server immediately. The crash report seems pretty identical to the one posted here as well.

[2024.10.17-21.35.31:555][642]LogHttpServer: Request RelativePath: getTrains
[2024.10.17-21.35.31:555][642]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getTrains
[2024.10.17-21.35.31:571][642]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000328

[2024.10.17-21.35.31:571][642]LogCore: Fatal error!

0x00007fbae0a0e4e3 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!UFRM_Trains::getTrains(UObject*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FRM_Trains.cpp:43]
0x00007fbae0a1ff2d libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::getTrains(UObject*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/../../FicsitRemoteMonitoring/Public/FicsitRemoteMonitoring.h:439]
0x00007fbae09c4eae libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::execgetTrains(UObject*, FFrame&, void*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Intermediate/Build/Linux/FactoryServer/Inc/FicsitRemoteMonitoring/UHT/FicsitRemoteMonitoring.gen.cpp:276]
0x00007fbc147fa767 libFactoryServer-CoreUObject-Linux-Shipping.so!UFunction::Invoke(UObject*, FFrame&, void*) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./Runtime/CoreUObject/Private/UObject/Class.cpp:6665]
0x00007fbc14a2499a libFactoryServer-CoreUObject-Linux-Shipping.so!UObject::ProcessEvent(UFunction*, void*) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:2159]
0x00007fbae09c428c libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!FAPICallback_DelegateWrapper(TScriptDelegate<FNotThreadSafeDelegateMode> const&, UObject const*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Intermediate/Build/Linux/FactoryServer/Inc/FicsitRemoteMonitoring/UHT/FicsitRemoteMonitoring.gen.cpp:89]
0x00007fbae09c7c22 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::CallEndpoint(UObject*, FString, bool&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:583]
0x00007fbae09c7fba libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::HandleEndpoint(UObject*, FString, bool&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:596]
0x00007fbae09d0756 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::HandleApiRequest(UObject*, uWS::HttpResponse<false>*, uWS::HttpRequest*, FString) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:362]
0x00007fbae0a1e2f2 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!ofats::any_detail::handler_traits<void, uWS::HttpResponse<false>*, uWS::HttpRequest*>::large_handler<AFicsitRemoteMonitoring::StartWebSocketServer()::$_0::operator()() const::'lambda3'(auto*, auto*)>::call(ofats::any_detail::storage&, uWS::HttpResponse<false>*, uWS::HttpRequest*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/MoveOnlyFunction.h:152]
0x00007fbae0a3d827 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!ofats::any_detail::handler_traits<bool, uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*>::large_handler<uWS::HttpContext<false>::onHttp(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, ofats::any_invocable<void (uWS::HttpResponse<false>*, uWS::HttpRequest*)>&&, bool)::'lambda'(auto*)>::call(ofats::any_detail::storage&, uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/MoveOnlyFunction.h:152]
0x00007fbae0a3820d libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>::executeHandlers(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>::Node*, int, uWS::HttpContextData<false>::RouterData&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpRouter.h:188]
0x00007fbae0a37fd5 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::operator()(us_socket_t*, char*, int) const::'lambda'(void*, uWS::HttpRequest*)::operator()(void*, uWS::HttpRequest*) const [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:177]
0x00007fbae0a37755 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!std::__1::pair<unsigned int, void*> uWS::HttpParser::fenceAndConsumePostPadded<0>(char*, unsigned int, void*, void*, uWS::HttpRequest*, ofats::any_invocable<void* (void*, uWS::HttpRequest*)>&, ofats::any_invocable<void* (void*, std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool)>&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpParser.h:513]
0x00007fbae0a36d3e libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpParser::consumePostPadded(char*, unsigned int, void*, void*, ofats::any_invocable<void* (void*, uWS::HttpRequest*)>&&, ofats::any_invocable<void* (void*, std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool)>&&) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpParser.h:697]
0x00007fbae0a36633 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::operator()(us_socket_t*, char*, int) const [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:143]
0x00007fbae0a36561 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::__invoke(us_socket_t*, char*, int) [A:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:111]
0x00007fbae0a4baf0 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!us_internal_dispatch_ready_poll(+0x28f)
0x00007fbae0a4ae7d libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!us_loop_run(+0xac)
0x00007fbae0a1ca49 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!UE::Core::Private::Function::TFunctionRefCaller<AFicsitRemoteMonitoring::StartWebSocketServer()::$_0, void ()>::Call(void*) [A:/Unreal Engine - CSS/Engine/Source/Runtime/Core/Public/Templates/Function.h:479]
0x00007fbc150cdae7 libFactoryServer-Core-Linux-Shipping.so!TAsyncRunnable<void>::Run() [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/Runtime/Core/Public/Async/Async.h:457]
0x00007fbc15012419 libFactoryServer-Core-Linux-Shipping.so!FRunnableThreadPThread::Run() [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
0x00007fbc14fd08ef libFactoryServer-Core-Linux-Shipping.so!FRunnableThreadPThread::_ThreadProc(void*) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:187]
0x00007fbc15771609 libpthread.so.0!UnknownFunction(0x8608)
0x00007fbc1070d353 libc.so.6!clone(+0x42)

[2024.10.17-21.35.31:581][642]LogExit: Executing StaticShutdownAfterError
porisius commented 3 weeks ago

Looks like it gets a MultiUnitMaster, but without a train TimeTable schedule it is null and says "nope".

porisius commented 3 weeks ago

I have a test build uploaded to a Google Drive link that I have posted on the Discord. You're welcome to test it, and confirm that the build works for you.

cavejonhon commented 2 weeks ago

I tried the 1.0.11 build from google drive. I am still crashing, but it seems to be unrelated to trains now. I'll post the crash dump here just in case it still is relevant to this. I included a bit before the actual crash. It is right after a getProdStats request, which I noticed that was another problem mentioned recently.

[2024.10.18-10.10.35:430][130]LogGame: Warning: FGRecipe::GetRecipeName: class was nullpeter.
[2024.10.18-10.10.35:430][130]LogGame: Warning: FGRecipe::GetRecipeName: class was nullpeter.
[2024.10.18-10.10.35:430][130]LogGame: Warning: FGRecipe::GetRecipeName: class was nullpeter.
[2024.10.18-10.10.35:430][130]LogGame: Warning: FGRecipe::GetRecipeName: class was nullpeter.
[2024.10.18-10.10.35:430][130]LogGame: Warning: FGRecipe::GetRecipeName: class was nullpeter.
[2024.10.18-10.10.35:430][130]LogGame: Warning: FGRecipe::GetRecipeName: class was nullpeter.
[2024.10.18-10.10.35:430][130]LogGame: Warning: FGRecipe::GetRecipeName: class was nullpeter.
[2024.10.18-10.10.35:430][130]LogGame: Warning: FGRecipe::GetRecipeName: class was nullpeter.
[2024.10.18-10.10.35:523][134]LogHttpServer: API Found Returning: getFactory
[2024.10.18-10.10.35:529][134]LogHttpServer: Request RelativePath: getVehicles
[2024.10.18-10.10.35:529][134]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getVehicles
[2024.10.18-10.10.35:558][136]LogHttpServer: API Found Returning: getVehicles
[2024.10.18-10.10.35:669][141]LogHttpServer: Request RelativePath: getTrainStation
[2024.10.18-10.10.35:669][141]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getTrainStation
[2024.10.18-10.10.35:672][141]LogHttpServer: API Found Returning: getTrainStation
[2024.10.18-10.10.35:789][146]LogHttpServer: Request RelativePath: getTruckStation
[2024.10.18-10.10.35:789][146]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getTruckStation
[2024.10.18-10.10.35:824][148]LogHttpServer: API Found Returning: getTruckStation
[2024.10.18-10.10.36:031][156]LogHttpServer: Request RelativePath: getVehicles
[2024.10.18-10.10.36:031][156]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getVehicles
[2024.10.18-10.10.36:059][157]LogHttpServer: API Found Returning: getVehicles
[2024.10.18-10.10.36:105][159]LogHttpServer: Request RelativePath: getTrains
[2024.10.18-10.10.36:105][159]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getTrains
[2024.10.18-10.10.36:107][159]LogHttpServer: API Found Returning: getTrains
[2024.10.18-10.10.36:153][161]LogHttpServer: Request RelativePath: getDroneStation
[2024.10.18-10.10.36:153][161]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getDroneStation
[2024.10.18-10.10.36:192][162]LogHttpServer: API Found Returning: getDroneStation
[2024.10.18-10.10.36:237][165]LogHttpServer: Request RelativePath: getTruckStation
[2024.10.18-10.10.36:237][165]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getTruckStation
[2024.10.18-10.10.36:267][166]LogHttpServer: API Found Returning: getTruckStation
[2024.10.18-10.10.36:313][167]LogHttpServer: Request RelativePath: getTrainStation
[2024.10.18-10.10.36:313][167]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getTrainStation
[2024.10.18-10.10.36:316][167]LogHttpServer: API Found Returning: getTrainStation
[2024.10.18-10.10.39:772][319]LogNavigationDataBuild: Display:    ProcessTileTasksAndGetUpdatedTiles build time: 399.86s
[2024.10.18-10.10.40:926][368]LogHttpServer: Request RelativePath: getDrone
[2024.10.18-10.10.40:926][368]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getDrone
[2024.10.18-10.10.40:929][368]LogHttpServer: API Found Returning: getDrone
[2024.10.18-10.10.41:046][374]LogHttpServer: Request RelativePath: getTrains
[2024.10.18-10.10.41:046][374]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getTrains
[2024.10.18-10.10.41:048][374]LogHttpServer: API Found Returning: getTrains
[2024.10.18-10.10.41:154][379]LogHttpServer: Request RelativePath: getVehicles
[2024.10.18-10.10.41:154][379]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getVehicles
[2024.10.18-10.10.41:182][380]LogHttpServer: API Found Returning: getVehicles
[2024.10.18-10.10.41:282][384]LogHttpServer: Request RelativePath: getTrainStation
[2024.10.18-10.10.41:282][384]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getTrainStation
[2024.10.18-10.10.41:286][384]LogHttpServer: API Found Returning: getTrainStation
[2024.10.18-10.10.41:362][386]LogHttpServer: Request RelativePath: getProdStats
[2024.10.18-10.10.41:362][386]LogHttpServer: Request FilePath: ../../../FactoryGame/Mods/FicsitRemoteMonitoring/www/getProdStats
[2024.10.18-10.10.41:379][386]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000010

[2024.10.18-10.10.41:379][386]LogCore: Fatal error!

0x00007f3d8479c423 libFactoryServer-CoreUObject-Linux-Shipping.so!UObject::FindFunctionChecked(FName) const [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./Runtime/CoreUObject/Private/UObject/ScriptCore.cpp:1472]
0x00007f3c50723b5d libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!FAPICallback_DelegateWrapper(TScriptDelegate<FNotThreadSafeDelegateMode> const&, UObject const*) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Intermediate/Build/Linux/FactoryServer/Inc/FicsitRemoteMonitoring/UHT/FicsitRemoteMonitoring.gen.cpp:90]
0x00007f3c50727522 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::CallEndpoint(UObject*, FString, bool&) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:635]
0x00007f3c507278ba libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::HandleEndpoint(UObject*, FString, bool&) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:648]
0x00007f3c50732216 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!AFicsitRemoteMonitoring::HandleApiRequest(UObject*, uWS::HttpResponse<false>*, uWS::HttpRequest*, FString) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/FicsitRemoteMonitoring/Private/FicsitRemoteMonitoring.cpp:414]
0x00007f3c50782d04 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!ofats::any_detail::handler_traits<void, uWS::HttpResponse<false>*, uWS::HttpRequest*>::large_handler<AFicsitRemoteMonitoring::StartWebSocketServer()::$_0::operator()() const::'lambda3'(auto*, auto*)>::call(ofats::any_detail::storage&, uWS::HttpResponse<false>*, uWS::HttpRequest*) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/MoveOnlyFunction.h:152]
0x00007f3c507a3b57 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!ofats::any_detail::handler_traits<bool, uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*>::large_handler<uWS::HttpContext<false>::onHttp(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, ofats::any_invocable<void (uWS::HttpResponse<false>*, uWS::HttpRequest*)>&&, bool)::'lambda'(auto*)>::call(ofats::any_detail::storage&, uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>*) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/MoveOnlyFunction.h:152]
0x00007f3c5079e50d libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>::executeHandlers(uWS::HttpRouter<uWS::HttpContextData<false>::RouterData>::Node*, int, uWS::HttpContextData<false>::RouterData&) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpRouter.h:188]
0x00007f3c5079e2d5 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::operator()(us_socket_t*, char*, int) const::'lambda'(void*, uWS::HttpRequest*)::operator()(void*, uWS::HttpRequest*) const [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:177]
0x00007f3c5079da55 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!std::__1::pair<unsigned int, void*> uWS::HttpParser::fenceAndConsumePostPadded<0>(char*, unsigned int, void*, void*, uWS::HttpRequest*, ofats::any_invocable<void* (void*, uWS::HttpRequest*)>&, ofats::any_invocable<void* (void*, std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool)>&) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpParser.h:513]
0x00007f3c5079d03e libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpParser::consumePostPadded(char*, unsigned int, void*, void*, ofats::any_invocable<void* (void*, uWS::HttpRequest*)>&&, ofats::any_invocable<void* (void*, std::__1::basic_string_view<char, std::__1::char_traits<char> >, bool)>&&) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpParser.h:697]
0x00007f3c5079c933 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::operator()(us_socket_t*, char*, int) const [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:143]
0x00007f3c5079c861 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!uWS::HttpContext<false>::init()::'lambda'(us_socket_t*, char*, int)::__invoke(us_socket_t*, char*, int) [F:/workspace/SatisfactoryModLoader/Mods/FicsitRemoteMonitoring/Source/ThirdParty/uWebSockets/HttpContext.h:111]
0x00007f3c507bb3e0 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!us_internal_dispatch_ready_poll(+0x28f)
0x00007f3c507ba76d libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!us_loop_run(+0xac)
0x00007f3c50781477 libFactoryServer-FicsitRemoteMonitoring-Linux-Shipping.so!UE::Core::Private::Function::TFunctionRefCaller<AFicsitRemoteMonitoring::StartWebSocketServer()::$_0, void ()>::Call(void*) [F:/Unreal Engine - CSS/Engine/Source/Runtime/Core/Public/Templates/Function.h:479]
0x00007f3d84e45ae7 libFactoryServer-Core-Linux-Shipping.so!TAsyncRunnable<void>::Run() [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/Runtime/Core/Public/Async/Async.h:457]
0x00007f3d84d8a419 libFactoryServer-Core-Linux-Shipping.so!FRunnableThreadPThread::Run() [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/./Runtime/Core/Private/HAL/PThreadRunnableThread.cpp:25]
0x00007f3d84d488ef libFactoryServer-Core-Linux-Shipping.so!FRunnableThreadPThread::_ThreadProc(void*) [C:/BuildAgent/work/b731a33f2a691e17/UE4/Engine/Source/Runtime/Core/Private/HAL/PThreadRunnableThread.h:187]
0x00007f3d854e9609 libpthread.so.0!UnknownFunction(0x8608)
0x00007f3d80485353 libc.so.6!clone(+0x42)

[2024.10.18-10.10.41:387][386]LogExit: Executing StaticShutdownAfterError
Chaotic commented 2 weeks ago

Is there a new official version coming for this fix? I was running into the issue the other day (but haven't tried the on on drive yet).

porisius commented 2 weeks ago

I would appreciate more looking at the test build in case there is another bug. I just got back from vacation, so I am trying to get caught back up on everything. I am looking over the two PRs and seeing about the Drone Info before release.

saffronjam commented 6 days ago

Adding another crash on /getTrains here for reference.

I could not reproduce this again by just reloading the save and requesting /getTrains, so it could a bit higher-level issue.

Version: 372858, IsEditor: No, IsPerforceBuild: No, BuildConfiguration: Shipping, Launcher: Steam, NetMode: Listen Server, IsUsingMods: Yes, IsSaveGameEdited: No

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff

FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!AFicsitRemoteMonitoring::CallEndpoint() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\FicsitRemoteMonitoring\Private\FicsitRemoteMonitoring.cpp:612]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!AFicsitRemoteMonitoring::HandleEndpoint() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\FicsitRemoteMonitoring\Private\FicsitRemoteMonitoring.cpp:671]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!AFicsitRemoteMonitoring::HandleApiRequest() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\FicsitRemoteMonitoring\Private\FicsitRemoteMonitoring.cpp:414]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!``AFicsitRemoteMonitoring::StartWebSocketServer'::`2'::<lambda_1>::operator()'::`3'::<lambda_7>::operator()<uWS::HttpResponse<0>,uWS::HttpRequest>() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\FicsitRemoteMonitoring\Private\FicsitRemoteMonitoring.cpp:209]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!ofats::any_detail::handler_traits<bool,uWS::HttpRouter<uWS::HttpContextData<0>::RouterData> *>::large_handler<`uWS::HttpContext<0>::onHttp'::`2'::<lambda_1> >::call() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\ThirdParty\uWebSockets\MoveOnlyFunction.h:152]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!uWS::HttpRouter<uWS::HttpContextData<0>::RouterData>::executeHandlers() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\ThirdParty\uWebSockets\HttpRouter.h:188]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!``uWS::HttpContext<0>::init'::`2'::<lambda_3>::operator()'::`2'::<lambda_1>::operator()() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\ThirdParty\uWebSockets\HttpContext.h:177]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!uWS::HttpParser::fenceAndConsumePostPadded<0>() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\ThirdParty\uWebSockets\HttpParser.h:514]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!uWS::HttpParser::consumePostPadded() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\ThirdParty\uWebSockets\HttpParser.h:698]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!`uWS::HttpContext<0>::init'::`2'::<lambda_3>::operator()() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\ThirdParty\uWebSockets\HttpContext.h:143]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!us_internal_dispatch_ready_poll() [A:\workspace\vcpkg\buildtrees\usockets\src\v0.8.8-af4482ba56.clean\src\loop.c:358]
uv
uv
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!`AFicsitRemoteMonitoring::StartWebSocketServer'::`2'::<lambda_1>::operator()() [A:\workspace\SatisfactoryModLoader\Mods\FicsitRemoteMonitoring\Source\FicsitRemoteMonitoring\Private\FicsitRemoteMonitoring.cpp:229]
FactoryGameSteam_FicsitRemoteMonitoring_Win64_Shipping!TAsyncRunnable<void>::Run() [A:\Unreal Engine - CSS\Engine\Source\Runtime\Core\Public\Async\Async.h:457]
FactoryGameSteam_Core_Win64_Shipping!FRunnableThreadWin::Run() [C:\BuildAgent\work\b731a33f2a691e17\UE4\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]