UnrealInsight 1.06 crashes on traces from 5.5.4 with RDG trace enabled


Assertion failed: IsValid() [File:C:\fbroot\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h] [Line: 1082] 

0x00007ff92bb1955b UnrealInsights-RenderGraphInsights.dll!UE::RenderGraphInsights::FRenderGraphAnalyzer::OnEvent() [C:\fbroot\Engine\Plugins\RenderGraphInsights\Source\RenderGraphInsights\Private\RenderGraphAnalyzer.cpp:46]
0x00007ff946e2c70e UnrealInsights-TraceAnalysis.dll!UE::Trace::FAnalyzerHub::OnEvent() [C:\fbroot\Engine\Source\Developer\TraceAnalysis\Private\Analysis\Engine.cpp:1628]
0x00007ff946e2c57c UnrealInsights-TraceAnalysis.dll!UE::Trace::FAnalysisBridge::OnEvent() [C:\fbroot\Engine\Source\Developer\TraceAnalysis\Private\Analysis\Engine.cpp:2187]
0x00007ff946e23498 UnrealInsights-TraceAnalysis.dll!UE::Trace::FProtocol5Stage::DispatchEvents() [C:\fbroot\Engine\Source\Developer\TraceAnalysis\Private\Analysis\Engine.cpp:4911]
0x00007ff946e22f62 UnrealInsights-TraceAnalysis.dll!UE::Trace::FProtocol5Stage::DispatchEvents() [C:\fbroot\Engine\Source\Developer\TraceAnalysis\Private\Analysis\Engine.cpp:4291]
0x00007ff946e23e83 UnrealInsights-TraceAnalysis.dll!UE::Trace::FProtocol5Stage::DispatchNormalEvents() [C:\fbroot\Engine\Source\Developer\TraceAnalysis\Private\Analysis\Engine.cpp:4134]
0x00007ff946e2c0ec UnrealInsights-TraceAnalysis.dll!UE::Trace::FProtocol5Stage::OnDataNormal() [C:\fbroot\Engine\Source\Developer\TraceAnalysis\Private\Analysis\Engine.cpp:3918]
0x00007ff946e2b24b UnrealInsights-TraceAnalysis.dll!UE::Trace::FProtocol5Stage::OnData() [C:\fbroot\Engine\Source\Developer\TraceAnalysis\Private\Analysis\Engine.cpp:3639]
0x00007ff946e312fb UnrealInsights-TraceAnalysis.dll!UE::Trace::FAnalysisProcessor::FImpl::Run() [C:\fbroot\Engine\Source\Developer\TraceAnalysis\Private\Analysis\Processor.cpp:58]
0x00007ff92a072b08 UnrealInsights-Core.dll!FRunnableThreadWin::Run() [C:\fbroot\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:159]
0x00007ff92a06a3df UnrealInsights-Core.dll!FRunnableThreadWin::GuardedRun() [C:\fbroot\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:79]
0x00007ffa635e259d KERNEL32.DLL!UnknownFunction []
0x00007ffa6452af78 ntdll.dll!UnknownFunction []

This happens on version 1.06 of UnrealInsights with a log from 5.5.4
There seems to have been a possibly related bug already fixed in 5.6 but I cannot correlate the git hub pr with the ‘commit #’ so it cannot try that fix myself.

The crash happens here:

////////////////////////
// Check the analysis session time.

TSharedPtr<const TraceServices::IAnalysisSession> Session = FInsightsManager::Get()->GetSession();
if (Session)
{
	double SessionTime = 0.0;
	{
--->	TraceServices::FAnalysisSessionReadScope SessionReadScope(*Session.Get());
		SessionTime = Session->GetDurationSeconds();
	}

Session looks like: