Skip to content

BUG: volume adjustment causes segfault when volume applet is open #224

Description

@dantrainor

Describe the bug
Using a dial controller

To Reproduce
Steps to reproduce the behavior:

  1. Create an Action with a knob of type Dial Controller, Audio Control
  2. Click on the GNOME Settings and Info applet from the top-right corner
  3. Observe the volume level slider
  4. Observe the volume level slider moves according to the rotation of the Dial Controller
  5. Observe core dump in the system journal and StreamController's logs.log

Expected behavior
Observe that Dial Controller changes the volume by verifying with the GNOME Settings and Info applet in real-time, without dumping core with a segfault.

Screenshots

  • GNOME Settings and Info applet from the top-right corner
  • StreamController configuration for Dial Controller action

Additional context

StreamController: v1.5.0
Platform: Fedora 40
Python: 3.12.5
GNOME: 44.0
Deck: Bus 001 Device 009: ID 0fd9:0084 Elgato Systems GmbH Stream Deck Plus

The "feeling" i have is that this might also happen with other Dial Controller actions based on the feedback from setting up others. The adjustment starts out as linear, then appears to skip adjustment increments of 1.0 to something more like 3-5 before finally crashing.

logs.log:

2024-09-03 11:36:13.473 | INFO     | src.backend.DeckManagement.DeckManager:__init__:63 - Running under Flatpak. Using separate thread to disconnect device disconnection.
2024-09-03 11:36:13.474 | INFO     | src.backend.DeckManagement.DeckManager:__init__:67 - Beta resume mode: True
2024-09-03 11:36:13.557 | INFO     | src.backend.PluginManager.ActionBase:__init__:77 - Loaded action Toggle Microphone Mute with id com_core447_MicMute::ToggleMute
2024-09-03 11:36:13.558 | INFO     | src.backend.PluginManager.ActionBase:__init__:77 - Loaded action Mute with id com_gapls_AudioControl::Mute
2024-09-03 11:36:13.558 | INFO     | src.backend.PluginManager.ActionBase:__init__:77 - Loaded action Run Command with id com_core447_OSPlugin::RunCommand
2024-09-03 11:36:13.559 | INFO     | src.backend.PluginManager.ActionBase:__init__:77 - Loaded action Weather with id com_core447_Weather::Weather
2024-09-03 11:36:13.559 | INFO     | src.backend.PluginManager.ActionBase:__init__:77 - Loaded action Dial Controller with id com_gapls_AudioControl::DialController
2024-09-03 11:36:13.874 | INFO     | __main__:update_assets:163 - Updating 0 store assets took 0.46486759185791016 seconds
2024-09-03 11:36:14.112 | DEBUG    | src.backend.PageManagement.Page:load:77 - Loaded page aaa in 0.55 seconds
2024-09-03 11:36:14.113 | INFO     | src.backend.DeckManagement.DeckController:load_page:670 - Loading page aaa on deck WA3471NEK4P
2024-09-03 11:36:14.182 | INFO     | src.backend.DeckManagement.DeckController:load_page:699 - Loaded page aaa on deck WA3471NEK4P
2024-09-03 11:36:14.233 | INFO     | src.backend.DeckManagement.DeckController:load_background:522 - Loading background in thread: 139696596321984
2024-09-03 11:36:14.342 | TRACE    | src.app:on_activate:73 - running: on_activate
2024-09-03 11:36:14.343 | TRACE    | src.windows.mainWindow.mainWindow:build:93 - Building main window
2024-09-03 11:36:14.518 | SUCCESS  | src.app:on_activate:103 - Finished loading app
2024-09-03 11:36:14.520 | INFO     | autostart:request_background_callback:57 - request_background success=True
2024-09-03 11:36:14.792 | INFO     | src.backend.DeckManagement.DeckController:load_all_inputs:608 - Loading all inputs took 0.5114967823028564 seconds
2024-09-03 11:36:14.831 | DEBUG    | src.backend.DeckManagement.DeckController:update_all_inputs:432 - Updating all inputs took 0.03805804252624512 seconds

System journal:

Sep 03 11:34:19 workstation.internal.home.domain.tld gnome-character[267542]: JS LOG: Characters Application exiting
Sep 03 11:34:43 workstation.internal.home.domain.tld audit[267787]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=267787 comm="StreamControlle" exe="/usr/bin/python3.11" sig=11 res=1
Sep 03 11:34:43 workstation.internal.home.domain.tld kernel: StreamControlle[268446]: segfault at 98 ip 00007f387534e768 sp 00007f38055feba0 error 4 in _ctypes.cpython-311-x86_64-linux-gnu.so[12768,7f3875343000+12000] likely on CPU 6 (core 6, socket 0)
Sep 03 11:34:43 workstation.internal.home.domain.tld kernel: Code: 3d 3d 80 00 00 e8 78 59 ff ff e9 df fd ff ff e9 9d 5e ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 55 49 89 d0 <48> 8b 41 58 48 89 f7 48 8b 51 68 48 8b 71 70 48 89 e5 48 83 ec 08
Sep 03 11:34:43 workstation.internal.home.domain.tld audit: BPF prog-id=142 op=LOAD
Sep 03 11:34:43 workstation.internal.home.domain.tld audit: BPF prog-id=143 op=LOAD
Sep 03 11:34:43 workstation.internal.home.domain.tld audit: BPF prog-id=144 op=LOAD
Sep 03 11:34:43 workstation.internal.home.domain.tld systemd[1]: Started [email protected] - Process Core Dump (PID 268447/UID 0).
Sep 03 11:34:43 workstation.internal.home.domain.tld audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@5-268447-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld (sd-parse-elf)[268452]: Could not parse number of program headers from core file: invalid `Elf' handle
Sep 03 11:34:45 workstation.internal.home.domain.tld systemd-coredump[268451]: [🡕] Process 267787 (StreamControlle) of user 1000 dumped core.
                                                                                 
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libharfbuzz-8b0b6641.so.0.60840.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libharfbuzz-8b0b6641.so.0.60840.0
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libgfortran-91cc3cb1.so.3.0.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libgfortran-91cc3cb1.so.3.0.0
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libcrypto-0c9efecc.so.1.1 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libcrypto-0c9efecc.so.1.1
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libvpx-e947aa05.so.8.0.1 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libvpx-e947aa05.so.8.0.1
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libopenblas-r0-f650aae0.3.3.so without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libopenblas-r0-f650aae0.3.3.so
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libQt5Core-39545cc7.so.5.15.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libQt5Core-39545cc7.so.5.15.0
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libQt5Gui-a7aedf18.so.5.15.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libQt5Gui-a7aedf18.so.5.15.0
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libQt5Widgets-e69d94fb.so.5.15.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libQt5Widgets-e69d94fb.so.5.15.0
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libavformat-3ff1be5b.so.59.27.100 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libavformat-3ff1be5b.so.59.27.100
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libavcodec-512f0acb.so.59.37.100 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libavcodec-512f0acb.so.59.37.100
                                                                                 Module /app/lib/python3.11/site-packages/cv2/cv2.abi3.so without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/cv2/cv2.abi3.so
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libXau-154567c4.so.6.0.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libXau-154567c4.so.6.0.0
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libfreetype-1f2cdfbb.so.6.20.1 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libfreetype-1f2cdfbb.so.6.20.1
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libavutil-a0a0531e.so.57.28.100 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libavutil-a0a0531e.so.57.28.100
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libssl-28bef1ac.so.1.1 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libssl-28bef1ac.so.1.1
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libQt5Test-c38a5234.so.5.15.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libQt5Test-c38a5234.so.5.15.0
                                                                                 Module /app/lib/python3.11/site-packages/numpy.libs/libquadmath-96973f99.so.0.0.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/numpy.libs/libquadmath-96973f99.so.0.0.0
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libpng16-58efbb84.so.16.43.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libpng16-58efbb84.so.16.43.0
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libswscale-2c3c8be7.so.6.7.100 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libswscale-2c3c8be7.so.6.7.100
                                                                                 Module /app/lib/python3.11/site-packages/numpy.libs/libgfortran-040039e1.so.5.0.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/numpy.libs/libgfortran-040039e1.so.5.0.0
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libbrotlicommon-3ecfe81c.so.1 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libpng16-7379b3c3.so.16.40.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libpng16-7379b3c3.so.16.40.0
                                                                                 Module /app/lib/python3.11/site-packages/numpy.libs/libopenblas64_p-r0-0cf96a72.3.23.dev.so without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/numpy.libs/libopenblas64_p-r0-0cf96a72.3.23.dev.so
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libbrotlidec-ba690955.so.1 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/PIL/_imagingft.cpython-311-x86_64-linux-gnu.so without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/PIL/_imagingft.cpython-311-x86_64-linux-gnu.so
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libopenjp2-05423b53.so without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libopenjp2-05423b53.so
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libjpeg-f391b078.so.62.4.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libjpeg-f391b078.so.62.4.0
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libtiff-4da6744b.so.6.0.2 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libtiff-4da6744b.so.6.0.2
                                                                                 Module /app/lib/python3.11/site-packages/PIL/_imaging.cpython-311-x86_64-linux-gnu.so without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/PIL/_imaging.cpython-311-x86_64-linux-gnu.so
                                                                                 Module /app/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311-x86_64-linux-gnu.so without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/numpy/core/_multiarray_umath.cpython-311-x86_64-linux-gnu.so
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/liblzma-13fa198c.so.5.4.5 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/liblzma-13fa198c.so.5.4.5
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libswresample-2ec4394e.so.4.7.100 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/opencv_python.libs/libswresample-2ec4394e.so.4.7.100
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libxcb-80c5a837.so.1.1.0 without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/pillow.libs/libxcb-80c5a837.so.1.1.0
                                                                                 Module /app/lib/python3.11/site-packages/numpy/linalg/_umath_linalg.cpython-311-x86_64-linux-gnu.so without build-id.
                                                                                 Module /app/lib/python3.11/site-packages/numpy/linalg/_umath_linalg.cpython-311-x86_64-linux-gnu.so
                                                                                 Stack trace of thread 612:
                                                                                 #0  0x00007f387534e768 n/a (/usr/lib/python3.11/lib-dynload/_ctypes.cpython-311-x86_64-linux-gnu.so + 0x12768)
                                                                                 #1  0x00007f3875335278 n/a (/usr/lib/x86_64-linux-gnu/libffi.so.8.1.4 + 0x9278)
                                                                                 #2  0x00007f38482cb058 n/a (/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-17.0.so + 0x46058)
                                                                                 #3  0x00007f38482cc28c n/a (/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-17.0.so + 0x4728c)
                                                                                 #4  0x00007f384f63fcbb n/a (/usr/lib/x86_64-linux-gnu/libpulse.so.0.24.3 + 0x15cbb)
                                                                                 #5  0x00007f38482d0fcf n/a (/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-17.0.so + 0x4bfcf)
                                                                                 #6  0x00007f38482d1e37 n/a (/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-17.0.so + 0x4ce37)
                                                                                 #7  0x00007f384f65339b n/a (/usr/lib/x86_64-linux-gnu/libpulse.so.0.24.3 + 0x2939b)
                                                                                 #8  0x00007f384f653a01 n/a (/usr/lib/x86_64-linux-gnu/libpulse.so.0.24.3 + 0x29a01)
                                                                                 #9  0x00007f3875335056 n/a (/usr/lib/x86_64-linux-gnu/libffi.so.8.1.4 + 0x9056)
                                                                                 #10 0x00007f38055ff180 n/a (n/a + 0x0)
                                                                                 ELF object binary architecture: AMD x86-64
Sep 03 11:34:45 workstation.internal.home.domain.tld abrt-server[268455]: Unsupported container technology
Sep 03 11:34:45 workstation.internal.home.domain.tld abrt-server[268455]: Lock file '.lock' was locked by process 268458, but it crashed?
Sep 03 11:34:45 workstation.internal.home.domain.tld systemd[1]: [email protected]: Deactivated successfully.
Sep 03 11:34:45 workstation.internal.home.domain.tld audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@5-268447-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 03 11:34:45 workstation.internal.home.domain.tld systemd[1]: [email protected]: Consumed 2.750s CPU time.
Sep 03 11:34:45 workstation.internal.home.domain.tld audit: BPF prog-id=144 op=UNLOAD
Sep 03 11:34:45 workstation.internal.home.domain.tld audit: BPF prog-id=143 op=UNLOAD
Sep 03 11:34:45 workstation.internal.home.domain.tld audit: BPF prog-id=142 op=UNLOAD
Sep 03 11:34:45 workstation.internal.home.domain.tld com.core447.StreamController.desktop[267786]: /app/bin/launch.sh: line 3:     3 Segmentation fault      (core dumped) python3 /app/bin/StreamController/main.py "$@"
Sep 03 11:34:45 workstation.internal.home.domain.tld systemd[2200]: app-flatpak-com.core447.StreamController-267765.scope: Consumed 10.315s CPU time.
Sep 03 11:34:46 workstation.internal.home.domain.tld abrt-server[268455]: Error: No segments found in coredump './coredump'
Sep 03 11:34:47 workstation.internal.home.domain.tld abrt-server[268455]: Can't open file 'core_backtrace' for reading: No such file or directory
Sep 03 11:34:47 workstation.internal.home.domain.tld abrt-applet[2859]: g_app_info_should_show: assertion 'G_IS_APP_INFO (appinfo)' failed
Sep 03 11:34:47 workstation.internal.home.domain.tld abrt-notification[268539]: [🡕] Process 267787 (python3.11) crashed in ??()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions