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

Visualiser not displaying bars #411

Open
gibranlp opened this issue Jan 11, 2025 · 10 comments
Open

Visualiser not displaying bars #411

gibranlp opened this issue Jan 11, 2025 · 10 comments

Comments

@gibranlp
Copy link

Hey man, im having this issue where everything seems fine but the Visualiser Widget is not displaying any bars on it:

Uploading area_screenshot_22.png…

Configuration:

widget.Visualiser(
      background="#000000",
      bar_colour="#ffffff",
      width=300,
      ),

Cava is installed:

 ~ whereis cava
cava: /usr/bin/cava

Output of ps aux | grep cava:

gibranlp   77816  0.1  0.0 112744 13552 ?        Sl   14:16   0:02 /usr/bin/cava -p /tmp/tmp3360vcfc
gibranlp  129359  0.4  0.0 112636 13292 ?        Sl   14:45   0:00 /usr/bin/cava -p /tmp/tmpc6tq7bbk
gibranlp  129360  0.2  0.2  48776 33312 ?        S    14:45   0:00 /usr/bin/python /usr/lib/python3.13/site-packages/qtile_extras/resources/visualiser/cava_draw.py --width 100 --height 20 --bars 8 --spacing 2 --pipe /tmp/cava.pipe --background #130A13
gibranlp  132023  0.0  0.0   6640  4304 pts/3    S+   14:48   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox --exclude-dir=.venv --exclude-dir=venv cava
 ~ qtile cmd-obj -o widget visualiser -f eval -a "self._procs_started"
(True, 'True')

Also if i run cava in a terminal it works normal, and im no getting any errors concerning visualiser on qtile.log

@elParaguayo
Copy link
Owner

I don't think you should have two cava processes running. It's be inclined to kill all of those and restart qtile.

The widget is working fine for me.

@gibranlp
Copy link
Author

I have done that, but still the widget is not displaying any bars =(

gibranlp  343004  2.9  0.0 112756 13704 ?        Sl   16:58   0:00 /usr/bin/cava -p /tmp/tmpcl8sfyh0
gibranlp  343005  1.6  0.2  47776 33432 ?        S    16:58   0:00 /usr/bin/python /usr/lib/python3.13/site-packages/qtile_extras/resources/visualiser/cava_draw.py --width 100 --height 20 --bars 8 --spacing 2 --pipe /tmp/cava.pipe --background #12212B
gibranlp  343242  0.0  0.0   6640  4112 pts/1    S+   16:58   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox --exclude-dir=.venv --exclude-dir=venv cava

@elParaguayo
Copy link
Owner

Are there any messages in your log?
Unfortunately, it's very hard to debug this when it's working fine for me.

@gibranlp
Copy link
Author

All i get in my Logs are this over and over but is note related to the visualiser widget i think:

2025-01-24 08:08:27,761 ERROR libqtile core.py:_xpoll():L362 Got an exception in poll loop
Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/libqtile/backend/x11/core.py", line 337, in _xpoll
    self.handle_event(event)
    ~~~~~~~~~~~~~~~~~^^^^^^^
  File "/usr/lib/python3.13/site-packages/libqtile/backend/x11/core.py", line 304, in handle_event
    ret = target(event)
  File "/usr/lib/python3.13/site-packages/libqtile/backend/x11/core.py", line 776, in handle_DestroyNotify
    if self.qtile.current_window is None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/libqtile/command/base.py", line 283, in __getattr__
    raise AttributeError(f"{self.__class__} has no attribute {name}")
AttributeError: <class 'libqtile.core.manager.Qtile'> has no attribute current_window

Have deleted Cava and i reinstalled it via AUR but still nothing showing in the widget is the strangest thing.

@elParaguayo
Copy link
Owner

Unfortunately, that message is completely unrelated.

This is also really hard to debug given that the drawing of the bars is outsourced to an external script.

Does your grep command still return those 3 lines?

@gibranlp
Copy link
Author

im getting this:

gibranlp 1086210 35.0  0.0 112736 13500 ?        Sl   08:46   0:00 /usr/bin/cava -p /tmp/tmpuu9mp5iy
gibranlp 1086211 20.1  0.2  84044 37476 ?        S    08:46   0:00 /usr/bin/python /usr/lib/python3.13/site-packages/qtile_extras/resources/visualiser/cava_draw.py --width 300 --height 20 --bars 30 --spacing 2 --pipe /tmp/cava.pipe --background #1B0F4F
gibranlp 1086233  0.0  0.0   6640  4136 pts/1    S+   08:46   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox --exclude-dir=.venv --exclude-dir=venv cava

@elParaguayo
Copy link
Owner

Can you do cat /tmp/tmpuu9mp5iy so we can check the cava config?

@gibranlp
Copy link
Author

[general]
bars = 10
framerate = 60
[output]
channels = stereo
method = raw
raw_target = /tmp/cava.pipe
bit_format = 8bit

@elParaguayo
Copy link
Owner

What happens if you reduce the frame rate setting?

@gibranlp
Copy link
Author

I have removed all the settings in the widget leaving only the background color but nothing, is still the same, i have another computer with the exact same System, qtile configuration, and the widget works fine.

i also tried downgrading autoconf and autoconf-archive and compiled Cava manually but still.

im running out of ideas

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

2 participants