univrsal / input-overlay

Show keyboard, gamepad and mouse input on stream
GNU General Public License v2.0
2.99k stars 248 forks source link

Enable input control crashing OBS #356

Open MakiMakoTaco opened 1 year ago

MakiMakoTaco commented 1 year ago

Describe the bug Under the configuration options Enable Input Control is ticked and whatever I do, I can't uncheck it including deleting and re-installing/installing a different version. I think this being checked also lags my PC for a bit when OBS is opening but that's not a huge issue and could just be my PC. OBS also crashes when I just try and add an input overlay, I don't know if this is because of Input Control being checked but it happens anyways.

io-client also seems to crash on open too

To Reproduce Steps to reproduce the behaviour:

Expected behaviour OBS to not crash

Screenshots If applicable, add screenshots to help explain your problem.

Additional information:

Additional context I'm not completely sure if it is a crash but OBS doesn't respond and I've left it for about half an hour with OBS still not responding. The one time I somehow got an input display visual without OBS crashing I couldn't resize the display, it originally showed the resize cursor and I dragged it but nothing happened and then I couldn't interact with the display after, and it didn't seem to actually work.

univrsal commented 12 months ago

Do you have a crash log? Are there any filters for the input control setting?

agilob commented 6 months ago

To reproduce on my machine each time, follow the clicks:

image

info: User added filter 'Advanced Mask' (advanced_masks_filter_v2) to source 'Video Capture Device (V4L2)'
warning: Creating a popup with a parent, QWidgetWindow(0x5aec24772e40, name="OBSBasicWindow") which does not match the current topmost grabbing popup, QWidgetWindow(0x5aec27ac2f30, name="QMenuClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  20 (X_GetProperty)
  Resource id in failed request:  0x0
  Serial number of failed request:  12
  Current serial number in output stream:  12
terminate called without an active exception
[1]    178500 IOT instruction (core dumped)  obs

Versions installed:

obs-plugin-input-overlay 5.0.5-1
obs-studio 30.1.1-1

Arch Linux, installed it from AUR

univrsal commented 6 months ago

I need a crash log. Run gdb obs -ex run, answer no if it asks to download some debug symbols, make it crash, run bt in the gdb shell and paste the result here

agilob commented 6 months ago
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
[New Thread 0x7fff0b5656c0 (LWP 40576)]
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  20 (X_GetProperty)
  Resource id in failed request:  0x0
  Serial number of failed request:  12
  Current serial number in output stream:  12
warning: QSocketNotifier: Socket notifiers cannot be enabled or disabled from another thread

Thread 1 "obs" received signal SIGSEGV, Segmentation fault.
0x00007ffff36be3bf in ?? () from /usr/lib/libQt6Core.so.6
(gdb) bt
#0  0x00007ffff36be3bf in ??? () at /usr/lib/libQt6Core.so.6
#1  0x00007ffff1d0e0ee in ??? () at /usr/lib/libglib-2.0.so.0
#2  0x00007ffff1d6c21e in ??? () at /usr/lib/libglib-2.0.so.0
#3  0x00007ffff1d0c712 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#4  0x00007ffff3983df4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib/libQt6Core.so.6
#5  0x00007ffff3745c7e in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt6Core.so.6
#6  0x00007ffff37416e8 in QCoreApplication::exec() () at /usr/lib/libQt6Core.so.6
#7  0x00005555555e0fc1 in main ()
univrsal commented 6 months ago

Can you also upload a log file of obs studio? Also which AUR package are you using, there seem to be three different ones.

agilob commented 6 months ago

obs-studio from extra (not aur) https://archlinux.org/packages/extra/x86_64/obs-studio/

obs-plugin-input-overlay 5.0.5-1 from aur https://aur.archlinux.org/packages/obs-plugin-input-overlay

Ok, maybe new issue now. Somehow my obs completely broke and couldn't after in "Normal Mode" after a few more crashes. I was forced to uninstall, remove .config/obs-studio and .local/share/obs and install all again. input overlay is still crashing as before, but I see different traces now. obs.log is with gdb, obs.log is without gdb

obs.log

obs2.log

univrsal commented 6 months ago

I can't seem to reproduce the issue but I just saw that you're on wayland so that means you won't be able to use the plugin (and input filters) anyways. The only thing that (probably) should work is the gamepad hook.

MakiMakoTaco commented 6 months ago

I can redownload and do anything you need for info but all I remember is that Enable Input Control was originally turned off, I turned it on when looking around at things. That's when it then first crashed, I tried unchecking it after reloading OBS and it would just crash everytime I tried to confirm it and leave the checkbox ticked including uninstalling and reinstalling. I think I went into the files and tried manually turning it off too which changed nothing.

And then as I mentioned in the original message doing anything in OBS it would either lag (including moving the mouse) or if I tried doing anything related to input display it would crash

univrsal commented 6 months ago

Yeah, I didn't mean your original bug report. The issue @agilob reported is unrelated to yours and it's not an issue that can easily be fixed. I don't have a Windows installation around right now but when I get some time I'll try reproducing your bug report and then I'll see if the bug still exists and what the cause is.

MakiMakoTaco commented 6 months ago

Ok no worries, thanks