ferdium / ferdium-app

All your services in one place, built by the community
https://ferdium.org
Apache License 2.0
2.79k stars 168 forks source link

Bug: Whatsapp causes ferdium to freeze if there is no notification system available #671

Open RoryNesbitt opened 1 year ago

RoryNesbitt commented 1 year ago

Avoid duplicates

Ferdium Version

Latest stable, but this has been around for a while

What Operating System are you using?

Other Linux

Operating System Version

EndeavourOS

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

Receive WhatsApp message, Ferdium continues to work as usual

Actual Behavior

Receive WhatsApp message, Ferdium completely freezes with the error message:

libnotify-WARNING **: 14:52:33.659: Failed to connect to proxy

This error stops if you turn off all notifications from WhatsApp, and if you have a notifications program available then it works as expected. It is the same error as appears here, which is how I've tracked down the cause.

Steps to reproduce

Install any version of Ferdium Don't run a notification service Set up the WhatsApp service Wait for someone to want to talk to you

Debug link

No response

Screenshots

No response

Additional information

No response

RoryNesbitt commented 1 year ago

Fixing the notifications on my system does indeed stop the freeze from happening. So can confirm this only happens when there is no notification program available

cino commented 1 year ago

Is this something you also experience in a normal web browser when notifications are not available at your system? We are doing nothing special at the moment but calling the window.Notification API to send it to the system.

RoryNesbitt commented 1 year ago

@cino I haven't had a chance to retest this however the few times I tried it back when ferdium was crashing a lot the browser version seemed completely fine

RoryNesbitt commented 1 year ago

Also, I recently (like yesterday) have an issue with whatsapp making up random numbers of unread notifications when none exist. Just there I had 96 with one real unread message, and when I opened it so my true unread was back to 0 the count changed to 351. This doesn't happen on a browser.

If this is unrelated I can open a new issue for it

icheered commented 1 year ago

@RoryNesbitt I'm also experiencing the random number of notifications issue. Have you opened an issue for this?

RoryNesbitt commented 1 year ago

@RoryNesbitt I'm also experiencing the random number of notifications issue. Have you opened an issue for this?

Not yet. Feel free to go ahead and link it here

ipilcher commented 1 year ago

I am also seeing this.

Can anyone explain what is meant by having a "notification program"? I run KDE Plasma, and other applications don't have any problem popping up notifications in my System Tray.

icheered commented 1 year ago

@ipilcher KDE is a complete desktop environment, meaning that all the 'standard' applications (e.g. sound, Bluetooth, window management, application search bar, etc) are included in the package. It is also possible to build your own desktop environment, but that means manually choosing and installing all packages that you normally take for granted including a notification system.

samyouel commented 11 months ago

Hey. This issue still persists for me, it started lately, some weeks ago. When I load WhatsApp it gets stuck on the loading screen. If I switch the notification option on or off, then WhatsApp loads. After the next reload the same thing happens.

If I create a custom website with WhatsApp it works like a charm. So seems like its the WhatsApp recipe?