Seemingly, the memory leaks are bugs in userspace -- Mesa, my driver -- rather than the kernelspace -- as we all know @lina wrote a perfect driver, since apparently bugs are impossible in Rust or something like that.
THAT BEING SAID, the memory leaks have exposed one or two actual kernel bugs. No matter what userspace does wrong, it should be impossible to hit kernel WARNs. That it took low memory conditions to hit means that my buggy C code is helping somehow! 😋​
So... I should keep writing buggy C code, right?
("I really don't think that's the message you should take away, Alyssa.")
@lina It's also worth noting that this is Kodi's X11 backend (inside Xwayland), still having some troubles starting the Wayland backend for a change. Usually it's the other way around...
Hopefully there's just some silly bug and we'll have All The Windowing Systems working for Kodi.
mpv works with both X11 and Wayland, at least.