hyprwm / xdg-desktop-portal-hyprland

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

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

Closed RealDeuce closed 5 months ago

RealDeuce commented 5 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 5 months ago

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