GithubHelp home page GithubHelp logo

Comments (7)

nowrep avatar nowrep commented on August 24, 2024

Do you have DRI3 enabled?

xdpyinfo | grep DRI3

from obs-vkcapture.

ibrokemypie avatar ibrokemypie commented on August 24, 2024

yep

xdpyinfo | grep DRI3
    DRI3

from obs-vkcapture.

nowrep avatar nowrep commented on August 24, 2024
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.

ibrokemypie avatar ibrokemypie commented on August 24, 2024

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.

nowrep avatar nowrep commented on August 24, 2024

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.

nowrep avatar nowrep commented on August 24, 2024

Ok I actually got hit by this, when running on XWayland. Any chance it was on XWayland in your case too?

from obs-vkcapture.

nowrep avatar nowrep commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.