From 92dd49961db575391fd3bac39f538b54db15b73e Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Wed, 11 May 2022 09:22:53 -0700 Subject: [PATCH] core: change manual crash trigger --- app/core.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/core.cpp b/app/core.cpp index ce3fa7e72..1b85ae09a 100644 --- a/app/core.cpp +++ b/app/core.cpp @@ -185,9 +185,7 @@ void Core::Start() QTimer *crash_timer = new QTimer(this); crash_timer->setInterval(interval); connect(crash_timer, &QTimer::timeout, this, []{ - // Try to read invalid memory to crash the application - int *invalid_ptr = nullptr; - qDebug() << *invalid_ptr; + abort(); }); crash_timer->start(); }