hyprlock icon indicating copy to clipboard operation
hyprlock copied to clipboard

Avoid termination without an active exception

Open PointerDilemma opened this issue 3 months ago • 0 comments

Debugged this multiple times without fixing it. Makes affected coredumps hard to understand.

Now I am finally making an issue for it so that I don't forget or so that someone else can fix it.

So the problem is that when any exception on the "main" thread happens, the exception is supposed to be captured in main.cpp where CHyprlock::run is called. But before getting there, the scope of CHyprlock::run is destoyed and because timersThr and pollThr is in there, it triggeres ~thread witch causes a terminate without an active exception.

I think to fix we need to make sure the threads outline this try catch.

PointerDilemma avatar Sep 25 '25 17:09 PointerDilemma