Bug Report Window capture crashes obs

Drenn

New Member
Simply trying to create a window capture device causes obs to crash. After doing this I need to manually edit the configuration to prevent obs from crashing again when restarting it. I'm using xfce as my desktop environment. Whether the compositor is enabled or not makes no difference. Screen capture works fine, though.

Log file: https://gist.github.com/anonymous/8fafa84e7a69e8a1449b
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Could you give us the command line output when this happens? What version of arch linux?
 

Drenn

New Member
I tried running it in gdb to maybe get some more useful output. Let me know if I did it right or not.

This was when my configuration already had window capture set up, causing an instacrash.

Code:
Starting program: /usr/bin/obs
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
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
QObject::connect: invalid null parameter
info: OBS 0.11.1.r47.g66f7330 (linux)
info: ---------------------------------
info: Processor: 4 logical cores
info: Processor: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
info: Physical Memory: 7826MB Total
info: Kernel Version: Linux 4.1.2-2-ARCH
info: Distribution: "Arch Linux" Unknown
info: ---------------------------------
info: audio settings reset:
        samples per sec: 44100
        speakers:        2
        buffering (ms):  1000
info: X and Y: 720 283
Backbuffers: 2
Color Format: 3
ZStencil Format: 0
Adapter: 0

info: OpenGL version: 3.3 (Core Profile) Mesa 10.6.2

info: ---------------------------------
info: video settings reset:
        base resolution:   852x480
        output resolution: 852x480
        fps:               30/1
        format:            NV12
info: ---------------------------------
Loading module: image-source.so
info: ---------------------------------
Loading module: linux-capture.so
info: ---------------------------------
Loading module: linux-decklink.so
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
info: No blackmagic support
info: Failed to start search for DeckLink devices
info: ---------------------------------
Loading module: linux-jack.so
info: ---------------------------------
Loading module: linux-pulseaudio.so
info: ---------------------------------
Loading module: linux-v4l2.so
info: ---------------------------------
Loading module: obs-ffmpeg.so
info: ---------------------------------
Loading module: obs-filters.so
info: ---------------------------------
Loading module: obs-libfdk.so
info: ---------------------------------
Loading module: obs-outputs.so
info: ---------------------------------
Loading module: obs-x264.so
info: ---------------------------------
Loading module: rtmp-services.so
info: ---------------------------------
Loading module: text-freetype2.so
info: =====================================================================
info: output 'adv_stream' (rtmp_output) created
info: output 'adv_file_output' (ffmpeg_muxer) created
info: encoder 'recording_h264' (obs_x264) created
info: encoder 'streaming_h264' (obs_x264) created
info: AAC encoder bitrate mapping:
         32 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
         64 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
         96 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        128 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        160 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        192 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        224 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        256 kbit/s: 'libfdk AAC Encoder' (libfdk_aac)
        288 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
        320 kbit/s: 'FFmpeg Default AAC Encoder' (ffmpeg_aac)
info: encoder 'adv_aac0' (libfdk_aac) created
info: encoder 'adv_aac1' (libfdk_aac) created
info: encoder 'adv_aac2' (libfdk_aac) created
info: encoder 'adv_aac3' (libfdk_aac) created
info: service 'default_service' (rtmp_common) created
info: All scene data cleared
info: ------------------------------------------------
info: source 'GC' (scene) created
info: xshm-input: Geometry 1920x1080 @ 0,0
info: source 'Splits' (xshm_input) created
info: source 'Crop' (crop_filter) created
info: pulse-input: Server name: 'pulseaudio 6.0'
info: pulse-input: Audio format: s16le, 48000 Hz, 1 channels
info: pulse-input: Started recording from 'alsa_input.usb-Logitech_Logitech_Wireless_Headset_000D44E1779F-00.analog-mono'
info: source 'Headset' (pulse_input_capture) created
info: source 'Top-right' (scene) created
info: xshm-input: Geometry 1920x1080 @ 0,0
info: source 'Screen Capture (XSHM)' (xshm_input) created
info: source 'Crop' (crop_filter) created
info: pulse-input: Server name: 'pulseaudio 6.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.usb-Pinnacle_Systems_GmbH_DVC100-01.analog-stereo'
info: source 'Dazzle Audio' (pulse_input_capture) created
info: xshm-input: Geometry 1920x1080 @ 0,0
info: source 'MPlayer Capture' (xshm_input) created
info: source 'Crop' (crop_filter) created
info: pulse-input: Server name: 'pulseaudio 6.0'
info: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.usb-Logitech_Logitech_Wireless_Headset_000D44E1779F-00.analog-stereo.monitor'
info: source 'Desktop Unmuted' (pulse_output_capture) created
info: pulse-input: Server name: 'pulseaudio 6.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.usb-Pinnacle_Systems_GmbH_DVC100-01.analog-stereo'
info: source 'Dazzle Audio Rec' (pulse_input_capture) created
info: source 'Blank' (scene) created
info: source 'BRB' (text_ft2_source) created
info: pulse-input: Server name: 'pulseaudio 6.0'
info: pulse-input: Audio format: s16le, 48000 Hz, 1 channels
info: pulse-input: Started recording from 'alsa_input.usb-Logitech_Logitech_Wireless_Headset_000D44E1779F-00.analog-mono'
info: source 'Headset Rec' (pulse_input_capture) created
info: source 'Window Capture (Xcomposite)' (xcomposite_input) created
[New Thread 0x7fffb37fd700 (LWP 7846)]
intel_do_flush_locked failed: No such file or directory
[New Thread 0x7fffcbfff700 (LWP 7842)]
[New Thread 0x7fffb3ffe700 (LWP 7845)]
[New Thread 0x7fffc8d07700 (LWP 7844)]
[New Thread 0x7fffd0c47700 (LWP 7841)]
[New Thread 0x7fffd1ad2700 (LWP 7840)]
[New Thread 0x7fffd22d3700 (LWP 7839)]
[New Thread 0x7fffdf45c700 (LWP 7837)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff489e810 in QPen::QPen() () from /usr/lib/libQt5Gui.so.5

Backtrace
 

Drenn

New Member
Perhaps this is relevant, glxinfo reports either opengl version 3.0 or 3.3. I don't know why it reports different numbers but someone here probably does. I'm using integrated graphics at the moment.

Code:
$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.6.2
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.0 Mesa 10.6.2
OpenGL shading language version string: 1.30
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.6.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Strange, you shouldn't be able to run OBS without OpenGL being 3.2. The QPen error isn't something caused by OBS, it's caused by Qt which is an obs dependency.
 

Drenn

New Member
Well it works pretty well aside from the 2 issues I've made threads about. It's certainly usable anyway. Notice that OBS itself reports opengl being version 3.3. I think we need an explanation of the differences between "core profile version string" and "version string". I'm also suspicious of the "intel_do_flush_locked failed" line. But I can't really figure out what it means, the google results haven't shed much light on it.
 

Drexel

New Member
I had this same issue as well. You can fix the crash by typing 'export LIBGL_DRI3_DISABLE=1' before running OBS.
 
Top