Open gabrielcyrino opened 3 years ago
Unreal crash report, when calling Subscribe function:
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000000b0
0x00007ffa03d767a5 UE4Editor-mqtt.dll!UnrealMosquitto::FRunnableTask::PushOutputEvent() [D:\Users\Gabriel\Documents\Unreal Projects2\PlatformSimulation\Plugins\mqtt\Source\mqtt\Private\UnrealMosquitto.cpp:226] 0x00007ffa03d76675 UE4Editor-mqtt.dll!AUnrealMosquitto::PublishString() [D:\Users\Gabriel\Documents\Unreal Projects2\PlatformSimulation\Plugins\mqtt\Source\mqtt\Private\UnrealMosquitto.cpp:381] 0x00007ffa03d7a3e1 UE4Editor-mqtt.dll!AUnrealMosquitto::execPublishString() [D:\Users\Gabriel\Documents\Unreal Projects2\PlatformSimulation\Plugins\mqtt\Intermediate\Build\Win64\UE4Editor\Inc\mqtt\UnrealMosquitto.gen.cpp:30] 0x00007ffa7dab2604 UE4Editor-CoreUObject.dll!UFunction::Invoke() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5588] 0x00007ffa7dd28176 UE4Editor-CoreUObject.dll!UObject::CallFunction() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:997] 0x00007ffa7dd422fd UE4Editor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1067] 0x00007ffa7dd16b6a UE4Editor-CoreUObject.dll!ProcessScriptFunction<void (__cdecl)(UObject ,FFrame &,void *)>() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:898] 0x00007ffa7dd41ef1 UE4Editor-CoreUObject.dll!ProcessLocalFunction() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1128] 0x00007ffa7dd422fd UE4Editor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1067] 0x00007ffa7dd41704 UE4Editor-CoreUObject.dll!UObject::ProcessInternal() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1155] 0x00007ffa7dab2604 UE4Editor-CoreUObject.dll!UFunction::Invoke() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5588] 0x00007ffa7dd40e63 UE4Editor-CoreUObject.dll!UObject::ProcessEvent() [D:\Build++UE4\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1992] 0x00007ffa1cc6c435 UE4Editor-Engine.dll!AActor::ProcessEvent() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:864] 0x00007ffa1cc3aff7 UE4Editor-Engine.dll!AActor::BeginPlay() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3577] 0x00007ffa03d74796 UE4Editor-mqtt.dll!AUnrealMosquitto::BeginPlay() [D:\Users\Gabriel\Documents\Unreal Projects2\PlatformSimulation\Plugins\mqtt\Source\mqtt\Private\UnrealMosquitto.cpp:245] 0x00007ffa1cc4443c UE4Editor-Engine.dll!AActor::DispatchBeginPlay() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3517] 0x00007ffa1e01ec42 UE4Editor-Engine.dll!AWorldSettings::NotifyBeginPlay() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:247] 0x00007ffa1d395fa1 UE4Editor-Engine.dll!AGameStateBase::HandleBeginPlay() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\GameStateBase.cpp:205] 0x00007ffa1dfc344e UE4Editor-Engine.dll!UWorld::BeginPlay() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:4349] 0x00007ffa1d3b7f8d UE4Editor-Engine.dll!UGameInstance::StartPlayInEditorGameInstance() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:483] 0x00007ffa1aaba1a5 UE4Editor-UnrealEd.dll!UEditorEngine::CreateInnerProcessPIEGameInstance() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2941] 0x00007ffa1aadcd6f UE4Editor-UnrealEd.dll!UEditorEngine::OnLoginPIEComplete_Deferred() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1503] 0x00007ffa1aabaedd UE4Editor-UnrealEd.dll!UEditorEngine::CreateNewPlayInEditorInstance() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1750] 0x00007ffa1aaf8c42 UE4Editor-UnrealEd.dll!UEditorEngine::StartPlayInEditorSession() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2711] 0x00007ffa1aafc1d1 UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequestImpl() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1116] 0x00007ffa1aafba98 UE4Editor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequest() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1019] 0x00007ffa1a558c38 UE4Editor-UnrealEd.dll!UEditorEngine::Tick() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1623] 0x00007ffa1ae750e6 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:426] 0x00007ff788e99bc2 UE4Editor.exe!FEngineLoop::Tick() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4836] 0x00007ff788eb117c UE4Editor.exe!GuardedMain() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:169] 0x00007ff788eb125a UE4Editor.exe!GuardedMainWrapper() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137] 0x00007ff788ec52bd UE4Editor.exe!WinMain() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268] 0x00007ff788ec7fea UE4Editor.exe!__scrt_common_main_seh() [d:\agent_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288] 0x00007ffac65e7034 KERNEL32.DLL!UnknownFunction [] 0x00007ffac6e62651 ntdll.dll!UnknownFunction []
This error occurs when compiling the code in UE 4.26 and 4.25 (and probably other versions too). I already tested on clean projects. I tried to change the include line in UnrealMosquitto.cpp file from #include "RunnableThread.h" to #include "HAL/RunnableThread.h", compiling works but the engine crashes when calling UnrealMosquitto nodes.