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
abclution commented 10 months ago

Setting hardware acceleration to "never" (boo) fixes this it seems.

image

Martzy303 commented 10 months ago

Seems to be working now, haven't tried with acceleration activated. I get the notifications in the list, but I don't see the preview like the other notifications, yet I have everything checked in settings.

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

// Have activated acceleration and the preview works, without grey screens for 2 days now, so it seems to be working as it should.

Martzy303 commented 10 months ago

Fixed