hyprwm/xdg-desktop-portal-hyprland

Crash on FreeBSD: std::mutex unlocked when not already locked

RealDeuce opened this issue · 1 comments

On FreeBSD 15-CURRENT, the desktop portal crashes when unlocking the mutex the first time. Simply adding a .lock() call before the while(1) loop appears to resolve the issue for me.

m_sEventLoopInternals.loopRequestMutex.unlock(); // unlock, we are ready to take events

Also reported to FreeBSD port maintainer: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278496