rbn42 / panon

An Audio Visualizer Widget in KDE Plasma
GNU General Public License v3.0
192 stars 30 forks source link

[BUG] bar1ch decay freezes when sound is turned off. #97

Open ItsLiyua opened 1 year ago

ItsLiyua commented 1 year ago

Desktop (please complete the following information):

Describe the bug After turning off the sound the bar1ch effect decays but after a few seconds the decay gets interrupted before all bars decayed fully. These little things that stay in the air for some time just kinda freeze in place. Once I start playing sound they start to move again.

Any error message shown in the console Please execute the following commands in the console and upload the outputs.

git clone https://github.com/rbn42/panon.git cd panon git submodule update --init

You need to install plasma-sdk to get plasmoidviewer.

plasmoidviewer --applet ./plasmoid/

╭─******@arch-laptop ~/Downloads  
╰─➤  git clone https://github.com/rbn42/panon.git
Cloning into 'panon'...
remote: Enumerating objects: 2701, done.
remote: Counting objects: 100% (228/228), done.
remote: Compressing objects: 100% (113/113), done.
remote: Total 2701 (delta 125), reused 197 (delta 115), pack-reused 2473
Receiving objects: 100% (2701/2701), 438.76 KiB | 452.00 KiB/s, done.
Resolving deltas: 100% (1566/1566), done.
╭─******@arch-laptop ~/Downloads  
╰─➤  cd panon 
╭─******@arch-laptop ~/Downloads/panon  ‹stable› 
╰─➤     git submodule update --init
Submodule 'SoundCard' (https://github.com/bastibe/SoundCard) registered for path 'third_party/SoundCard'
Submodule 'hsluv-glsl' (https://github.com/williammalo/hsluv-glsl) registered for path 'third_party/hsluv-glsl'
Cloning into '/home/******/Downloads/panon/third_party/SoundCard'...
Cloning into '/home/******/Downloads/panon/third_party/hsluv-glsl'...
Submodule path 'third_party/SoundCard': checked out '745771575e56ab4c5ebf7118816e457c8e6b1b3d'
Submodule path 'third_party/hsluv-glsl': checked out '0ca50ad85bd879f2f71bcfda2adaa98049aaaa50'
╭─******@arch-laptop ~/Downloads/panon  ‹stable› 
╰─➤  plasmoidviewer --applet ./plasmoid                                                                                                                                                                                                   1 ↵
QML debugging is enabled. Only use this in a safe environment.
qml: View QML loaded
kf.plasma.quick: Applet preload policy set to 1
Toolbox not loading, toolbox package is either invalid or disabled.
qml: New Containment: ContainmentInterface(0x56205bc0bcb0)
QQuickOpenGLShaderEffect: 'source' does not have a matching property!
QQuickOpenGLShaderEffect: 'source' does not have a matching property!
org.kde.plasma.containmentlayoutmanager: Trying to take space not available BasicAppletContainer_QMLTYPE_149_QML_165(0x56205bc44bd0, parent=0x56205b59a400, geometry=320,240 640x96)
kf.kio.core: Invalid URL: QUrl("")
file:///home/******/Downloads/panon/plasmoid/contents/ui/Spectrum.qml:95:45: QML Image: Unknown error
qml: 
qml: 
org.kde.plasma.containmentlayoutmanager: Trying to take space not available BasicAppletContainer_QMLTYPE_149_QML_165(0x56205bc44bd0, parent=0x56205b59a400, geometry=320,240 640x96)
QQmlEngine::setContextForObject(): Object already has a QQmlContext
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/ConfigurationAppletPage.qml:36:5: QML Loader: Binding loop detected for property "height"
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/ConfigurationAppletPage.qml:36:5: QML Loader: Binding loop detected for property "height"
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/BreadcrumbControl.qml:17:5: Unable to assign [undefined] to QQuickItem*
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/BreadcrumbControl.qml:17:5: Unable to assign [undefined] to QQuickItem*
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/BreadcrumbControl.qml:17:5: Unable to assign [undefined] to QQuickItem*
file:///home/******/Downloads/panon/plasmoid/contents/ui/config/ConfigEffect.qml:11:1: QML ConfigEffect (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredHeight"
file:///home/******/Downloads/panon/plasmoid/contents/ui/config/ConfigEffect.qml:53:9: QML Label: Binding loop detected for property "verticalAlignment"
QProcess: Destroyed while process ("/bin/sh") is still running.
file:///usr/lib/qt/qml/org/kde/kirigami.2/FormLayout.qml:283:9: QML QQuickItem* (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "preferredWidth"
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/ConfigurationAppletPage.qml:36:5: QML Loader: Binding loop detected for property "height"
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/BreadcrumbControl.qml:17:5: Unable to assign [undefined] to QQuickItem*
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/AppletConfiguration.qml:198: TypeError: Cannot read property 'source' of null
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/BreadcrumbControl.qml:17:5: Unable to assign [undefined] to QQuickItem*
file:///usr/lib/qt/qml/org/kde/kirigami.2/private/globaltoolbar/BreadcrumbControl.qml:17:5: Unable to assign [undefined] to QQuickItem*
QProcess: Destroyed while process ("/bin/sh") is still running.
qml: 
qml: Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/******/Downloads/panon/plasmoid/contents/scripts/panon/backend/client.py", line 53, in <module>
    spectrum_source = source.SoundCardSource(spectrum.NUM_CHANNEL, sample_rate, arguments['--device-index'], cfg_fps)
  File "/home/******/Downloads/panon/plasmoid/contents/scripts/panon/backend/source.py", line 113, in __init__
    self.start()
  File "/home/******/Downloads/panon/plasmoid/contents/scripts/panon/backend/source.py", line 172, in start
    stream.__enter__()
  File "/home/******/Downloads/panon/plasmoid/contents/scripts/soundcard/pulseaudio.py", line 638, in __enter__
    if isinstance(self.channels, collections.Iterable):
AttributeError: module 'collections' has no attribute 'Iterable'

QQmlEngine::setContextForObject(): Object already has a QQmlContext
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/ConfigurationAppletPage.qml:36:5: QML Loader: Binding loop detected for property "height"
file:///usr/share/plasma/shells/org.kde.plasma.plasmoidviewershell/contents/configuration/ConfigurationAppletPage.qml:36:5: QML Loader: Binding loop detected for property "height"
        %