Closed bigrand closed 1 year ago
After reinstalling profile-sync-daemon
package, the problem is fixed and I can no longer recreate the problem.
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.
How much RAM does your PC have? See Q4 in the psd manpage.
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?
All depends on the size of your profile, look at the profile size from from psd p
to see how large it is.
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.
I am just speculating ... I do not use WhatsApp.
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.
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%
Yeah, I also have this issue, apparently RuntimeDirectorySize=20% is a workaround.
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.
You get this message when you send a message:
After stopping
psd.service
the problem disappears and you can now send messages without problem.