Bug Report Failed to capture a window via Xcomposite

Hello everyone !

I have a Optimus laptop (yeah, OBS nightmare, I know :p ) and OBS Studio has some little problems:
  1. If I start it normally (so on Intel Graphics), it can do anything except capturing a window. If done, OBS crashes & terminal returns (not visible on logfile):
    Code:
    info: source 'test' (xcomposite_input) created
    intel_do_flush_locked failed: Aucun fichier ou dossier de ce type (No file/folder of this type)
    QObject::~QObject: Timers cannot be stopped from another thread
    Erreur de segmentation (core dumped)
  2. If I start it with primusrun, it crashes right away.
  3. If I start it with optirun (so on NVIDIA card), everything works...except capturing a window again: it is stuck on the 1st frame of that windows & the logfile says:
    Code:
    error: glCopyImageSubData failed, glGetError returned 0x502
    error: device_copy_texture (GL) failed
Here are the logfiles:
 

raptur

New Member
I'm also experiencing this on a linux desktop without optimus. My graphics card is an NVIDIA GeForce GTX 750 Ti, and I have experienced this bug with the last three proprietary drivers: 361.28, 364.16, and the current driver of 364.19. I've attached the log file from the current driver.
 

Attachments

  • obs.log
    25.3 KB · Views: 45

Aeny

New Member
Same problem for me. I have an optimus enabled Dell xps 9550. Any workaround or fix? OBS 21.0.1-1

~Aeny
 

Luke A. Guest

New Member
I have this issue too, giving the following output:

Code:
17:03:21.499:     - source: 'Window Capture (Xcomposite)' (xcomposite_input)
17:03:21.499: ------------------------------------------------
17:03:21.521: glCopyImageSubData failed, glGetError returned 0x502
17:03:21.521: device_copy_texture (GL) failed
...

and also results in a full OS hang, completely wipes out pulseaudio (for unknown reasons) so it won't run on reboot until rebuilding it. There is nothing in the dmesg or message logs. I'm on Gentoo.

Using
Code:
MESA_EXTENSION_OVERRIDE="-GL_ARB_copy_image" obs
gives the following image (can't post this image for some reason.

Clicking switch red/blue just turns the panel blue, switching to another window, like hexchat gives:

Code:
    class: hexchat
error: glCopyTexSubImage2D failed, glGetError returned 0x506
error: gl_copy_texture failed
...

Using
Code:
LIBGL_DRI3_DISABLE=1 MESA_EXTENSION_OVERRIDE="-GL_ARB_copy_image" obs
gives the same 506 error above.

I'm using last night's Mesa and Obs from git.

Output of glxinfo
 
Top