xeco23 / WasIstLos

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
1.01k stars 105 forks source link

Application draws blank screen after about half an hour #336

Closed benvantende closed 11 months ago

benvantende commented 1 year ago

Description After running for about half an hour, the content of the app disappears and shows a blank screen. Pressing the reload icon reloads the application.

To Reproduce Steps to reproduce the behaviour:

  1. Open the application
  2. After about half an hour, the window turns blank.
  3. Clicking the reload button, reloads the window

Expected behaviour Expected is that the content of whatsapp remains in the window

Environment

ndias commented 1 year ago

I have the same problem, this happens also when I receive any message. In dmesg I have this when the problem arise "WebKitWebProces[150032]: segfault at 10 ip 00007f2f91b7dbd9 sp 00007ffe2afdc380 error 4 in libwebkit2gtk-4.0.so.37.63.5[7f2f9189a000+21b3000] likely on CPU 1 (core 0, socket 0)"

In my case I'm in Fedora 38 in gnome-shell and I'm using the version 1.6.4 of whatsapp-for-linux

benvantende commented 1 year ago

Ahhh right. I checked dmesg too and I have:

[14120.464750] WebKitWebProces[16030]: segfault at 10 ip 00007f88a9862284 sp 00007ffe8833f808 error 4 in libwebkit2gtk-4.0.so.37.63.5[7f88a94ca000+2b29000] likely on CPU 1 (core 1, socket 0)
[14120.464791] Code: 00 00 48 8b 36 c1 ea 10 66 89 47 0c 48 8b 01 48 89 77 04 48 c7 01 00 00 00 00 88 57 0e 48 89 47 10 c3 0f 1f 40 00 f3 0f 1e fa <48> 8b 47 10 48 8b 40 10 c3 90 66 90 f3 0f 1e fa 41 54 55 48 89 f5
[14679.700252] WebKitWebProces[18142]: segfault at 10 ip 00007f1697662284 sp 00007ffcc83e6748 error 4 in libwebkit2gtk-4.0.so.37.63.5[7f16972ca000+2b29000] likely on CPU 2 (core 2, socket 0)
[14679.700264] Code: 00 00 48 8b 36 c1 ea 10 66 89 47 0c 48 8b 01 48 89 77 04 48 c7 01 00 00 00 00 88 57 0e 48 89 47 10 c3 0f 1f 40 00 f3 0f 1e fa <48> 8b 47 10 48 8b 40 10 c3 90 66 90 f3 0f 1e fa 41 54 55 48 89 f5
[14867.957743] WebKitWebProces[18660]: segfault at 10 ip 00007fb512062284 sp 00007ffe4b113bc8 error 4 in libwebkit2gtk-4.0.so.37.63.5[7fb511cca000+2b29000] likely on CPU 1 (core 1, socket 0)
[14867.957784] Code: 00 00 48 8b 36 c1 ea 10 66 89 47 0c 48 8b 01 48 89 77 04 48 c7 01 00 00 00 00 88 57 0e 48 89 47 10 c3 0f 1f 40 00 f3 0f 1e fa <48> 8b 47 10 48 8b 40 10 c3 90 66 90 f3 0f 1e fa 41 54 55 48 89 f5
[16845.874624] WebKitWebProces[19768]: segfault at 10 ip 00007fb88a062284 sp 00007ffc2f9c5f98 error 4 in libwebkit2gtk-4.0.so.37.63.5[7fb889cca000+2b29000] likely on CPU 0 (core 0, socket 0)
[16845.874665] Code: 00 00 48 8b 36 c1 ea 10 66 89 47 0c 48 8b 01 48 89 77 04 48 c7 01 00 00 00 00 88 57 0e 48 89 47 10 c3 0f 1f 40 00 f3 0f 1e fa <48> 8b 47 10 48 8b 40 10 c3 90 66 90 f3 0f 1e fa 41 54 55 48 89 f5

So same

nipnipj commented 1 year ago

Same. Linux mint 21.2 here.

joehuggans commented 1 year ago

Also seeing this in Ubuntu 22.04.3 LTS with version 1.6.4 of this app from snap

Happens pretty randomly it seems, usually after minimising the window and restoring it, around 70% of the time.

benvantende commented 1 year ago

For me, it does not seem to have anything to do with any user action. It is pretty random. I only used Whatsapp-For-Linux now for maybe two months, but it seems like it might have to do with one of the packages it could be dependent on (I am no expert). From how I remember it, it was stable at first and at some point the blanks started to occur.

xeco23 commented 1 year ago

It's probably related to webkit. However, changing Hardware Acceleration to On Demand in Preferences could solve it.

ndias commented 1 year ago

In my case doesn't matter if the Acceleration is on, off or on demand will always crash

benvantende commented 1 year ago

It's probably related to webkit. However, changing Hardware Acceleration to On Demand in Preferences could solve it.

That fixes it for me, it seems. No blank screens since changing that. Thanks, @eneshecan

nipnipj commented 1 year ago

In my case doesn't matter if the Acceleration is on, off or on demand will always crash

same.

benvantende commented 1 year ago

So after having the On Demand setting for a day it makes the disconnection less likely to occur, but it still happens.

xeco23 commented 1 year ago

See #330 please.

Switch123456789 commented 1 year ago

Take a look at this for a probable cause and workaround.