amanharwara / altus

Desktop client for WhatsApp Web with themes, notifications and multiple account support
GNU General Public License v3.0
488 stars 68 forks source link

Altus needs to be closed and reopened when resuming PC from suspension mode #120

Open maicol07 opened 3 years ago

maicol07 commented 3 years ago

Describe the bug
Altus needs to be closed and reopened when resuming PC from suspension mode

To Reproduce
Steps to reproduce the behavior:

  1. Open Altus and minimize in taskbar
  2. Suspend the PC
  3. Resume PC
  4. After login to Windows, Altus is bugged and you need to close it from app bar and reopen it from taskbar icon

Expected behavior
Should stay close in taskbar

Information:
Altus v4.0.0-beta2

Windows 10

amanharwara commented 3 years ago

Can you tell me what you mean by "Suspend the PC"?

I tried to reproduce this first by locking Windows then unlocking it and second by clicking "Sleep" in the start menu and then re-starting. But I couldn't reproduce this neither of the times.

Would it be possible to send a screen recording of when Altus is bugged and what you do after that? You can use ScreenToGif to record it, in case you don't know how to.

maicol07 commented 3 years ago

I think that this is an electron issue since also Discord has this issue.

Basically, when Windows wakes up from sleep/suspension the electron app freezes and no action can be done except reopening the app from the taskbar which unfreezes it.

Reference: https://github.com/tessel/node-usb/issues/220

amanharwara commented 3 years ago

Huh, that's a weird bug. I wasn't able to reproduce it, though.

maicol07 commented 3 years ago

It does this sometimes, not all the times I wake up Windows

amanharwara commented 3 years ago

Do you reckon it only happens after a certain amount of time in Sleep mode or is it random?

maicol07 commented 3 years ago

Mmmm... I don't remember how time was passed... next time it will show up again I'll write here

maicol07 commented 3 years ago

Found another related bug. I've updated Intel UHD Graphics drivers and I have this issue but now the Altus (and Discord) window turned black (the black app in the background is Discord): immagine

Like the original, reopening the Electron app from the taskbar fixes it.

amanharwara commented 3 years ago

Probably a bug with Electron itself.

amanharwara commented 3 years ago

Have you checked to see whether this still happens?

maicol07 commented 3 years ago

Yes. This bug also happens when attaching a second screen

amanharwara commented 3 years ago

Is it Altus only or other Electron apps as well?

maicol07 commented 3 years ago

No. Even Discord has the same issue

amanharwara commented 2 years ago

@maicol07 Does this issue still occur? (Test with latest version if you can)

maicol07 commented 2 years ago

I don't know. I'm not using Altus anymore since the new WhatsApp Beta app is out. I'll keep this open to see if someone else has this issue