graysky2 / profile-sync-daemon

Symlinks and syncs browser profile dirs to RAM thus reducing HDD/SDD calls and speeding-up browsers.
https://wiki.archlinux.org/index.php/Profile-sync-daemon
Other
913 stars 88 forks source link

Sending a message on Whatsapp Web logs you out #349

Closed bigrand closed 1 year ago

bigrand commented 1 year ago

You get this message when you send a message:

image

After stopping psd.service the problem disappears and you can now send messages without problem.

bigrand commented 1 year ago

After reinstalling profile-sync-daemon package, the problem is fixed and I can no longer recreate the problem.

bigrand commented 1 year ago

Seems I was mistaken. It's still a problem, a weird one.

After stopping and starting the service constantly and testing it more than a dozen times, it seems that the more you use Whatsapp Web the less likely you will get logged out. At first just sending messages logs you out, but after sending several files, spamming messages, etc. it seems it's "harder" to get logged out.

I never managed to get logged out with the service inactive, every time I got logged out it was while psd.service was active.

graysky2 commented 1 year ago

How much RAM does your PC have? See Q4 in the psd manpage.

bigrand commented 1 year ago

My PC has 4 GBs.

After changing RuntimeDirectorySize from 10% to 20%, it doesn't log me out anymore. Shouldn't 10% of 4 GBs be enough?

graysky2 commented 1 year ago

All depends on the size of your profile, look at the profile size from from psd p to see how large it is.

bigrand commented 1 year ago

Even after uploading, downloading, spamming messages, and loading a dozen chats, it never exceeds 150 MBs, and 10% of 4 GBs should be around 400 MBs.

2023-01-15T11:08:07,898587333-05:00

graysky2 commented 1 year ago

I am just speculating ... I do not use WhatsApp.

bigrand commented 1 year ago

When I opened logind.conf, RuntimeDirectorySize was commented. If it's commented, does it use 10% as default/fallback? I set it back to 10% and it works fine.

graysky2 commented 1 year ago

According the man page:

Alternatively, a numerical percentage suffixed by "%" may be specified, which sets the size limit relative to the amount of physical RAM. Defaults to 10%

To me that means commented uses 10%

ledufff commented 1 year ago

Yeah, I also have this issue, apparently RuntimeDirectorySize=20% is a workaround.

graysky2 commented 1 year ago

I am tempted to close this as not a bug... memory requirements of plugins like whatsapp need to be considered when budgeting memory. Feel free to re-open if you think this is not accurate or if there is something in my code causing the issue.