eneshecan / whatsapp-for-linux

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

Blank screen after leaving in background or in tray #330

Closed Martzy303 closed 10 months ago

Martzy303 commented 1 year ago

Description After minimizing or in tray or even leaving in in the background of another window, it's blank screen, to make it work again I need to push the refresh button. What I noticed is that if I have whatsapp on my right half screen let's say, but I have focus on the window on the right side, I can see the new messages, if any, but as soon as I click on the window to reply, it goes white.

To Reproduce Steps to reproduce the behavior:

  1. Open Whatsapp
  2. Minimize in bar or tray or not focus it and wait for a while
  3. Open it again

Expected behavior To work fine as before

Screenshots https://i.imgur.com/NyHbYAg.png

Environment

And this is the log, last line is after 40 mins when I pressed Preferences

~$ whatsapp-for-linux
update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/boot /boot none bind,ro 0 0): permission denied
Gtk-Message: 13:00:28.161: Failed to load module "xapp-gtk3-module"
Gtk-Message: 13:00:28.161: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: 
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: ** (whatsapp-for-linux:829355): WARNING **: 13:00:28.252: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: 
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: ** (whatsapp-for-linux:829355): WARNING **: 13:00:28.252: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: SettingMap: Key file does not have key “min-font-size” in group “web”, returning default value: 0
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: SettingMap: Key file does not have key “zoom-level” in group “general”, returning default value: 1
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: Gtk-Message: 13:00:28.292: Failed to load module "xapp-gtk3-module"
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: Gtk-Message: 13:00:28.292: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: SettingMap: Key file does not have key “header-bar” in group “general”, returning default value: 1
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: 
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: ** (WebKitWebProcess:829469): WARNING **: 13:00:28.538: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: 
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: ** (WebKitWebProcess:829469): WARNING **: 13:00:28.538: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: 
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: ** (WebKitWebProcess:829469): WARNING **: 13:00:28.575: Failed to get atspi registered event listeners: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.468" (uid=1000 pid=829469 comm="/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWeb" label="snap.whatsapp-for-linux.whatsapp-for-linux (enforce)") interface="org.a11y.atspi.Registry" member="GetRegisteredEvents" error name="(unset)" requested_reply="0" destination=":1.1" (uid=1000 pid=2071 comm="/usr/libexec/at-spi2-registryd --use-gnome-session" label="unconfined")
<13>Aug 18 13:00:28 whatsapp-for-linux[829461]: 
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: Cannot connect to server socket err = No such file or directory
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: Cannot connect to server request channel
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: jack server is not running or cannot be started
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: Cannot connect to server socket err = No such file or directory
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: Cannot connect to server request channel
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: jack server is not running or cannot be started
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Aug 18 13:00:46 whatsapp-for-linux[829461]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Aug 18 13:40:21 whatsapp-for-linux[829461]: SettingMap: Key file does not have key “min-font-size” in group “web”, returning default value: 0

And this is when I pressed refresh icon, if it matters

<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: Gtk-Message: 13:42:03.217: Failed to load module "xapp-gtk3-module"
<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: Gtk-Message: 13:42:03.218: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: 
<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: ** (WebKitWebProcess:834329): WARNING **: 13:42:03.434: Could not open /sys/class/dmi/id/chassis_type: Failed to open file “/sys/class/dmi/id/chassis_type”: Permission denied
<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: 
<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: ** (WebKitWebProcess:834329): WARNING **: 13:42:03.434: Could not open /sys/firmware/acpi/pm_profile: Failed to open file “/sys/firmware/acpi/pm_profile”: Permission denied
<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: 
<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: ** (WebKitWebProcess:834329): WARNING **: 13:42:03.436: Failed to get atspi registered event listeners: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.474" (uid=1000 pid=834329 comm="/usr/lib/x86_64-linux-gnu/webkit2gtk-4.0/WebKitWeb" label="snap.whatsapp-for-linux.whatsapp-for-linux (enforce)") interface="org.a11y.atspi.Registry" member="GetRegisteredEvents" error name="(unset)" requested_reply="0" destination=":1.1" (uid=1000 pid=2071 comm="/usr/libexec/at-spi2-registryd --use-gnome-session" label="unconfined")
<13>Aug 18 13:42:03 whatsapp-for-linux[829461]: 
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: Cannot connect to server socket err = No such file or directory
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: Cannot connect to server request channel
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: jack server is not running or cannot be started
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: Cannot connect to server socket err = No such file or directory
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: Cannot connect to server request channel
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: jack server is not running or cannot be started
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
<13>Aug 18 13:42:16 whatsapp-for-linux[829461]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Martzy303 commented 1 year ago

Seems like the problem is only on the Snap package, the Flatpak works just fine

// It actually happened with Flatpak too, just once, not as often as the Snap.

mshs013 commented 1 year ago

It goes blank also in debian 12 flatpak package.

i-am-ecc commented 1 year ago

It happens with the amd64 .deb package as well

Martzy303 commented 1 year ago

It happened just twice today on the Flatpak, at least is not like the Snap package, there if I lost focus of the window it happened every time.

i-am-ecc commented 1 year ago

I tried the downgrade from 1.6.4 to 1.6.3, but the problem still persists. It may be related to WhatsApp Web itself, or something else.

Martzy303 commented 1 year ago

I thought the Flatpak is better, but seems it's the same. It is fine if you don't receive messages, but when you receive a new message and go back to the window, it's blank.

PATRONzzz commented 1 year ago

The same is Flatpack. It started on version 1.6.0, after upgrading to version 1.6.3, the error remained.

Martzy303 commented 1 year ago

The same is Flatpack. It started on version 1.6.0, after upgrading to version 1.6.3, the error remained.

So if I install the Flatpack 1.6.0 all works fine?

AndreasBackx commented 1 year ago

I tried 1.6.0 (36ad461f8d4162414087b4ee80afa60450f0981923f540274af96313f2c3f2b1) on Flatpak and it's also facing the same issue as latest on Snap or Flatpak.

Martzy303 commented 1 year ago

I'm wondering if it's from the WhatsApp or from the app. Let's hope @eneshecan will shed some light on it.

eneshecan commented 1 year ago

Interesting issue. It could be either on WhatsApp web or webkit side. However, I don't have any time these days as I am on vacation...

Martzy303 commented 1 year ago

Interesting issue. It could be either on WhatsApp web or webkit side. However, I don't have any time these days as I am on vacation...

Have fun on your holiday! I will revert to using the browser version until this one is back in business.

facundoo commented 1 year ago

I have same problem. Ubuntu 22.04 - WA 1.6.4 - Chrome 115.0.5790.102 (Build oficial) (64 bits) - Firefox 116.0.3 (64 bits)

Dwahgon commented 1 year ago

At least for me, it's possible to workaround this issue by clicking the reload button on the top left image

Martzy303 commented 1 year ago

At least for me, it's possible to workaround this issue by clicking the reload button on the top left image

@Dwahgon For me it's not, takes too much time to refresh, if I have a conversation it takes ~20s to respond for each message, not fine when you work, maybe for friends, but not for work.

wcota commented 1 year ago

Same problem here using the whatsapp-for-linux AUR package

nipnipj commented 1 year ago

Same. Linux mint 21.2 here. Usually when in background and a message is received.

zafhiel commented 1 year ago

Guys, I can confirm on Manjaro that clicking the 'Update' button fixes the issue temporarily. However, the problem reoccurs every time the app loses focus. Also, each time you click 'Update,' it takes as long as if you were opening the app for the first time. This app is essentially unusable with this bug. I've been using scrcpy as an alternative, but it's not the same. I really like this app, but if this issue persists, I'll sadly have to abandon it.

Martzy303 commented 1 year ago

I'm using the web version until it gets fixed, for me the refresh button it's not good enough, I use it just for work and I can't have pauses between messages of 30 seconds, that's how much it takes to refresh. If it was just for friends and family it was not that big of a deal. Maybe eneshecan will get it fixed soon, when he comes from holiday.

fridrich commented 12 months ago

Interesting issue. It could be either on WhatsApp web or webkit side. However, I don't have any time these days as I am on vacation...

Still on vacation?

eneshecan commented 12 months ago

I've got an Update WhatsApp notification today. After updating it, didn't see the problem so far.

Switch123456789 commented 12 months ago

I am on arch aur gnome 44 and I have the same issue but even if I click the refresh-button the window remains blank. My log looks like this:

<13>Sep 25 18:48:29 whatsapp-for-linux[16141]: src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)
<13>Sep 25 18:48:29 whatsapp-for-linux[16141]: Failed to create GBM buffer of size 1280x720: Invalid argument
<13>Sep 25 18:48:29 whatsapp-for-linux[16141]: src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)
<13>Sep 25 18:48:29 whatsapp-for-linux[16141]: Failed to create GBM buffer of size 1280x720: Invalid argument
<13>Sep 25 18:48:29 whatsapp-for-linux[16141]: src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)
<13>Sep 25 18:48:29 whatsapp-for-linux[16141]: Failed to create GBM buffer of size 1280x720: Invalid argument
<13>Sep 25 18:48:29 whatsapp-for-linux[16141]: Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
nipnipj commented 12 months ago

The issues persist for me.

dCo3lh0 commented 12 months ago

Since i thought the problem was the same related to last NewsFlash RSS Reader issue with webkit, that i had this week, i thought the solution using the environment variable command that solved there maybe would work in whatsapp flatpak as well, i just tried and worked, so here is the solution, go to flatseal, select whatsapp for linux and on the right menu in the "Environment" category, add this exactly Environment Variable for it to work:

WEBKIT_DISABLE_DMABUF_RENDERER=1

now close flatseal and start whatsapp for linux again, it will work without a single doubt, so hope my tip helps you guys.

Switch123456789 commented 12 months ago

According to this project's readme, the proprietary NVIDIA-drivers have issues with the latest version of Webkit2Gtk, this seems to be the cause of our problems.

Quote: "Because the Nvidia proprietary driver does not fully implement DMABUF, it will cause failure to start and crash. Please downgrade or add environment variables to turn off the use of DMABUF /etc/environment (or other places where environment variables are set) WEBKIT_DISABLE_DMABUF_RENDERER=1"

EDIT: I added WEBKIT_DISABLE_DMABUF_RENDERER=1 to /etc/environment and after a restart wal is working fine again. EDIT2: Can confirm it works but still breaks occasionally.

ndias commented 12 months ago

In my case the WEBKIT_DISABLE_DMABUF_RENDERER=1 doesn't solve the problem, I'm running from the terminal like this export WEBKIT_DISABLE_DMABUF_RENDERER=1; whatsapp-for-linux

Switch123456789 commented 12 months ago

@ndias Did you also try what I did?

ndias commented 12 months ago

@ndias Did you also try what I did?

No, but I think it's the same when you put something in /etc/environment it will be set for all users, what I done was set only for my user.

Switch123456789 commented 12 months ago

It would make sense to me that you have to reload your shell or the gpu-drivers or something. I don't think a changed variable get applied to an already active service or driver but that's not my expertise. All I can say is: after a restart it worked for me. But you do you.

Martzy303 commented 12 months ago

EDIT: I added WEBKIT_DISABLE_DMABUF_RENDERER=1 to /etc/environment and after a restart wal is working fine again.

Have tried this, I can receive new messages but after a while goes back to blank screen. Also, if I use the refresh button I get logged out and it asks to pair again, this did not happen before.

AndreasBackx commented 12 months ago

"Because the Nvidia proprietary driver does not fully implement DMABUF, it will cause failure to start and crash. Please downgrade or add environment variables to turn off the use of DMABUF /etc/environment (or other places where environment variables are set) WEBKIT_DISABLE_DMABUF_RENDERER=1"

Having not yet tried your workaround, I do want to mention that I experience this issue on 3 different machines. 2 of which are running on AMD (RX 6800 and U4750) and one is running on Nvidia (RTX 2070 Super afaik) so if the workaround works, it's not an issue limited to Nvidia.

ndias commented 12 months ago

It would make sense to me that you have to reload your shell or the gpu-drivers or something. I don't think a changed variable get applied to an already active service or driver but that's not my expertise. All I can say is: after a restart it worked for me. But you do you.

No, I think the nvidia driver will not care about environment variables, I think this variable is for webkit, that's the reason I run the variable in my local user, and like @AndreasBackx wrote, I think this is not a problem of nvidia, I have the problem in a machine with a nvidia GPU and the same problem in a machine with an Intel GPU

drujd commented 12 months ago

This has nothing to do with Nvidia. I am experiencing this with AMD GPU (running amdgpu driver).

Setting WEBKIT_DISABLE_DMABUF_RENDERER=1 doesn't help.

drujd commented 12 months ago

I think that at least in my case, this is caused by notifications popping up... Disabled notifications and so far no freeze.

dCo3lh0 commented 12 months ago

have you guys updated the dependencies in flatpak for whatsapp for linux? org.freedesktop.Platform.GL.nvidia-535-104-12 org.freedesktop.Platform.GL32.nvidia-535-104-12

in terminal: flatpak install org.freedesktop.Platform.GL.nvidia-535-104-12 org.freedesktop.Platform.GL32.nvidia-535-104-12

now remove the old one (in my case it was 535-104-05): flatpak remove flatpak install org.freedesktop.Platform.GL.nvidia-535-104-05 org.freedesktop.Platform.GL32.nvidia-535-104-05

edit: I'm using the latest Nvidia drivers for linux, if you guys use older versions in official repositories, change for their respective versions

Martzy303 commented 12 months ago

I had nvidia 525, changed to 535 now. Have also installed the dependencies 535-104-12, but I can't remove the old ones.

Have tried to run flatpak remove flatpak install org.freedesktop.Platform.GL.nvidia-535-104-05 org.freedesktop.Platform.GL32.nvidia-535-104-05

And I get Warning: flatpak is not installed Warning: install is not installed Found installed ref ‘runtime/org.freedesktop.Platform.GL.nvidia-535-104-12/x86_64/1.4’ (system). Is this correct? [Y/n]:

Yet in the Update Manager I can see an update for it

https://i.imgur.com/indxKgK.png

I think that at least in my case, this is caused by notifications popping up... Disabled notifications and so far no freeze.

Have also tried, will test.

dCo3lh0 commented 11 months ago

@Martzy303 execute the command "nvidia-smi", it will inform the exact number into which version your nvidia driver is installed, now take the flatpak install command and change the numbers to the version into which is installed, now lets go to remove unused flatpaks, since you dont know which flatpak is taking space, take a look at this tutorial here:

https://www.linuxuprising.com/2019/02/how-to-remove-unused-flatpak-runtimes.html

Edit: Resuming just execute this command here:

flatpak uninstall --unused

Martzy303 commented 11 months ago

Have tried disabling notifications and it seems to be working.

I'm using 535.104.05, also it sais in the Driver Manager also, just checked now, there is no option for 535-104-12. For you notifications work with 535-104-12?

:~$ nvidia-smi
Wed Sep 27 20:41:55 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.104.05             Driver Version: 535.104.05   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off | 00000000:01:00.0  On |                  N/A |
| N/A   42C    P0              22W /  80W |    138MiB /  6144MiB |     36%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1369      G   /usr/lib/xorg/Xorg                          133MiB |
+---------------------------------------------------------------------------------------+
:~$ flatpak uninstall --unused

These runtimes in installation 'system' are pinned and won't be removed; see flatpak-pin(1):
  runtime/org.freedesktop.Platform.GL.nvidia-535-104-12/x86_64/1.4
  runtime/org.freedesktop.Platform.GL32.nvidia-535-104-12/x86_64/1.4
  runtime/org.gtk.Gtk3theme.Mint-Y-Dark-Blue/x86_64/3.22
Nothing unused to uninstall
dCo3lh0 commented 11 months ago

Im using LMDE 5 in the moment, in a few days will update to LMDE 6 based on Debian 12, and i do use the official repository of drivers from Nvidia (only available till debian 11) which in the moment is on 535.104.12, i do use a RTX 2060 GPU. Anyways, see if you dont have any further update for your drivers, if there isn't any newer them dont install the version 104.12 i've installed, install the 535.104.05 which is for your current nvidia driver, it needs to be the exact same version so:

uninstall: flatpak remove org.freedesktop.Platform.GL.nvidia-535-104-12 org.freedesktop.Platform.GL32.nvidia-535-104-12

install: flatpak install org.freedesktop.Platform.GL.nvidia-535-104-05 org.freedesktop.Platform.GL32.nvidia-535-104-05

thats the end for me here, hope it helps you now.

the-solipsist commented 11 months ago

I'm having the same issue. I just wanted to add that the dmesg error I'm getting is:

[Thu Sep 28 05:36:33 2023] WebKitWebProces[105317]: segfault at 4 ip 00007f9c227b35cf sp 00007ffc8ca17fe0 error 4 in libwebkit2gtk-4.0.so.37.67.3[7f9c22316000+2d8b000] likely on CPU 3 (core 3, socket 0)
[Thu Sep 28 05:36:33 2023] Code: 5c 41 5d 41 5e 41 5f 5d c3 e8 6d d9 8e 02 cc cc cc cc cc cc cc cc cc cc cc cc cc 41 57 41 56 41 55 41 54 53 49 89 f6 48 89 fb <4c> 8b 7e 04 48 8b 46 20 4c 8b 60 10 4d 89 fd
 49 c1 ed 20 31 ff 44

This is what it says when I start it from the terminal:

<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: ** (whatsapp-for-linux:20958): WARNING **: 14:07:17.531: Error loading plugin: libaspell.so.15: cannot open shared object file: No such file or directory
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: ** (whatsapp-for-linux:20958): WARNING 
**: 14:07:17.531: Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: ** (whatsapp-for-linux:20958): WARNING **: 14:07:17.532: Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: ** (whatsapp-for-linux:20958): WARNING **: 14:07:17.532: Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “min-font-size” in group “web”, returning default value: 0
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “close-to-tray” in group “general”, returning default value: 0
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “start-in-tray” in group “general”, returning default value: 0
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “start-minimized” in group “general”, returning default value: 0
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: SettingMap: Key file does not have group “appearance”, returning default value: 0
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: 
<13>Sep 27 14:07:17 whatsapp-for-linux[20964]: (whatsapp-for-linux:20958): Gtk-CRITICAL **: 14:07:17.745: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
<13>Sep 27 14:18:01 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “start-in-tray” in group “general”, returning default value: 0
<13>Sep 27 14:18:01 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “start-minimized” in group “general”, returning default value: 0
<13>Sep 27 14:18:01 whatsapp-for-linux[20964]: SettingMap: Key file does not have group “appearance”, returning default value: 0
<13>Sep 27 14:18:01 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “min-font-size” in group “web”, returning default value: 0
<13>Sep 27 16:11:33 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “start-in-tray” in group “general”, returning default value: 0
<13>Sep 27 16:11:33 whatsapp-for-linux[20964]: SettingMap: Key file does not have key “start-minimized” in group “general”, returning default value: 0
<13>Sep 27 16:11:33 whatsapp-for-linux[20964]: SettingMap: Key file does not have group “appearance”, returning default value: 0
Martzy303 commented 11 months ago

For me it works fine with notifications disabled, it's not ideal, but at least it is working. Until it properly gets fixed, I'll keep an eye on my phone for notifications and reply on the PC.

dCo3lh0 commented 11 months ago

@the-solipsist maybe missing libaspell libnuspell libhspell and libvoikko libs? dont know which distro you use, but search in your package manager for those libs, install it and try running again.

the-solipsist commented 11 months ago

@the-solipsist maybe missing libaspell libnuspell libhspell and libvoikko libs?

All four of those are for spelling / grammar features. They shouldn't have any impact at all on screen rendering.

Martzy303 commented 11 months ago

@dCo3lh0 I got an update to 535-113-01, did flatpak install org.freedesktop.Platform.GL.nvidia-535-111-01 org.freedesktop.Platform.GL32.nvidia-535-113-01 and flatpak remove flatpak install org.freedesktop.Platform.GL.nvidia-535-104-05 org.freedesktop.Platform.GL32.nvidia-535-104-05

When I run flatpak uninstall --unused

These runtimes in installation 'system' are pinned and won't be removed; see flatpak-pin(1):
  runtime/org.freedesktop.Platform.GL.nvidia-535-113-01/x86_64/1.4
  runtime/org.freedesktop.Platform.GL32.nvidia-535-113-01/x86_64/1.4
  runtime/org.gtk.Gtk3theme.Mint-Y-Dark-Blue/x86_64/3.22
Nothing unused to uninstall

Does this mean they are not used, if they show here? Do they need to be activated or something?

// Have activated notifications again to see if it got fixed and it didn't.

codevski commented 11 months ago

In my case the WEBKIT_DISABLE_DMABUF_RENDERER=1 doesn't solve the problem, I'm running from the terminal like this export WEBKIT_DISABLE_DMABUF_RENDERER=1; whatsapp-for-linux

This worked for me...I guess a temp solution for now

GamzeeRakoon commented 11 months ago

According to this project's readme, the proprietary NVIDIA-drivers have issues with the latest version of Webkit2Gtk, this seems to be the cause of our problems.

Quote: "Because the Nvidia proprietary driver does not fully implement DMABUF, it will cause failure to start and crash. Please downgrade or add environment variables to turn off the use of DMABUF /etc/environment (or other places where environment variables are set) WEBKIT_DISABLE_DMABUF_RENDERER=1"

EDIT: I added WEBKIT_DISABLE_DMABUF_RENDERER=1 to /etc/environment and after a restart wal is working ~fine~ again. EDIT2: Can confirm it works but still breaks occasionally.

this happens on my laptop and pc which both are fully amd so this isnt just a nvidia problem

marracuene commented 11 months ago

Also getting this in last few months, after a long while of stable usage.

Distro: Linux Mint 20.3 Kernel: 5.4.0-162-generic Package: snap Version: 1.6.4 Desktop Environment or Window Manager: Cinnamon Webkit: libwebkit2gtk-4.0-37:amd64 2.38.6-0ubuntu0.20.04.1

Tried the following workarounds without success:

Then I tried the below and it seems to be working so far (3 days and counting, and I have suspended and rewoken the laptop without any grey screens):

kmorkah commented 11 months ago

Also getting this in last few months, after a long while of stable usage.

Distro: Linux Mint 20.3 Kernel: 5.4.0-162-generic Package: snap Version: 1.6.4 Desktop Environment or Window Manager: Cinnamon Webkit: libwebkit2gtk-4.0-37:amd64 2.38.6-0ubuntu0.20.04.1

Tried the following workarounds without success:

  • disabling notifications via hamburger menu > Preferences
  • WEBKIT_DISABLE_DMABUF_RENDERER=1

Then I tried the below and it seems to be working so far (6h and counting, and I have suspended and rewoken the laptop without any grey screens):

  • disabling notifications via Whatsapp Web menu > Settings > notifications

I set it up, but the results are still the same.

Distro: Pop!OS 22.04 LTS Kernel: 6.5.6-76060506-generic Laptop : Lenovo ThinkPad P14s Gen 2a Process : AMD® Ryzen 7 pro 5850u with radeon graphics × 16

anishjp commented 11 months ago

Even the one available in Copr repo (https://copr.fedorainfracloud.org/coprs/nunodias/whatsapp-for-linux/) also has the same problem.

deltalejo commented 10 months ago

I was experiencing this issue until today, when a notification appeared on the app to update Whatsapp, and after doing the update I haven't experienced the issue so far.