Comments (7)
Do you have DRI3 enabled?
xdpyinfo | grep DRI3
from obs-vkcapture.
yep
xdpyinfo | grep DRI3
DRI3
from obs-vkcapture.
diff --git a/src/glinject.c b/src/glinject.c
index 7bdc8f8..abedc57 100644
--- a/src/glinject.c
+++ b/src/glinject.c
@@ -28,6 +28,8 @@ with this program. If not, see <https://www.gnu.org/licenses/>
#include <unistd.h>
#include <stdlib.h>
+#include <xcb/xcb.h>
+
static bool gl_seen = false;
static bool gl_loaded = false;
static struct egl_funcs egl_f;
@@ -313,8 +315,10 @@ static bool gl_shtex_init()
glx_f.BindTexImageEXT(data.display, data.glxpixmap, P_GLX_FRONT_LEFT_EXT, NULL);
void *cookie = x11_f.xcb_dri3_buffer_from_pixmap(data.xcb_con, data.xpixmap);
- P_xcb_dri3_buffer_from_pixmap_reply_t *reply = x11_f.xcb_dri3_buffer_from_pixmap_reply(data.xcb_con, cookie, NULL);
+ xcb_generic_error_t *err;
+ P_xcb_dri3_buffer_from_pixmap_reply_t *reply = x11_f.xcb_dri3_buffer_from_pixmap_reply(data.xcb_con, cookie, &err);
if (!reply) {
+ hlog("error: %d", err->error_code);
hlog("Failed to get buffer from pixmap");
return false;
}
Can you post output with this patch applied?
from obs-vkcapture.
The output is
[obs-vkcapture] Init 0.7
[obs-vkcapture] Texture GL_RGBA 920x490
[obs-vkcapture] error: 4
[obs-vkcapture] Failed to get buffer from pixmap
[obs-vkcapture] shtex init failed
[obs-vkcapture] gl_init failed
[obs-vkcapture] Texture GL_RGBA 920x490
[obs-vkcapture] error: 4
[obs-vkcapture] Failed to get buffer from pixmap
[obs-vkcapture] shtex init failed
[obs-vkcapture] gl_init failed
[obs-vkcapture] Texture GL_RGBA 920x490
[obs-vkcapture] error: 4
from obs-vkcapture.
I'm not really sure how to debug this, but just to make sure: Does it work with EGL (obs-glcapture eglgears_x11
) and Vulkan (obs-vkcapture vkcube
)?
from obs-vkcapture.
Ok I actually got hit by this, when running on XWayland. Any chance it was on XWayland in your case too?
from obs-vkcapture.
Not supported on XWayland:
https://gitlab.freedesktop.org/xorg/xserver/-/blob/xwayland-21.1/hw/xwayland/xwayland-glamor-gbm.c#L553
from obs-vkcapture.
Related Issues (20)
- What's the point of `linux-firmware-git` as a dependency? HOT 1
- Plans to make obs-vkcapture more quiet?
- Plans to make obs-vkcapture more quiet? HOT 1
- Does an environment variable exist for obs-gamecapture? HOT 2
- Severe degradation using obs-vkcapture together with gamescope on Steam games HOT 17
- Feature request: Possible environment variable to capture? HOT 1
- game capture will capture game video, but not audio HOT 1
- [Crash bug] Using vkcapture on Helldivers 2 will hard crash the system, leading to a black screen. You cannot recover. HOT 2
- Plugin loaded, OBS_USE_EGL is set, source can't be added HOT 2
- build fails even with dependencies HOT 3
- Black Screen when Streaming with OBS specifically in Steamdeck's Gaming Mode HOT 1
- Minecraft (java edition) doesn't start HOT 2
- No "Select Window" Dropdown option HOT 7
- Build Fails on Ubuntu for OBS 30.2.0 HOT 12
- [flatpak] libobs.so.0: cannot open shared object file: No such file or directory HOT 3
- [flatpak] obs-gamecapture: command not found HOT 4
- Incompatible with streaming from gamescope headless backend HOT 2
- Ubuntu package names for dependancies HOT 1
- Cannot capture on NVIDIA wayland
- Does not capture flatpaks when running inside distrobox HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obs-vkcapture.