nixos-hardware
nixos-hardware copied to clipboard
EGL/OpenGL Errors on Raspberry Pi 4 with Kodi/Cage
When attempting to run Kodi via GBM or wrapped in Cage, I get EGL/OpenGL related errors with my flake (see configuration living-pi): https://github.com/GnomedDev/nixconf
I originally installed via an sd-image, and I have tried:
commit a6536194ba6aa9e4dddc547d96383fbe05116783: Using GBM to run Kodi alone, crashes with the following logs (journalctl logs, Kodi logs)
kodi-standalone[783]: DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory
kodi-standalone[783]: Failed to create scanout resource
kodi-standalone[783]: DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory
kodi-standalone[783]: Failed to create scanout resource
kodi-standalone[783]: terminate called after throwing an instance of 'std::runtime_error'
kodi-standalone[783]: what(): eglSwapBuffers failed
systemd-coredump[1235]: Process 783 (kodi-gbm) of user 1001 terminated abnormally with signal 6/ABRT, processing...
eglSwapBuffers failed (EGL_BAD_ALLOC)
commit fb1c09ebad7b7b4419c1be9bdae8554f45f037e1: Using Cage as a Wayland compositor to wrap Kodi crashes with the following logs (journalctl logs of cage, journalctl logs of kodi)
cage[975]: 00:00:01.960 [ERROR] [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
cage[975]: 00:00:01.960 [ERROR] [EGL] command: eglQueryDeviceStringEXT, error: EGL_BAD_PARAMETER (0x300c), message: "eglQueryDeviceStringEXT"
cage[975]: 00:00:02.412 [ERROR] [backend/libinput/backend.c:111] libinput initialization failed, no input devices
cage[975]: 00:00:02.412 [ERROR] [backend/libinput/backend.c:112] Set WLR_LIBINPUT_NO_DEVICES=1 to suppress this check
cage[975]: 00:00:02.412 [ERROR] [backend/multi/backend.c:33] Failed to initialize backend.
cage[975]: 00:00:02.412 [ERROR] [../cage.c:574] Unable to start the wlroots backend
kodi-standalone[1108]: 'this->recurse > 0' failed at ../src/pipewire/thread-loop.c:62 do_unlock()
kodi-standalone[1108]: ERROR: Unable to create GUI. Exiting
I'm not sure if this repo is the correct repo to report to, but since it's kernel/mesa related I thought I'd try here (and the config works with Intel drivers on another machine). If it would be better to move to the nixpkgs repo let me know.
The flake should be easy to deploy to a raspberry pi 4 for testing, as I have tried to keep everything self-contained and in the git repo.