Profiler crashes almost immediately

The profiler crashes almost immediately when i try to monitor certain stats. It seems to randomly occur and not have to do with the stat i want to inspect.
The exception thrown is:
Assertion failed: IsFrameValid(TargetFrame) [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.6\Engine\Source\Runtime\Core\Private\Stats\StatsData.cpp] [Line: 962]

Hey simmania -

I was able to reproduce this crash in 4.6.1 using the following steps:

  1. Open a First Person Template Project
  2. Open Session Frontend, Profiler
  3. PIE
  4. Begin Data Preview and Live Preview
  5. Crash

It looks like however this particular issue has been corrected in 4.7.0 Preview, while I would not recommend upgrading to solve this issue when the release version of 4.7.0 comes out the issue will be corrected.

Thank You -

Eric Ketchum

I still get this crash in 4.7.0.p7. It looks less crashy, that is, it takes longer before it crashes.
I opened profiler, enable live data preview, then double click a material that has a post process as output = crash.
Same assertion failure:
TArray const& FStatsThreadState::GetCondensedHistory(int64 TargetFrame) const
{
check(IsFrameValid(TargetFrame));

	TArray<FStatMessage> const* Result = CondensedStackHistory.FindRef(TargetFrame);
	if (Result)
	{
		return *Result;
	}

In StatsData.cpp

Hey simmania -

Thank you for your report. I have confirmed that this issue is still occurring in 4.7 and in our internal branch of the engine. I have reported the issue as UE-10697 and will keep you informed as we continue to work on a solution for this issue.

Thank You Again

Eric Ketchum