#14414 Block gRPC idle processing while crash handling is in progress

This commit is contained in:
Magne Sjaastad committed 2026-07-30 14:39:57 +02:00
1 parent 272f7fa56b
commit 068d2b98bc
4 files changed
+34

No files matched your search

@@ -17,6 +17,8 @@
/////////////////////////////////////////////////////////////////////////////////
#include "RiaGrpcConsoleApplication.h"
#include "RiaMainTools.h"
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -30,6 +32,11 @@ QProcessEnvironment RiaGrpcConsoleApplication::pythonProcessEnvironment() const
//--------------------------------------------------------------------------------------------------
void RiaGrpcConsoleApplication::doIdleProcessing()
{
// The crash handler pumps the event loop while flushing telemetry, so this timer slot can fire
// mid-crash. Processing requests or closing the project would then destroy objects the crashed
// code still uses, causing a nested crash.
if ( RiaMainTools::isCrashHandlingInProgress() ) return;
int processCount = processRequests();
if ( processCount == -1 )
{