Bug Report Crashes on startup 'BadWindow'

still_dreaming_1

New Member
At one point OBS started crashing occasionally on startup. Now it does it almost every time. For a while I could fix this by rebooting my computer, but now even that is not helping. The window will appear very briefly and then close. I am using Linux Mint 17.3 Cinnamon 64 bit. Here is the most relevant portion from the bottom of the terminal output:


error: X Error: BadWindow (invalid Window parameter)
error: X Error: BadWindow (invalid Window parameter)
The program 'obs' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 90 error_code 3 request_code 3 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
[1] 4058 segmentation fault obs


Here is the entire terminal output:

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: 4 logical cores
info: Processor: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
info: Physical Memory: 7946MB Total
info: Kernel Version: Linux 3.19.0-32-generic
info: Distribution: "Ubuntu" "14.04"
QObject::connect: invalid null parameter
info: OBS 0.14.2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 44100
speakers: 2
info: OpenGL version: 3.3 (Core Profile) Mesa 10.5.9

info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1920x1080
fps: 30/1
format: NV12
info: ---------------------------------
info: Loading module: image-source.so
info: ---------------------------------
info: Loading module: linux-capture.so
info: ---------------------------------
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: ---------------------------------
info: Loading module: linux-jack.so
info: ---------------------------------
info: Loading module: linux-pulseaudio.so
info: ---------------------------------
info: Loading module: linux-v4l2.so
info: ---------------------------------
info: Loading module: obs-ffmpeg.so
info: ---------------------------------
info: Loading module: obs-filters.so
info: ---------------------------------
info: Loading module: obs-libfdk.so
info: ---------------------------------
info: Loading module: obs-outputs.so
info: ---------------------------------
info: Loading module: obs-transitions.so
info: ---------------------------------
info: Loading module: obs-x264.so
info: ---------------------------------
info: Loading module: rtmp-services.so
info: ---------------------------------
info: Loading module: text-freetype2.so
info: =====================================================================
info: output 'adv_stream' (rtmp_output) created
info: output 'adv_file_output' (ffmpeg_muxer) 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: pulse-input: Server name: 'pulseaudio 4.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
info: source 'Desktop Audio' (pulse_output_capture) created
info: pulse-input: Server name: 'pulseaudio 4.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_00_1b.0.analog-stereo'
info: source 'Mic/Aux' (pulse_input_capture) created
info: - filter 'Noise Gate' (noise_gate_filter) added to source 'Mic/Aux'
info: source 'Window Capture (Xcomposite)' (xcomposite_input) created
info: - filter 'Color Key' (color_key_filter) added to source 'Window Capture (Xcomposite)'
info: source 'Scene' (scene) created
info: xshm-input: Geometry 1920x1080 @ 0,0
info: source 'Screen Capture (XSHM)' (xshm_input) created
info: == Profiler Results =============================
info: run_program_init: 489.971 ms
info: ┣OBSApp::AppInit: 1.016 ms
info: ┃ ┗OBSApp::InitLocale: 0.602 ms
info: ┗OBSApp::OBSInit: 243.047 ms
info: ┣obs_startup: 1.023 ms
info: ┗OBSBasic::OBSInit: 218.117 ms
info: ┣OBSBasic::InitBasicConfig: 0.294 ms
info: ┣OBSBasic::ResetAudio: 0.128 ms
info: ┣OBSBasic::ResetVideo: 107.711 ms
info: ┣OBSBasic::InitOBSCallbacks: 0.007 ms
info: ┣OBSBasic::InitHotkeys: 0.038 ms
info: ┣obs_load_all_modules: 10.267 ms
info: ┃ ┣obs_init_module(image-source.so): 0.002 ms
info: ┃ ┣obs_init_module(linux-capture.so): 0.38 ms
info: ┃ ┣obs_init_module(linux-decklink.so): 0.182 ms
info: ┃ ┣obs_init_module(linux-jack.so): 0.005 ms
info: ┃ ┣obs_init_module(linux-pulseaudio.so): 0.004 ms
info: ┃ ┣obs_init_module(linux-v4l2.so): 0.004 ms
info: ┃ ┣obs_init_module(obs-ffmpeg.so): 0.073 ms
info: ┃ ┣obs_init_module(obs-filters.so): 0.009 ms
info: ┃ ┣obs_init_module(obs-libfdk.so): 0.002 ms
info: ┃ ┣obs_init_module(obs-outputs.so): 0.003 ms
info: ┃ ┣obs_init_module(obs-transitions.so): 0.005 ms
info: ┃ ┣obs_init_module(obs-x264.so): 0.002 ms
info: ┃ ┣obs_init_module(rtmp-services.so): 0.208 ms
info: ┃ ┗obs_init_module(text-freetype2.so): 0.035 ms
info: ┣OBSBasic::ResetOutputs: 0.624 ms
info: ┣OBSBasic::CreateHotkeys: 0.036 ms
info: ┣OBSBasic::InitService: 0.087 ms
info: ┣OBSBasic::InitPrimitives: 19.535 ms
info: ┗OBSBasic::Load: 19.959 ms
info: =================================================
error: X Error: BadWindow (invalid Window parameter)
error: X Error: BadWindow (invalid Window parameter)
The program 'obs' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 90 error_code 3 request_code 3 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
[1] 4058 segmentation fault obs
 
Last edited:

still_dreaming_1

New Member
At one point OBS started crashing occasionally on startup. Now it does it almost every time. For a while I could fix this by rebooting my computer, but now even that is not helping. The window will appear very briefly and then close. I am using Linux Mint 17.3 Cinnamon 64 bit. Here is the most relevant portion from the bottom of the terminal output:


error: X Error: BadWindow (invalid Window parameter)
error: X Error: BadWindow (invalid Window parameter)
The program 'obs' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 90 error_code 3 request_code 3 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
[1] 4058 segmentation fault obs


Here is the entire terminal output:

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: 4 logical cores
info: Processor: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
info: Physical Memory: 7946MB Total
info: Kernel Version: Linux 3.19.0-32-generic
info: Distribution: "Ubuntu" "14.04"
QObject::connect: invalid null parameter
info: OBS 0.14.2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
samples per sec: 44100
speakers: 2
info: OpenGL version: 3.3 (Core Profile) Mesa 10.5.9

info: ---------------------------------
info: video settings reset:
base resolution: 1920x1080
output resolution: 1920x1080
fps: 30/1
format: NV12
info: ---------------------------------
info: Loading module: image-source.so
info: ---------------------------------
info: Loading module: linux-capture.so
info: ---------------------------------
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: ---------------------------------
info: Loading module: linux-jack.so
info: ---------------------------------
info: Loading module: linux-pulseaudio.so
info: ---------------------------------
info: Loading module: linux-v4l2.so
info: ---------------------------------
info: Loading module: obs-ffmpeg.so
info: ---------------------------------
info: Loading module: obs-filters.so
info: ---------------------------------
info: Loading module: obs-libfdk.so
info: ---------------------------------
info: Loading module: obs-outputs.so
info: ---------------------------------
info: Loading module: obs-transitions.so
info: ---------------------------------
info: Loading module: obs-x264.so
info: ---------------------------------
info: Loading module: rtmp-services.so
info: ---------------------------------
info: Loading module: text-freetype2.so
info: =====================================================================
info: output 'adv_stream' (rtmp_output) created
info: output 'adv_file_output' (ffmpeg_muxer) 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: pulse-input: Server name: 'pulseaudio 4.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
info: source 'Desktop Audio' (pulse_output_capture) created
info: pulse-input: Server name: 'pulseaudio 4.0'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_00_1b.0.analog-stereo'
info: source 'Mic/Aux' (pulse_input_capture) created
info: - filter 'Noise Gate' (noise_gate_filter) added to source 'Mic/Aux'
info: source 'Window Capture (Xcomposite)' (xcomposite_input) created
info: - filter 'Color Key' (color_key_filter) added to source 'Window Capture (Xcomposite)'
info: source 'Scene' (scene) created
info: xshm-input: Geometry 1920x1080 @ 0,0
info: source 'Screen Capture (XSHM)' (xshm_input) created
info: == Profiler Results =============================
info: run_program_init: 489.971 ms
info: ┣OBSApp::AppInit: 1.016 ms
info: ┃ ┗OBSApp::InitLocale: 0.602 ms
info: ┗OBSApp::OBSInit: 243.047 ms
info: ┣obs_startup: 1.023 ms
info: ┗OBSBasic::OBSInit: 218.117 ms
info: ┣OBSBasic::InitBasicConfig: 0.294 ms
info: ┣OBSBasic::ResetAudio: 0.128 ms
info: ┣OBSBasic::ResetVideo: 107.711 ms
info: ┣OBSBasic::InitOBSCallbacks: 0.007 ms
info: ┣OBSBasic::InitHotkeys: 0.038 ms
info: ┣obs_load_all_modules: 10.267 ms
info: ┃ ┣obs_init_module(image-source.so): 0.002 ms
info: ┃ ┣obs_init_module(linux-capture.so): 0.38 ms
info: ┃ ┣obs_init_module(linux-decklink.so): 0.182 ms
info: ┃ ┣obs_init_module(linux-jack.so): 0.005 ms
info: ┃ ┣obs_init_module(linux-pulseaudio.so): 0.004 ms
info: ┃ ┣obs_init_module(linux-v4l2.so): 0.004 ms
info: ┃ ┣obs_init_module(obs-ffmpeg.so): 0.073 ms
info: ┃ ┣obs_init_module(obs-filters.so): 0.009 ms
info: ┃ ┣obs_init_module(obs-libfdk.so): 0.002 ms
info: ┃ ┣obs_init_module(obs-outputs.so): 0.003 ms
info: ┃ ┣obs_init_module(obs-transitions.so): 0.005 ms
info: ┃ ┣obs_init_module(obs-x264.so): 0.002 ms
info: ┃ ┣obs_init_module(rtmp-services.so): 0.208 ms
info: ┃ ┗obs_init_module(text-freetype2.so): 0.035 ms
info: ┣OBSBasic::ResetOutputs: 0.624 ms
info: ┣OBSBasic::CreateHotkeys: 0.036 ms
info: ┣OBSBasic::InitService: 0.087 ms
info: ┣OBSBasic::InitPrimitives: 19.535 ms
info: ┗OBSBasic::Load: 19.959 ms
info: =================================================
error: X Error: BadWindow (invalid Window parameter)
error: X Error: BadWindow (invalid Window parameter)
The program 'obs' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 90 error_code 3 request_code 3 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
[1] 4058 segmentation fault obs

I figured out what is happening. I have 2 video sources. One is a Screen Capture and the other is a Window Capture which displays a chat window of top of the screen. When I launch OBS, it automatically loads my previous settings including the Window Capture. If that window is not open at the time I start OBS, it will crash. If I make sure to open that window first, then OBS will not crash. So for now if I just make sure to open that window first I am all good.
 
Top