Download

getTrackingSensorParametrs crashes whole project

In VR I use blueprint node called “getTrackingSensorParametrs”. After upgarde from 4.16 to 4.18 I noticed, that when I started game (both play and launch) when my HTC Vive isn’t tracking (for example Lighthouses aren’t visible) everythink crashes.

LogPlayLevel: [2017.12.04-15.09.02:499] 1]LogWindows: Warning: CreateProc failed: Nie mo?na odnale?? okre?lonego pliku. (0x00000002)
LogPlayLevel: [2017.12.04-15.09.02:499] 1]LogWindows: Warning: URL: …/…/…/Engine/Binaries/Win64/CrashReportClient.exe “d:/czacha/filharmonia-4.18/Saved/StagedBuilds/WindowsNoEditor/Filharmonia/Saved/Crashes/UE4CC-Windows-A683AED541661873798665B2E0878113_0000” -AppName=UE4-Filharmonia -CrashGUID=UE4CC-Windows-A683AED541661873798665B2E0878113_0000 -DebugS
ymbols=…\Engine\Intermediate\Symbols
LogPlayLevel: [2017.12.04-15.09.02:499] 1]LogWindows: Error: begin: stack for UAT
LogPlayLevel: [2017.12.04-15.09.02:499] 1]LogWindows: Error: === Critical error: ===
LogPlayLevel: [2017.12.04-15.09.02:499] 1]LogWindows: Error:
LogPlayLevel: [2017.12.04-15.09.02:499] 1]LogWindows: Error: Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:d:\build++ue4+release-4.18+compile\sync\engine\source\runtime\core\public\Containers/Array.h] [Line: 610]
LogPlayLevel: [2017.12.04-15.09.02:499] 1]LogWindows: Error: Array index out of bounds: 0 from an array of size 0
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error:
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error:
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000DCC09D98 KERNELBASE.dll!UnknownFunction ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA0FB4F0 Filharmonia.exe!FWindowsErrorOutputDevice::Serialize() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9B91B5B Filharmonia.exe!FOutputDevice::Logf__VA() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C99E6998 Filharmonia.exe!FDebug::AssertFailed() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CC4EE17C Filharmonia.exe!UHeadMountedDisplayFunctionLibrary::GetTrackingSensorParameters() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CC4E0780 Filharmonia.exe!UHeadMountedDisplayFunctionLibrary::execGetTrackingSensorParameters() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9EF17F2 Filharmonia.exe!UFunction::Invoke() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9E9DC8E Filharmonia.exe!UObject::CallFunction() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9EB07AE Filharmonia.exe!UObject::ProcessContextOpcode() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9EB296E Filharmonia.exe!UObject::ProcessInternal() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9E9E647 Filharmonia.exe!UObject::CallFunction() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9EB296E Filharmonia.exe!UObject::ProcessInternal() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9E9E647 Filharmonia.exe!UObject::CallFunction() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9EB296E Filharmonia.exe!UObject::ProcessInternal() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9E9E647 Filharmonia.exe!UObject::CallFunction() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9EB296E Filharmonia.exe!UObject::ProcessInternal() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9EF17F2 Filharmonia.exe!UFunction::Invoke() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9EB1DF3 Filharmonia.exe!UObject::ProcessEvent() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA19892B Filharmonia.exe!AActor::ProcessEvent() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA2EC5E3 Filharmonia.exe!AActor::ReceiveTick() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA1AB428 Filharmonia.exe!AActor::Tick() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA1ABAAA Filharmonia.exe!AActor::TickActor() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA179D9F Filharmonia.exe!FActorTickFunction::ExecuteTick() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA126846 Filharmonia.exe!FTickFunctionTask::DoTask() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA12A378 Filharmonia.exe!TGraphTask<FTickFunctionTask>::ExecuteTask() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9AEC686 Filharmonia.exe!FNamedTaskThread::ProcessTasksNamedThread() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000C9AECBC0 Filharmonia.exe!FNamedTaskThread::ProcessTasksUntilQuit() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA13D324 Filharmonia.exe!FTickTaskSequencer::ReleaseTickGroup() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA1417B8 Filharmonia.exe!FTickTaskManager::RunTickGroup() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA98079F Filharmonia.exe!UWorld::RunTickGroup() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA986D0C Filharmonia.exe!UWorld::Tick() ]
LogPlayLevel: [2017.12.04-15.09.02:500] 1]LogWindows: Error: [Callstack] 0x00000000CA72C360 Filharmonia.exe!UGameEngine::Tick() ]
LogPlayLevel: [2017.12.04-15.09.02:501] 1]LogWindows: Error: [Callstack] 0x00000000C99B0EB8 Filharmonia.exe!FEngineLoop::Tick() ]
LogPlayLevel: [2017.12.04-15.09.02:501] 1]LogWindows: Error: [Callstack] 0x00000000C99BF6AF Filharmonia.exe!GuardedMain() ]
LogPlayLevel: [2017.12.04-15.09.02:501] 1]LogWindows: Error: [Callstack] 0x00000000C99BF71A Filharmonia.exe!GuardedMainWrapper() ]
LogPlayLevel: [2017.12.04-15.09.02:501] 1]LogWindows: Error: [Callstack] 0x00000000C99CBF98 Filharmonia.exe!WinMain() ]
LogPlayLevel: [2017.12.04-15.09.02:501] 1]LogWindows: Error: [Callstack] 0x00000000CCFF0B77 Filharmonia.exe!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
LogPlayLevel: [2017.12.04-15.09.02:501] 1]LogWindows: Error: [Callstack] 0x00000000E0122774 KERNEL32.DLL!UnknownFunction ]
LogPlayLevel: [2017.12.04-15.09.02:502] 1]LogWindows: Error: [Callstack] 0x00000000E0230D51 ntdll.dll!UnknownFunction ]
LogPlayLevel: [2017.12.04-15.09.02:502] 1]LogWindows: Error: [Callstack] 0x00000000E0230D51 ntdll.dll!UnknownFunction ]
LogPlayLevel: [2017.12.04-15.09.02:502] 1]LogWindows: Error:
LogPlayLevel: [2017.12.04-15.09.02:502] 1]LogWindows: Error: end: stack for UAT
LogPlayLevel: ERROR: Client exited with error code: 3
LogPlayLevel: (see C:\Users\matri\AppData\Roaming\Unreal Engine\AutomationTool\Logs\d+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Run Task, Time: 52.393475
LogPlayLevel: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error

Before calling GetTrackingSensorParameters, call GetNumTrackingSensors and make sure you have more than 0 sensors. It often takes a few seconds for the VR Subsystem to register all of the devices.