Bug Report Ubuntu 16.04 - xcompcap: glXCreatePixmap failed: BadAlloc

Chirality

New Member
Trying to set up a source (Window Capture [Xcomposite]) but all I get is a black screen. Setting chrome as the source works just fine. My mouse shows up in the broken source.

info: Processor: 8 logical cores
info: Processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
info: Physical Memory: 15931MB Total
info: Kernel Version: Linux 4.4.0-66-generic
info: Distribution: "Ubuntu" "16.04"
info: Portable mode: false
info: OBS 17.0.2-69-ga47ef76 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 44100
speakers: 2
info: OpenGL version: 3.2.0 NVIDIA 367.57

info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1280x720
downscale filter: Bicubic
fps: 30/1
format: NV12

Error:

Code:
error: glCopyImageSubData failed, glGetError returned 0x502
error: device_copy_texture (GL) failed
info: Update check: last known remote version is 0.4.0
error: glCopyImageSubData failed, glGetError returned 0x502
error: device_copy_texture (GL) failed
error: xcompcap: glXCreatePixmap failed: BadAlloc (insufficient resources for operation)

It looks like it's trying to allocate space for a pixel map but it's not allocating enough and then killing itself?

Edit:

Bug reported here:
https://obsproject.com/mantis/view.php?id=93
Same thing but the red screen design was removed so now it's just a black screen w/ a red outline. The fix listed didn't work.

Edit 2:

Just got a little ubuntu report popup when I launched OBS.

dleyna-renderer-service segfaults in dir_device_unsubscribe.

Package: dleyna-renderer 0.4.0-1
 
Last edited:
A non-related question here. What graphics card do you have? Though this is another question, how did you get obs 17?
 
Switched to NVIDIA card and ran obs

Code:
$obs
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Default.qss
Attempted path: /usr/share/obs/obs-studio/themes/Default.qss
Attempted path: share/obs/obs-studio/license/gplv2.txt
Attempted path: /usr/share/obs/obs-studio/license/gplv2.txt
info: Processor: 8 logical cores
info: Processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz
info: Physical Memory: 15931MB Total
info: Kernel Version: Linux 4.4.0-66-generic
info: Distribution: "Ubuntu" "16.04"
info: Portable mode: false
info: OBS 18.0.1-12-g3540e71 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 44100
    speakers:        2
info: OpenGL version: 3.2.0 NVIDIA 375.39

info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1280x720
    downscale filter:  Bicubic
    fps:               30/1
    format:            NV12
info: ---------------------------------
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
info: No blackmagic support
info: ---------------------------------
info:   Loaded Modules:
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-jack.so
info:     linux-decklink.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info: ==== Startup complete ===============================================
error: Service '' not found
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 8.0'
error: pulse-input: An error occurred while getting the source info!
info: pulse-input: Server name: 'pulseaudio 8.0'
error: pulse-input: An error occurred while getting the source info!
info: Switched to scene 'Scene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info:     - source: 'Window Capture (Xcomposite)' (xcomposite_input)
info: ------------------------------------------------
error: glCopyImageSubData failed, glGetError returned 0x502
error: device_copy_texture (GL) failed
error: glCopyImageSubData failed, glGetError returned 0x502
error: device_copy_texture (GL) failed
--- Infinite loop ---

glxinfo | grep opengl

Code:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 970M/PCIe/SSE2
OpenGL core profile version string: 4.5.0 NVIDIA 375.39
OpenGL core profile shading language version string: 4.50 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.5.0 NVIDIA 375.39
OpenGL shading language version string: 4.50 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 375.39
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
 
I just registered to confirm this. I'm running standard Ubuntu Desktop 20.04 on an HP Zbook G4 laptop. OBS only sees black screens when capturing windows from, e.g., gnome-terminal and Microsoft Edge; it does see the contents of e.g. OBS, LibreOffice and Spotify.

The X server running is /usr/lib/xorg/Xorg from the xserver-xorg-core package, which uses the NVIDIA card.

Installing ccsm, disabling 'Composite' (which disables OpenGL and a bunch of other features) and restarting the X session does not resolve the issue. It would be nice if OBS could be clear about what's happening.

The error message thrown when starting to capture a window that turns out to be black:

error: xcompcap: cleanup glXReleaseTexImageEXT failed: GLXBadPixmap
error: xcompcap: glXCreatePixmap failed: BadAlloc (insufficient resources for operation)
 
Back
Top