Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OBS Crashes if Controller is connected before startup #426

Open
D34dlyK1ss opened this issue Nov 1, 2024 · 4 comments
Open

OBS Crashes if Controller is connected before startup #426

D34dlyK1ss opened this issue Nov 1, 2024 · 4 comments

Comments

@D34dlyK1ss
Copy link

D34dlyK1ss commented Nov 1, 2024

Describe the bug
If I have my controller connected (USB) to the computer before opening OBS, when I try to open it, it crashes. This doesn't happen if I connect the controller after OBS starts

To Reproduce
Connect a controller
Start OBS

Screenshots
image

Additional information:

@loicmagne
Copy link

Getting the same issue issue, on Ubuntu 24.04, OBS 31.0.0, input-overlay v5.0.6

The plugin seems to load correctly:

info: [input-overlay] Loading v5.0.6-HEAD (c99a526) build time 2024.10.24 17:24
warning: DEPRECATION: obs_frontend_get_global_config is deprecated. Read from global or user configuration explicitly instead.
info: [input-overlay] Initializing SDL2 for gamepad input (compile-time: 2.0.20, run-time:  2.30.0)

But then I get a segfault once all the plugins are loaded:

info: ------------------------------------------------
info: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.5) 15.0.0'
info: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_c3_00.6.HiFi__hw_Generic_1__sink.monitor' (default)
info: [Loaded global audio device]: 'Desktop Audio'
info: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.5) 15.0.0'
info: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_c3_00.6.HiFi__hw_Generic_1__source' (default)
info: [Loaded global audio device]: 'Mic/Aux'
Segmentation fault (core dumped)

Only happens when my controller is already connected to my computer when obs starts

@univrsal
Copy link
Owner

univrsal commented Jan 3, 2025

Can you run gdb obs -ex run then once it crashes run bt and paste the back trace here? I want to check if it's the same function that's crashing.

@loicmagne
Copy link

Well it seems like I can't reproduce that crash anymore... My setup hasn't changed so I don't know what the issue was

@loicmagne
Copy link

Oh nvm, I managed the reproduce the crash, so for some reason it only happens when my gamepad is connected via bluetooth (and not usb). Here's the output of gdb obs -ex run/bt

Thread 37 "libobs: graphic" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff996006c0 (LWP 132832)]
Download failed: Invalid argument.  Continuing without source file ./nptl/./nptl/pthread_mutex_lock.c.
___pthread_mutex_lock (mutex=0x0) at ./nptl/pthread_mutex_lock.c:80
warning: 80	./nptl/pthread_mutex_lock.c: No such file or directory
(gdb) bt
#0  ___pthread_mutex_lock (mutex=0x0) at ./nptl/pthread_mutex_lock.c:80
#1  0x00007fffdf46c499 in ??? () at /usr/lib/x86_64-linux-gnu/obs-plugins/input-overlay.so
#2  0x00007ffff5572d1f in ??? () at /lib/x86_64-linux-gnu/libobs.so.30
#3  0x00007ffff55760b8 in ??? () at /lib/x86_64-linux-gnu/libobs.so.30
#4  0x00007ffff289ca94 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447
#5  0x00007ffff2929c3c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants