From 64440513826695563761c062c2a88eb85fd51472 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 18 Mar 2020 02:30:17 +0100 Subject: [PATCH] Frames may be missing. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index bd29990d..48778732 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3463,6 +3463,11 @@ int View::DrawGhostLevel( const Vector& vec, bool hover, double pxns, { const auto& ghostFrame = m_worker.GetGhostFrame( ev.frame ); const auto frame = m_worker.GetCallstackFrame( ghostFrame ); + if( !frame ) + { + ++it; + continue; + } const auto pr0 = ( ev.start.Val() - m_vd.zvStart ) * pxns; const auto pr1 = ( ev.end.Val() - m_vd.zvStart ) * pxns; const auto px0 = std::max( pr0, -10.0 );