eneshecan / whatsapp-for-linux

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
996 stars 101 forks source link

Notification sound repeating forever #284

Open amarantex64 opened 1 year ago

amarantex64 commented 1 year ago

Description In version 1.6.2 there is a bug with the notification sound repeating forever until you close the app.

Environment

Switch123456789 commented 1 year ago

Same here! AUR / Arch / EndeavourOS / Gnome / Pipewire / v 1.6.2

Switch123456789 commented 1 year ago

Since it might be related to this issue: Is this expected behavior?

Screenshot from 2023-04-14 00-34-37

eneshecan commented 1 year ago

I think that is normal because of the nature of WebKit (generally browsers) and WhatsApp web. Normally, 3 or 4 streams are okay and that might be related because there are too many and some of them could be got stuck.

Also, I cannot reproduce the issue so far, so I will try again.

mabequinho commented 1 year ago

Same issue here, Fedora copr and OpenSUSE's.

eneshecan commented 1 year ago

Could you guys please try to see if the application prints anything when that happens? You can simply run it from the terminal.

Switch123456789 commented 1 year ago

@eneshecan I am on it for a few days now but couldn't catch it happening yet (I don't use whatsapp much). I might do some testing with a friend if I have an opportunity.

Switch123456789 commented 1 year ago

Hey, I just wanna add some additional infos that might be important.

  1. I recently ended up with this after having the client running for a while, I guess it spawns a new one whenever I play audio-files (purple icon) that were sent or received in WAFL but it doesn't "despawn" it?

Screenshot from 2023-04-18 01-16-15

  1. These are some logs I got right after I started WAFL, not sure if this means anything important.
[switch@DESKTOP ~]$ whatsapp-for-linux 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: ** (whatsapp-for-linux:4012): WARNING **: 16:43:39.817: Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: ** (whatsapp-for-linux:4012): WARNING **: 16:43:39.817: Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: ** (whatsapp-for-linux:4012): WARNING **: 16:43:39.817: Error loading plugin: libaspell.so.15: cannot open shared object file: No such file or directory
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: ** (whatsapp-for-linux:4012): WARNING **: 16:43:39.818: Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: 
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: SettingMap: Key file does not have key “min-font-size” in group “web”, returning default value: 0
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: SettingMap: Key file does not have key “header-bar” in group “general”, returning default value: 1
Opening in existing browser session.
<13>Apr 26 16:43:39 whatsapp-for-linux[4016]: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
  1. While trying to reproduce the problem I noticed I don't get notification-sounds at all. Maybe it is because I muted the entry when it was stuck in a loop but now I can't see it anymore because it disappears after playing the notification-sound, so I don't have a chance to turn it back on? I don't know!
berserkwarwolf commented 1 year ago

Same here, on Arch. The only way to make it stop is to quit the app and reopen, until it does that again.

eneshecan commented 1 year ago

I did something with a86df29 that might solve the issue. Would be nice to keep an eye on it.

spifory commented 1 year ago

Seems to still be making the sound for me. I've installed the app from the AUR, and I'm on version 1.6.3-1.

eneshecan commented 1 year ago

Seems to still be making the sound for me. I've installed the app from the AUR, and I'm on version 1.6.3-1.

Does it happen always?

spifory commented 1 year ago

Yep, as soon as someone sends me a message and the notification plays, it just continuously plays the sound until I re-open it.

eneshecan commented 1 year ago

I am not sure what is causing. Gotta test with some other account sending me messages. Could be that webkit sending continuous notifications...

ananyo141 commented 1 year ago

Same here, using version 1.6.3

eneshecan commented 1 year ago

Finally, I was able to reproduce it and realized that this is the actual sound that comes from WhatsApp web which is different than the application sound we implemented. However, this seems to be a WebKit bug. The reason we implemented notification sounds was that WhatsApp web notification sounds didn't work at all on Webkit. Now, it still doesn't work but it doesn't stop playing the sound once it starts to work... As a workaround for now, you can try to disable this setting from WhatsApp web settings and use the app's notification sounds. image

heikkiwaan commented 11 months ago

I have the bug also. Gentoo + Guru overlay and Gnome 44.3 Thanks for the suggestion on how to get rid of this sound :) BTW, i always push the refresh button when the sound starts playing..... ;)