univrsal / input-overlay

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

OBS-Studio 29.0.2 / input-overlay 5.0.3 crash when adding a mouse #340

Closed manu-p closed 1 year ago

manu-p commented 1 year ago

Describe the bug Ubuntu 22.04.2 OBS-Studio 29.0.2 input-overlay 5.0.3

When I try to add the mouse (mouse-*.json) from 5.0.3 presets, OBS-Studio crashes.

To Reproduce Click + in Sources Click on Input overlay (Affichage des périphériques in french) Enter a name (mouse for instance) Fetch mouse.png as extracted from input-overlay-5.0.3-presets.zip Fetch mouse-dot.json

See OBS Studio crashing.

Expected behavior Mouse added to the sources, no crash

Additional information:

$ gdb obs -ex run
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from obs...
(No debugging symbols found in obs)
Starting program: /usr/bin/obs 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffeae42640 (LWP 412006)]
qt.gui.icc: fromIccProfile: failed size sanity 2
qt.gui.icc: fromIccProfile: failed size sanity 2
[New Thread 0x7fffe9922640 (LWP 412007)]
[New Thread 0x7fffe9121640 (LWP 412008)]
[New Thread 0x7fffdbfff640 (LWP 412009)]
debug: Found portal inhibitor
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/fr-FR.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/fr-FR.ini
info: Using preferred locale 'fr-FR'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz
info: CPU Speed: 1300.000MHz
info: Physical Cores: 4, Logical Cores: 8
info: Physical Memory: 13916MB Total, 1310MB Free
info: Kernel Version: Linux 5.15.0-70-generic
info: Distribution: "Ubuntu" "22.04"
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
[New Thread 0x7fffdb7fe640 (LWP 412011)]
[New Thread 0x7fffdaffd640 (LWP 412012)]
info: Qt Version: 6.2.4 (runtime), 6.2.4 (compiled)
info: Portable mode: false
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
info: OBS 29.0.2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
    max buffering:   960 milliseconds
    buffering type:  dynamically increasing
[New Thread 0x7fffd9fff640 (LWP 412013)]
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter NVIDIA Corporation Quadro K1000M/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 390.157, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Bicubic
    fps:               30/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
[New Thread 0x7fffd8f7f640 (LWP 412014)]
info: NV12 texture support not available
info: P010 texture support not available
[New Thread 0x7fffc302b640 (LWP 412015)]
info: Audio monitoring device:
    name: Par défaut
    id: default
info: ---------------------------------
[Detaching after fork from child process 412016]
warning: No AJA devices found, skipping loading AJA UI plugin
warning: Failed to initialize module 'aja-output-ui.so'
[Detaching after fork from child process 412017]
warning: No AJA devices found, skipping loading AJA plugin
warning: Failed to initialize module 'aja.so'
[Detaching after fork from child process 412018]
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
[Detaching after fork from child process 412019]
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
[Detaching after fork from child process 412020]
libDeckLinkAPI.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
warning: Failed to initialize module 'decklink.so'
[Detaching after fork from child process 412021]
[New Thread 0x7fffc248e640 (LWP 412022)]
[Detaching after fork from child process 412023]
[Detaching after fork from child process 412024]
info: [input-overlay] Loading v5.0.3-HEAD (39a1d1a) build time 2023.03.11 13:42
[New Thread 0x7fffc1455640 (LWP 412029)]
[Detaching after fork from child process 412030]
[New Thread 0x7fffc0c54640 (LWP 412031)]
[Thread 0x7fffc1455640 (LWP 412029) exited]
[Detaching after fork from child process 412032]
[Detaching after fork from child process 412033]
[Detaching after fork from child process 412034]
[Detaching after fork from child process 412035]
[Detaching after fork from child process 412036]
[Detaching after fork from child process 412037]
[Detaching after fork from child process 412038]
info: [pipewire] Available captures:
info: [pipewire]     - Desktop capture
info: [pipewire]     - Window capture
[Detaching after fork from child process 412039]
[Detaching after fork from child process 412040]
[Detaching after vfork from child process 412041]
[Detaching after fork from child process 412043]
info: [obs-browser]: Version 2.19.0
info: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures_143.2591+g4204d54+chromium-103.0.5060.134 (compiled)
[Detaching after fork from child process 412044]
[New Thread 0x7fffc1455640 (LWP 412052)]
[New Thread 0x7fff99b97640 (LWP 412053)]
[New Thread 0x7fff89396640 (LWP 412054)]
[New Thread 0x7fff80b95640 (LWP 412055)]
[New Thread 0x7fff78394640 (LWP 412056)]
[New Thread 0x7fff6fb93640 (LWP 412057)]
[New Thread 0x7fff67392640 (LWP 412058)]
info: FFmpeg VAAPI H264 encoding not supported
[Thread 0x7fff67392640 (LWP 412058) exited]
[Thread 0x7fff6fb93640 (LWP 412057) exited]
[Thread 0x7fff78394640 (LWP 412056) exited]
[Thread 0x7fff80b95640 (LWP 412055) exited]
[Thread 0x7fff89396640 (LWP 412054) exited]
[Thread 0x7fff99b97640 (LWP 412053) exited]
[Thread 0x7fffc1455640 (LWP 412052) exited]
[Detaching after fork from child process 412059]
[Detaching after fork from child process 412060]
[Detaching after fork from child process 412061]
[Detaching after fork from child process 412062]
[Detaching after fork from child process 412063]
[Detaching after fork from child process 412064]
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.1.0 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.2.4 | Qt version (run-time): 6.2.4
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 101201
info: [obs-websocket] [obs_module_load] Module loaded.
[Detaching after fork from child process 412065]
[Detaching after fork from child process 412066]
[New Thread 0x7fff67392640 (LWP 412067)]
[New Thread 0x7fff6fb93640 (LWP 412068)]
[Thread 0x7fff6fb93640 (LWP 412068) exited]
[Detaching after fork from child process 412069]
[Detaching after fork from child process 412070]
info: [vlc-video]: VLC 3.0.16 Vetinari found, VLC video source enabled
info: ---------------------------------
info:   Loaded Modules:
info:     vlc-video.so
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-websocket.so
info:     obs-vst.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     obs-browser.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-pipewire.so
info:     linux-jack.so
info:     linux-capture.so
info:     linux-alsa.so
info:     input-overlay.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-output-ui.so
info:     decklink-captions.so
info: ---------------------------------
QLayout: Attempting to add QLayout "" to OBSBasic "OBSBasic", which already has a layout
QWidget::setTabOrder: 'first' and 'second' must be in the same window
info: ==== Startup complete ===============================================
qt.core.qobject.connect: QObject::connect: No such slot io_settings_dialog::RefreshUi()
qt.core.qobject.connect: QObject::connect:  (receiver name: 'io_config_dialog')
info: All scene data cleared
info: ------------------------------------------------
[New Thread 0x7fff6fb93640 (LWP 412071)]
info: pulse-input: Server name: 'pulseaudio 15.99.1'
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' (default)
info: [Loaded global audio device]: 'Audio du Bureau'
info: pulse-input: Server name: 'pulseaudio 15.99.1'
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' (default)
info: [Loaded global audio device]: 'Mic/Aux'
info: xshm-input: Geometry 1920x1080 @ 1920,0
info: Switched to scene 'Scène'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scène':
info:     - source: 'Capture d'écran (XSHM)' (xshm_input)
info: ------------------------------------------------
[New Thread 0x7fff78394640 (LWP 412075)]
[New Thread 0x7fff80b95640 (LWP 412076)]
[Thread 0x7fff80b95640 (LWP 412076) exited]
[Thread 0x7fff67392640 (LWP 412067) exited]
[Thread 0x7fff78394640 (LWP 412075) exited]
info: User added source 'souris' (input-overlay) to scene 'Scène'
[New Thread 0x7fff78394640 (LWP 412083)]
[New Thread 0x7fff80b95640 (LWP 412084)]
[New Thread 0x7fff3fbff640 (LWP 412085)]
[New Thread 0x7fff3f3fe640 (LWP 412086)]
[Thread 0x7fff3f3fe640 (LWP 412086) exited]
[New Thread 0x7fff3f3fe640 (LWP 412087)]
[New Thread 0x7fff3ebfd640 (LWP 412088)]
[Thread 0x7fff3f3fe640 (LWP 412087) exited]
[Thread 0x7fff3ebfd640 (LWP 412088) exited]
[New Thread 0x7fff3ebfd640 (LWP 412089)]
[New Thread 0x7fff3f3fe640 (LWP 412090)]
[New Thread 0x7fff3e3fc640 (LWP 412091)]
[Thread 0x7fff3f3fe640 (LWP 412090) exited]
[Thread 0x7fff3e3fc640 (LWP 412091) exited]
[New Thread 0x7fff3e3fc640 (LWP 412092)]
[New Thread 0x7fff3f3fe640 (LWP 412093)]
[New Thread 0x7fff3dbfb640 (LWP 412094)]
[Thread 0x7fff3f3fe640 (LWP 412093) exited]
[Thread 0x7fff3dbfb640 (LWP 412094) exited]
[New Thread 0x7fff3dbfb640 (LWP 412095)]
[New Thread 0x7fff3f3fe640 (LWP 412096)]
[Thread 0x7fff3dbfb640 (LWP 412095) exited]
[Thread 0x7fff3f3fe640 (LWP 412096) exited]
[New Thread 0x7fff3f3fe640 (LWP 412099)]
[New Thread 0x7fff3dbfb640 (LWP 412101)]
[New Thread 0x7fff3d3fa640 (LWP 412102)]
[Thread 0x7fff3dbfb640 (LWP 412101) exited]
[Thread 0x7fff3d3fa640 (LWP 412102) exited]
[Thread 0x7fff3fbff640 (LWP 412085) exited]
[Thread 0x7fff3ebfd640 (LWP 412089) exited]
[Thread 0x7fff80b95640 (LWP 412084) exited]
[New Thread 0x7fff80b95640 (LWP 412104)]
[Thread 0x7fff78394640 (LWP 412083) exited]
[New Thread 0x7fff78394640 (LWP 412105)]
[Thread 0x7fff80b95640 (LWP 412104) exited]
[New Thread 0x7fff80b95640 (LWP 412106)]
[Thread 0x7fff80b95640 (LWP 412106) exited]
[New Thread 0x7fff80b95640 (LWP 412109)]
[New Thread 0x7fff3ebfd640 (LWP 412110)]
[New Thread 0x7fff3fbff640 (LWP 412111)]
[Thread 0x7fff78394640 (LWP 412105) exited]
[Thread 0x7fff3ebfd640 (LWP 412110) exited]
[Thread 0x7fff80b95640 (LWP 412109) exited]

Thread 10 "libobs: graphic" received signal SIGILL, Illegal instruction.
[Switching to Thread 0x7fffc302b640 (LWP 412015)]
0x00007fffcbed1c64 in element_mouse_movement::get_mouse_offset (this=this@entry=0x555555adf000, settings=settings@entry=0x5555562ee5c8, center=..., out=..., radius=50 '2') at /home/runner/work/input-overlay/input-overlay/plugin/src/util/element/element_mouse_movement.cpp:98
98  /home/runner/work/input-overlay/input-overlay/plugin/src/util/element/element_mouse_movement.cpp: Aucun fichier ou dossier de ce type.
cloudishBenne commented 1 year ago

This issue still appears. I am using the artifact from the 5.0.4 build.

Izaise commented 9 months ago

I have the same issue, I still couldn't fix it sadly

univrsal commented 9 months ago

See #362