Blanket is broken after latest system update

There is a white-noise app called “Blanket” in the community repo. Since the latest Manjaro system update it doesn’t work. And neither does blanket-git from AUR. (But the flatpak version still works.)
It doesn’t display the sound options properly, and it doesn’t play.
This is what I get when I run it in terminal

blanket                                         ✔ 
/usr/share/blanket/blanket/sound.py:86: Warning: g_object_setv: assertion 'G_IS_OBJECT (object)' failed
  self.set_volume(0)
/usr/share/blanket/blanket/sound.py:89: Warning: g_object_setv: assertion 'G_IS_OBJECT (object)' failed
  self.set_uri(self.sound.uri)
/usr/share/blanket/blanket/sound.py:94: Warning: g_object_get_property: assertion 'G_IS_OBJECT (object)' failed
  self.pipeline = self.get_pipeline()
Traceback (most recent call last):
  File "/usr/share/blanket/blanket/widgets.py", line 209, in _create_sound_widget
    widget = SoundRow(sound, self.model)
  File "/usr/share/blanket/blanket/widgets.py", line 70, in __init__
    self.player = SoundPlayer(self.sound)
  File "/usr/share/blanket/blanket/sound.py", line 95, in __init__
    bus = self.pipeline.get_bus()
AttributeError: 'NoneType' object has no attribute 'get_bus'
/usr/share/blanket/blanket/widgets.py:206: Warning: g_object_is_floating: assertion 'G_IS_OBJECT (object)' failed
  self.model.append(sound)

my system info

inxi -F                                         ✔ 
System:
  Host: shmuel-manjaro Kernel: 5.16.11-2-MANJARO x86_64
    bits: 64 Desktop: KDE Plasma 5.24.2 Distro: Manjaro Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B365M-A
    v: Rev X.0x serial: <superuser required>
    UEFI: American Megatrends v: 1203 date: 10/10/2019
CPU:
  Info: 8-core model: Intel Core i7-9700 bits: 64 type: MCP
    cache: L2: 2 MiB
  Speed (MHz): avg: 800 min/max: 800/4700 cores: 1: 800
    2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630]
    driver: i915 v: kernel
  Device-2: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 1.21.1.3 driver: X:
    loaded: modesetting gpu: i915 resolution:
    1: 1920x1080~120Hz 2: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    v: 4.6 Mesa 21.3.7
Audio:
  Device-1: Intel 200 Series PCH HD Audio
    driver: snd_hda_intel
  Device-2: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo
  Sound Server-1: ALSA v: k5.16.11-2-MANJARO running: yes
  Sound Server-2: PulseAudio v: 15.0 running: yes
  Sound Server-3: PipeWire v: 0.3.47 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit
  Ethernet
    driver: r8169
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full
    mac: a8:5e:45:e2:87:3c
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI
  mode)
    type: USB driver: btusb
  Report: rfkill ID: hci0 state: up
    address: see --recommends
Drives:
  Local Storage: total: 2.26 TiB used: 694.47 GiB (30.1%)
  ID-1: /dev/sda vendor: Kingston model: SA400S37480G
    size: 447.13 GiB
  ID-2: /dev/sdb vendor: Toshiba model: HDWD120
    size: 1.82 TiB
Partition:
  ID-1: / size: 66.76 GiB used: 22.22 GiB (33.3%) fs: ext4
    dev: /dev/sda8
  ID-2: /boot/efi size: 96 MiB used: 36.9 MiB (38.5%)
    fs: vfat dev: /dev/sda2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 275 Uptime: 43m Memory: 15.49 GiB
  used: 8.08 GiB (52.1%) Shell: Zsh inxi: 3.3.13

Try downgrading gstreamer to 1.18.5. See github issue:

1 Like

That does sound like the right solution, but I don’t seem to have an older version of gstreamer in /var/cache/pacman maybe because my Manjaro installation is relatively fresh.
So I think I will just use the flatpak version of Blanket for now.

If blanket is failing - this is most likely a general issue - and should be reported upstream to to blanket devs.

If you only need white noise you could use SoX

SoX Noise Generation – CloudACM

These examples output noise types for a duration of 1 hour each.

play -n synth 60:00 whitenoise
play -n synth 60:00 pinknoise
play -n synth 60:00 brownnoise