SirLynix / obs-kinect

OBS Plugin to use a Kinect (all models supported) in OBS (and setup a virtual green screen based on depth and/or body detection).
GNU General Public License v2.0
425 stars 29 forks source link

Crash on linux with egl errors #86

Open VectorKappa opened 8 months ago

VectorKappa commented 8 months ago

Upon opening the config window obs hangs and crashes.

---irrelevant cut out-----
[Info] [Freenect2DeviceImpl] starting...
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
error: Failed to make context current: EGL_SUCCESS
error: eglSwapInterval failed
error: Cannot swap EGL buffers: EGL_BAD_SURFACE
[Info] [Freenect2DeviceImpl] submitting rgb transfers...
[Info] [Freenect2DeviceImpl] submitting depth transfers...
[Info] [Freenect2DeviceImpl] started
info: [obs-kinect] [freenect2] Kinect active sources: ColorMappedDepth | Depth | Infrared
zsh: segmentation fault (core dumped)  obs

The error is DM-agnostic, happens both on wayland and X. obs-studio-tytan652 fork at least works, vanilla obs from repos crashes at startup.

OS: Arch Linux x86_64 
Kernel: 6.5.7-zen2-1-zen 
CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz 
GPU: NVIDIA GeForce GTX 1660 SUPER 
Memory: 5430MiB / 15913MiB