amanharwara / altus

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

Window freezing for interaction constantly... but I can see new messages arriving in it! #29

Closed hradec closed 5 years ago

hradec commented 5 years ago

This is happening to me constantly. I just installed Altus using the appimage, and it seems to work fine until I add my whatsapp account. After that, the window freezes and I can't click on anything... nothing happens.

Weirdly enough, I see new messages arriving to me... So it seems the UI is updating and running, but I can't interact with it!

By disabling the custom titlebar, I'm able to access the menu (since now its the system window menu). But everything below the menu remains frozen for interaction, either by using the mouse or keyboard!

I'm running Arch Linux, with Deepin desktop.

here a gif of the problem: deepin-screen-recorder_Select area_20190705160027

Here is another example where I actually can interact with the UI while whatsapp is loading... as soon as the whatsapp UI comes up behind the setting window, the UI freezes and I can't interact anymore, not even to close the setting window. deepin-screen-recorder_Select area_20190705160229

Originally posted by @hradec in https://github.com/ShadyThGod/altus/issues/27#issuecomment-508870726

amanharwara commented 5 years ago

This seems to be a very random bug. Because, I've been trying to reproduce this bug on Manjaro but only managed to do it once and I couldn't find out what caused it. If you have any way to reproduce this consistently then please let me know.

hradec commented 5 years ago

Well... for me it happens EVERY SINGLE TIME! I can't use Altus at all..

On Fri, Jul 5, 2019 at 9:44 PM Aman Harwara notifications@github.com wrote:

This seems to be a very random bug. Because, I've been trying to reproduce this bug on Manjaro but only managed to do it once and I couldn't find out what caused it. If you have any way to reproduce this consistently then please let me know.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ShadyThGod/altus/issues/29?email_source=notifications&email_token=AAGE6V6CKQWP2WJKG2RE6TLP6APLVA5CNFSM4H6PA5YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZKSLQY#issuecomment-508896707, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGE6V53GQJ3N3HEMHSAWWTP6APLVANCNFSM4H6PA5YA .

hradec commented 5 years ago

This seems to be a very random bug. Because, I've been trying to reproduce this bug on Manjaro but only managed to do it once and I couldn't find out what caused it. If you have any way to reproduce this consistently then please let me know.

I would suggest you to try on Arch Linux, with Deepin desktop installed instead of Manjaro. Or you can try to install Deepin in Manjaro... but I'm not sure if it works... Manjaro is not a 100% Arch, as far as I known...

hradec commented 5 years ago

I'm trying to find some information about this type of issue with electron/appimage, but no luck so far.

It almost looks like a deadlock when the app shows the whatsapp UI (which I'm guessing it's just the actual web app from whatsapp, correctly?)

I've ran it with a Altus.2.3.2.AppImage.config folder to examine what Altus create, and there's some references inside about chromium... so am I right on guessing Altus is using chromium to show the whatsapp web app?

If so, maybe chromium is not receiving the focus from Altus for some reason...

my 2 cents...

hradec commented 5 years ago

hoo... I'm seeing the same running it inside an x11docker of a debian distro running lxde desktop: image

Since x11docker runs a completely separately x11 server using xephyr, means Altus is running as if it was in debian lxde.

I'm preparing a one-liner for you to run x11docker and try for yourself... I'm wondering if it's going to work for you... which would indicate the problem is Arch with Deepin specific.

hradec commented 5 years ago

Although pretty long, this one liner will run lxde inside a docker container using x11docker

docker pull x11docker/lxde ; mkdir /tmp/altus_test ; x11docker --verbose --user=root --desktop --size 1600x900 -- "-v /tmp/altus_test/:/root/ --privileged --cap-add SYS_ADMIN --cap-add MKNOD --device /dev/fuse" x11docker/lxde /bin/bash -c 'apt -y install libnss3 fuse ; echo deb http://ftp.ca.debian.org/debian/ buster main contrib non-free | tee -a /etc/apt/sources.list ; apt -y update ; apt -y install wget ;  cd ; wget "https://github.com/ShadyThGod/altus/releases/download/2.3.2/Altus.2.3.2.AppImage" ; chmod a+x *.AppImage ; startlxde  & ./*.AppImage'

it will use /tmp/altus_test as home folder, and download the Appimage and run it inside lxde. You should see Altus popping up as soon as lxde loads up!

hradec commented 5 years ago

Ok... I think I figured something new now... In x11docker/lxde, if I add my whatsapp without changing anything in the options (like notification or theme), Altus work as expected!! deepin-screen-recorder_Select area_20190706184743

and then, if I change the theme after it's working like above, this is the result: deepin-screen-recorder_Select area_20190706185413

After that, even if I change the theme back to the default, it always freezes!!!!

So, as long as I just add an account and don't change anything, it works!!

I tested on my normal linux Arch with Deepin, and it also works if I don't change anything! deepin-screen-recorder_Select area_20190706185658 But as you can see at the end of the gif, as soon as I change the theme, it immediately freezes and stay frozen, even after closing and opening again. (even changing the theme back!) The only way to fix it, is delete the ~/.config/altus folder, and re-configure Altus without changing anything!!

Since the start, I have being adding my whatsapp account and immediately setting the dark theme... so that's why it was always freezing for me!!

Hope that helps for you to reproduce the problem and figure out where this bug is... ;) But at least now I can start using it! :) cheers... -H

amanharwara commented 5 years ago

This might have possibly something to do with how the themes/settings are applied. I will look into that as soon as possible.

timonoj commented 5 years ago

Any updates? I've seen recent updates since, but this keeps happening. This issue with the dark theme makes it unusable for many of us. I can't use Altus as it is right now.

amanharwara commented 5 years ago

@timonoj Unfortunately not. I've not been able to recreate this on any of my machines which is making it harder for me to debug this.

timonoj commented 5 years ago

Maybe you can try a VM with KDE? I'm using KDE Neon. Initially it works for a bit with a brand new setup. But it will crash after 10mins, to never work again. I set it with dark mode, it was all working nice and fine...but then somehow it stopped after a bit, and I can't do anything to fix it.

On Sun, 18 Aug 2019 at 21:42, Aman Harwara notifications@github.com wrote:

@timonoj https://github.com/timonoj Unfortunately not. I've not been able to recreate this on any of my machines which is making it harder for me to debug this.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ShadyThGod/altus/issues/29?email_source=notifications&email_token=ACPXB57SUBZBPHTUBQ5OPWLQFFGUXA5CNFSM4H6PA5YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4RAKKI#issuecomment-522323241, or mute the thread https://github.com/notifications/unsubscribe-auth/ACPXB53XXHAZOZWSNKATJJ3QFFGUXANCNFSM4H6PA5YA .

joaodurante commented 5 years ago

I'm facing the same issue. But the window freeze's more frequently and easier, sometimes it starts freezed. I'm using Pop_OS distro.

Update: I tried again and the application freezes forever, even if kill the process and open again, it starts freezed.

Update2: I don't know if this is what cause the problem but I restarted my system and I downloaded and open it again, but this time I don't changed the theme to dark and it working fine. I will try to change the theme to dark and see if that is the problem and report here.

Update3: When I close the program and opened it again, the window has frozen again, even with the default theme.

Update4: I downloaded some older version and it worked fluid for me on version 2.3.2. I don't know why but v2.3.3 and 2.4.0 is always freezing for me.

amanharwara commented 5 years ago

I have just released v1.3.0 which is based of an older version, but with additional changes. This version doesn't have multiple account support, but it does have almost every other feature. These issues shouldn't occur in v1.3.0

joaodurante commented 5 years ago

Hey friend, I tested this version and apparently it's working fine. Made some tests that I did in the others versions and this one doesn't frozen in any time. Thanks

timonoj commented 5 years ago

I also can confirm after a few days of usage, the issue with the theme freezing the window is gone in this older version. All good here! Just on KDE, the tray icon doesn't seem to update if there's new messages. Not sure if that's a feature to be added at a later stage.

Thanks!

amanharwara commented 5 years ago

Should be fixed in v3.0. Please test it out and let me know.

joaodurante commented 5 years ago

Nice, I will test it as soon as possible. Thank you friend

amanharwara commented 5 years ago

Closing this issue as I think the issue is fixed and I haven't gotten any new reports.