hyprwm / aquamarine

Aquamarine is a very light linux rendering backend library
BSD 3-Clause "New" or "Revised" License
219 stars 16 forks source link

reopenDRMNode fails on FreeBSD #16

Closed jbeich closed 1 month ago

jbeich commented 1 month ago

Regressed by 05219d5287df

$ touch /tmp/empty.conf
$ AQ_TRACE=1 Hyprland -c /tmp/empty.conf
[...]
[LOG] [AQ] drm: Enumerated device /dev/dri/card0
[LOG] [AQ] libseat: Device /dev/dri/card0 supports kms
[LOG] [AQ] drm: Found 1 GPUs
[LOG] [AQ] drm: Starting backend for /dev/dri/card0, with driver i915
[LOG] [AQ] drm: Registered gpu /dev/dri/card0
[LOG] [AQ] drm: Atomic supported, using atomic for modesetting
[LOG] [AQ] drm: drmProps.supportsAsyncCommit: false
[LOG] [AQ] drm: drmProps.supportsAddFb2Modifiers: true
[LOG] [AQ] drm: drmProps.supportsTimelines: true
[...]
[LOG] [AQ] drm: gpu /dev/dri/card0 becomes primary drm
[LOG] [AQ] Starting the Aquamarine backend!
[...]
[LOG] [AQ] reopenDRMNode: drmModeCreateLease failed, falling back to open
[LOG] [AQ] reopenDRMNode: opening node /dev/dri/renderD128
[ERR] [AQ] reopenDRMNode: drmGetMagic failed: Permission denied
[CRITICAL] [AQ] Failed to create an allocator (reopenDRMNode failed)
[CRITICAL] m_pAqBackend couldn't start! This usually means aquamarine could not find a GPU or enountered some issues. Make sure you're running either on a tty or on a Wayland session, NOT an X11 one.
[CRITICAL] Critical error thrown: CBackend::create() failed!
Hyprland has crashed :( Consult the crash report at /home/foo/.cache/hyprland/hyprlandCrashReport1234.txt for more information.