hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
306 stars 48 forks source link

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

Closed RealDeuce closed 7 months ago

RealDeuce commented 7 months ago

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.

https://github.com/hyprwm/xdg-desktop-portal-hyprland/blob/bb44921534a9cee9635304fdb876c1b3ec3a8f61/src/core/PortalManager.cpp#L423

RealDeuce commented 7 months ago

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