Bug 419602 - [information] any time VSCode is running, Latte freezes when openeing programs or cycling virtual desktops
Summary: [information] any time VSCode is running, Latte freezes when openeing program...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: git (master)
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-03 19:40 UTC by holcomb.technical
Modified: 2020-04-21 09:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of my setup. KDE dock at top, Latte on left (1000.55 KB, image/png)
2020-04-03 19:40 UTC, holcomb.technical
Details
Current Layout file (356.13 KB, text/plain)
2020-04-04 18:18 UTC, holcomb.technical
Details
No edit panel for Dock/Panel (140.02 KB, image/png)
2020-04-04 18:28 UTC, holcomb.technical
Details

Note You need to log in before you can comment on or make changes to this bug.
Description holcomb.technical 2020-04-03 19:40:40 UTC
Created attachment 127251 [details]
Screenshot of my setup. KDE dock at top, Latte on left

SUMMARY
Latte 0.7.4 with VSCode 1.43.2

STEPS TO REPRODUCE
1. Latte Dock running on left side, 1 KDE panel at top hosting system tray and clock, 4 virtual desktops.
2. open VSCode, 
3. Switching virtual desktops seems to initiate this behavior, as well as starting additional applications, like Calc
4. The animations of Latte and response become slowed by at least 2 seconds, sometimes even longer.
5. After closing VSCode, Latte immediately begins acting as expected without delays.

OBSERVED RESULT
Latte does not respond for several seconds after #3, CPU heats up and fans come on.

EXPECTED RESULT
No delays in animations or response.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.04
(available in About System)
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5
Kernel Version: 5.3.0-7642-generic
OS Type: 64-bit
Hardware: Intel i7-4710MQ; 16GiB RAM
Latte Dock: 0.7.3
***VSCode***
Version: 1.43.2
Commit: 0ba0ca52957102ca3527cf479571617f0de6ed50
Date: 2020-03-24T07:52:11.516Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.3.0-7642-generic

ADDITIONAL INFORMATION
Comment 1 Michail Vourlakos 2020-04-03 19:43:45 UTC
Latte v0.7.x is not supported any more,
please try at least v0.9.x to check out that still occurs.
Comment 2 holcomb.technical 2020-04-03 20:00:03 UTC
Ugh, yes, I see that I'm behind on versions now! 

The latest I have available to me in my current state is 0.7.4... but I had previously overlooked the kubuntu backports which looks to get me 0.8.9.

The only thing is that backports looks to be a fairly large update for KDE, so I'll review and let you know my result.
Comment 3 Michail Vourlakos 2020-04-03 20:32:12 UTC
(In reply to holcomb.technical from comment #2)
> Ugh, yes, I see that I'm behind on versions now! 
> 
> The latest I have available to me in my current state is 0.7.4... but I had
> previously overlooked the kubuntu backports which looks to get me 0.8.9.
> 
> The only thing is that backports looks to be a fairly large update for KDE,
> so I'll review and let you know my result.

Neither v0.8.x is supported only v0.9.x and greater
Comment 4 holcomb.technical 2020-04-03 20:40:42 UTC
I see. Okay, so do you have a recommended way to get to 0.9.x? I see the Rik Mills - ppa, but it says "Testing" at the top. Should I not worry about using that PPA?
Comment 5 holcomb.technical 2020-04-03 21:39:43 UTC
I realize you said 0.8.9 is not supported. But for full disclosure, the issue remains in 0.8.9.

I'll try the Rick Mills ppa later and see if it's resolved in 0.9.x
Comment 6 holcomb.technical 2020-04-03 23:31:16 UTC
Okay, I've upgraded to 0.9.85 using the "Rick Mills" repo, but I'm still similar behavior. Although, now it seems that the freezing and unresponsiveness is a little less, it's still there.

Again, this is ONLY when VSCode is open. Once I close VSCode, the issue is IMMEDIATELY resolved. And to repeat, I only see this behavior in Latte. KDE docks and other programs are not effected.
Comment 7 Michail Vourlakos 2020-04-04 09:31:38 UTC
1, Please send your latte layout file
2. In my system with VSCode 1.43.1 does not occur
2.1 I just open VSCode, I do not open any projects and no issue is appearing

What probably happens is at some point VSCode starts sending too many X11 signals with no reason. I need to reproduce this in order to check out if this Latte or VSCode responsibility to fix.
Comment 8 holcomb.technical 2020-04-04 18:18:55 UTC
Created attachment 127273 [details]
Current Layout file
Comment 9 holcomb.technical 2020-04-04 18:22:25 UTC
I've attached my layout file... 

Based on what you've said, it sounds like I should delete and re-create my docks... Is there an upgrade path I should make sure to follow in circumstances like this? For example, on doing a major upgrade and there are problems, will exporting, deleting, and then re-importing a configuration remove any invalid configurations?
Comment 10 holcomb.technical 2020-04-04 18:28:28 UTC
Created attachment 127274 [details]
No edit panel for Dock/Panel

LOL, also, FYI...

upgrading to 0.7 to 0.8 was smooth and everything worked after the upgrade. However, when upgrading from 0.8 to 0.9 I've lost the window to edit Dock/Panel settings.
Comment 11 Michail Vourlakos 2020-04-04 18:42:22 UTC
I cant remember from v0.8 to v0.9 any special upgrade issues... If your edit Panel window is not appearing then your v0.9.x installation is not valid.
Comment 12 Michail Vourlakos 2020-04-04 18:43:00 UTC
please contact your distro support and packagers to help you out how to install properly Latte v0.9.x
Comment 13 holcomb.technical 2020-04-04 18:47:10 UTC
I'm thinking I'll be doing an uninstall with purge, and then reinstall...

To make sure I start with a clean slate, can you verify for me where the configuration files are located?
Comment 14 Michail Vourlakos 2020-04-04 18:56:02 UTC
for v0.9.x in ~/.config directory,
for earlier versions I dont remember.

~/.config/lattedockrc <global configuration file>
~/.config/latte <directory containing all your layouts>
Comment 15 holcomb.technical 2020-04-04 19:58:36 UTC
Sorry to report that the issue is still present. I did the remove with purge, removed all configuration files I could find, but still same issue with VSCode.

I'm now on 0.9.85 from the "Rik Mills" ppa which is the documented package on github (https://launchpad.net/~rikmills/+archive/ubuntu/latte-dock). Apparently this ppa is built from source daily. (I also still do not have the "Edit Dock" window) If there is a different way to get the proper release package, I'm not yet seeing it.
Comment 16 Michail Vourlakos 2020-04-04 20:24:57 UTC
(In reply to holcomb.technical from comment #15)
> Sorry to report that the issue is still present. I did the remove with
> purge, removed all configuration files I could find, but still same issue
> with VSCode.
> 
> I'm now on 0.9.85 from the "Rik Mills" ppa which is the documented package
> on github (https://launchpad.net/~rikmills/+archive/ubuntu/latte-dock).
> Apparently this ppa is built from source daily. (I also still do not have
> the "Edit Dock" window) If there is a different way to get the proper
> release package, I'm not yet seeing it.

You have to contact the packager and get information for its requirements.
Comment 17 holcomb.technical 2020-04-04 20:39:55 UTC
Sorry for taking this off topic... So back to the matter at hand. 

All versions of Latte seen to be affected by this VSCode issue, including the latest. My next test will be to try purging VSCode and see if there is some odd setting on that side.
Comment 18 holcomb.technical 2020-04-18 23:30:57 UTC
Hello again!

I opened a ticket over at the github vscode issue tracker... looks like this is very likely on the vscode side. So just wanted to give you an update, and a reference to the related vscode bug.

https://github.com/microsoft/vscode/issues/94651#issuecomment-610743106
Comment 19 Michail Vourlakos 2020-04-18 23:40:08 UTC
(In reply to holcomb.technical from comment #18)
> Hello again!
> 
> I opened a ticket over at the github vscode issue tracker... looks like this
> is very likely on the vscode side. So just wanted to give you an update, and
> a reference to the related vscode bug.
> 
> https://github.com/microsoft/vscode/issues/94651#issuecomment-610743106

Really nice! Thank you very much!
It is very good to have a reference!