theRealCarneiro / pulsemeeter

Replicating voicemeeter routing functionalities in linux with pulseaudio
MIT License
382 stars 20 forks source link

Invalid json grep #113

Open IgLocoXD opened 1 year ago

IgLocoXD commented 1 year ago

Describe the bug ERROR: invalid json grep: warning: stray \ before # grep: warning: stray \ before # grep: warning: stray \ before # [{"id":8936, "device":"alsa_output.usb-Logitech_PRO_X_Wireless_Gaming_Headset-00.analog-stereo", "name":"VLC media player (LibVLC 3.0.17.4)", "icon":"vlc"},{"id":18707, "device":"alsa_output.usb-Logitech_PRO_X_Wireless_Gaming_Headset-00.analog-stereo", "name":"OBS", "icon":"obs"},{"id":18925, "device":"alsa_output.usb-Logitech_PRO_X_Wireless_Gaming_Headset-00.analog-stereo", "name":"Microsoft Edge", "icon":"microsoft-edge"}] invalid json from server App sinks returned an error, audio backend returned error object of type 'bool' has no len() Could not join subscribe_thread (maybe there is none)

To Reproduce Steps to reproduce the behavior:

  1. Install Pulsemeeter
  2. Open it in terminal
  3. See error

Expected behavior Open and use the program..

Desktop (please complete the following information):

misterbridge commented 1 year ago

I've found a thing.

My error was this one:

ERROR: invalid json grep: warning: stray \ before #
[{"id":1, "device":"alsa_output.usb-Logitech_Logitech_G930_Headset-00.analog-stereo", "icon":"google-chrome", "name":"Google Chrome"}]
invalid json from server
App sinks returned an error, audio backend probably crashed. Server will be closed.
Could not join subscribe_thread (maybe there is none)
closing client handler threads...
closing socket
sending exit signal to listener thread, it should exit within 2 seconds...

I suspected my headset to be the cause so I unplugged it, but no, I got this error:

RROR: invalid json grep: warning: stray \ before #
[{"id":1, "device":"alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink", "icon":"google-chrome", "name":"Google Chrome"}]
invalid json from server
App sinks returned an error, audio backend probably crashed. Server will be closed.
Could not join subscribe_thread (maybe there is none)
closing client handler threads...
closing socket
sending exit signal to listener thread, it should exit within 2 seconds...

So I supposed next that it would be for chrome (chromium actually) which was using my input/output. So I closed chrome and bingo, it worked.

I tried for some more tests and closing the tab that was using input/output was enough. 🎉

misterbridge commented 1 year ago

Hum it appears that I have that error without any dump this time :/ (on startup, nothing is running)

ERROR: invalid json grep: warning: stray \ before #
grep: warning: stray \ before #

invalid json from server
App sinks returned an error, audio backend probably crashed. Server will be closed.
Could not join subscribe_thread (maybe there is none)
closing client handler threads...
closing socket
sending exit signal to listener thread, it should exit within 2 seconds...
mxmilkiib commented 1 year ago

I'm getting this too. Running Arch and Pipewire, FWIW.

10:53:53 milk@red:~ 34s % pulsemeeter
ERROR: invalid json grep: warning: stray \ before #
grep: warning: stray \ before #
grep: warning: stray \ before #
[{"id":4685, "device":"alsa_output.usb-AudioQuest_AudioQuest_DragonFly_Cobalt_v1.0_AQDFCB0101032045-00.analog-stereo", "name":"Firefox"},{"id":5791, "device":"alsa_output.usb-AudioQuest_AudioQuest_DragonFly_Cobalt_v1.0_AQDFCB0101032045-00.analog-stereo", "name":"Firefox"},{"id":7198, "device":"alsa_output.usb-AudioQuest_AudioQuest_DragonFly_Cobalt_v1.0_AQDFCB0101032045-00.analog-stereo", "name":"Firefox"}]
invalid json from server
App sinks returned an error, audio backend probably crashed. Server will be closed.
Could not join subscribe_thread (maybe there is none)
closing client handler threads...
closing socket
sending exit signal to listener thread, it should exit within 2 seconds...

10:54:12 milk@red:~ 1 % pulsemeeter
ERROR: invalid json grep: warning: stray \ before #
grep: warning: stray \ before #
grep: warning: stray \ before #
[{"id":4685, "device":"alsa_output.pci-0000_00_1f.3.3.analog-stereo", "name":"Firefox"},{"id":5791, "device":"alsa_output.pci-0000_00_1f.3.3.analog-stereo", "name":"Firefox"},{"id":7198, "device":"alsa_output.pci-0000_00_1f.3.3.analog-stereo", "name":"Firefox"}]
invalid json from server
App sinks returned an error, audio backend probably crashed. Server will be closed.
Could not join subscribe_thread (maybe there is none)
closing client handler threads...
closing socket
sending exit signal to listener thread, it should exit within 2 seconds...
Karsteski commented 8 months ago

I also have this issue, remedied by closing my Firefox tab that had audio output. Pulsemeeter just closes when playing any browser audio.