diff --git a/src/managers/ANRManager.cpp b/src/managers/ANRManager.cpp index af1cb93a1..3793f27f2 100644 --- a/src/managers/ANRManager.cpp +++ b/src/managers/ANRManager.cpp @@ -155,6 +155,11 @@ void CANRManager::SANRData::killDialog() const { if (!dialogProc) return; + if (!dialogProc->pid()) { + Debug::log(ERR, "ANR: cannot kill dialogProc, as it doesn't have a pid. If you have hyprutils <= 0.6.0, you will crash soon. Otherwise, dialog failed to spawn??"); + return; + } + kill(dialogProc->pid(), SIGKILL); }