[Bug 1869568] Re: Unlock takes a long time
** Package changed: gnome-shell (Ubuntu) => gnome-shell-extension-dash- to-panel (Ubuntu) ** Changed in: gnome-shell-extension-dash-to-panel (Ubuntu) Status: Incomplete => New ** Also affects: gnome-shell-extension-dash-to-panel via https://github.com/home-sweet-gnome/dash-to-panel/issues/959 Importance: Unknown Status: Unknown ** Tags added: leak -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-shell-extension-dash-to-panel/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
See https://github.com/home-sweet-gnome/dash-to-panel/issues/959, wherein I discover that dash-to-panel seems to be the worst offender in terms of leaking handlers, but there's a lower-grade steady leak anyway, which might bear looking at. ** Bug watch added: github.com/home-sweet-gnome/dash-to-panel/issues #959 https://github.com/home-sweet-gnome/dash-to-panel/issues/959 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
> see if something's leaking registered handlers. It looks like clutter handlers are stored in two different hash tables: g_handlers and g_handler_list_bsa_ht. On the PC that's really slow, g_handlers.size = 8388608 (that's ~8M); on the PC that's not, g_handlers.size = 65536 (~65K). So, yeah, something's leaking, afaict. Gonna see if the hash table entries (signal_id, instance, closure) point to anything that gives me a clue. Given that the extensions are written mostly in JS, this is gonna be all kinds of interesting... -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
This is proving to be really difficult to reproduce -- it's getting slower (but really slowly) on my spare PC. The memory use for gnome- shell is, essentially, static. So: I sampled some perf data from the PC where it consistently happens and threw up a flame graph. It spends a bunch of time in 'clutter_actor_destroy' -> 'destroy_closure_array' -> 'handler_lookup'. This suggests to me that some extension or other is registering a handler for something multiple times, and not cleaning it up, which means it takes longer and longer to iterate through the list of handlers. I'm gonna have a rummage through the source code to see which function adds handlers, and then I'll attach a debugger to it to see if something's leaking registered handlers. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
That should say "With ALL extensions uninstalled..." -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
With ALL extensions, it doesn't get slower. When it was getting slower, I had the standard 'gnome-shell-extensions' package installed. I'm going to reinstall it and see if that reproduces the problem. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
If the problem gets worse over time then it might be memory related. Please run: ps auxw | grep gnome-shell and tell us what you see when it is (a) fast and (b) slow. If that's the problem then it is likely an extension is to blame. So make sure you have uninstalled ALL of them, at least temporarily as a test. ** Tags added: nvidia -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
Update: my spare PC is definitely getting slower at unlocking, but (possibly because I'm not using it as much) not as quickly. Are there any logs/debug steps you want me to run on it? I know enough gdb to be dangerous, if that helps. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
I've also removed gnome-shell-extension-move-clock, gnome-shell- extension-autohidetopbar and gnome-shell-extension-taskbar. > I'm not sure what it means that I have an extension listed in both locations. I suspect that either I've installed it explicitly, or extensions.gnome.org installed an update. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
Some investigation and notes (and apologies for the noise; I need somewhere to take notes): I have the following extensions in /usr/share/gnome-shell/extensions: alternate-...@gnome-shell-extensions.gcampax.github.com/ apps-m...@gnome-shell-extensions.gcampax.github.com/ auto-move-wind...@gnome-shell-extensions.gcampax.github.com/ dash-to-d...@micxgx.gmail.com/ dash-to-pa...@jderose9.github.com/ drive-m...@gnome-shell-extensions.gcampax.github.com/ hidetop...@mathieu.bidon.ca/ launch-new-insta...@gnome-shell-extensions.gcampax.github.com/ mediapla...@patapon.info/ move_cl...@jonathan.bluemosh.com/ multi-monitors-add-on@spin83/ native-window-placem...@gnome-shell-extensions.gcampax.github.com/ pixel-sa...@deadalnix.me/ places-m...@gnome-shell-extensions.gcampax.github.com/ screenshot-window-si...@gnome-shell-extensions.gcampax.github.com/ TaskBar@zpydr/ ubuntu-appindicat...@ubuntu.com/ ubuntu-d...@ubuntu.com/ user-th...@gnome-shell-extensions.gcampax.github.com/ window-l...@gnome-shell-extensions.gcampax.github.com/ windowsnaviga...@gnome-shell-extensions.gcampax.github.com/ workspace-indica...@gnome-shell-extensions.gcampax.github.com/ I have the following extensions installed via apt (reason, where known): gnome-shell-extension-appindicator (ubuntu-desktop) gnome-shell-extension-autohidetopbar (explicit) gnome-shell-extension-dashtodock (explicit) gnome-shell-extension-dash-to-panel (explicit) gnome-shell-extension-mediaplayer (explicit) gnome-shell-extension-move-clock (explicit) gnome-shell-extension-multi-monitors (explicit) gnome-shell-extension-pixelsaver (explicit) gnome-shell-extensions (explicit) gnome-shell-extension-taskbar (explicit) gnome-shell-extension-ubuntu-dock (ubuntu-desktop) ubuntu-session (ubuntu-desktop) I'm trying to figure out which directory maps to which .deb package, and then I'll remove the extensions that I'm not using. If that solves the problem: job done. I also have the following extensions installed in ~/.local/share/gnome- shell/extensions: alternate-...@gnome-shell-extensions.gcampax.github.com/ dash-to-pa...@jderose9.github.com/ multi-monitors-add-on@spin83/ audio-output-switcher@anduchs/ hidetop...@mathieu.bidon.ca/ I'm not sure what it means that I have an extension listed in both locations. I've removed the dashtodock and pixelsaver extensions; I wasn't using them. I'll remove some more unused extensions if that doesn't solve the problem. Concurrently, I'll leave my other PC nearly stock and I'll lock/unlock it a bunch of times over the next week or so and see if it gets slower. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
I can't do that on my primary PC -- I'm *using* those extensions. I'll set up my spare PC the same way (with the extensions) and see if I can repro. Then I'll disable them and see if the problem goes away (or not). Gonna take me about a week, though, since this only happens after a bunch of locking and unlocking. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1869568] Re: Unlock takes a long time
Since we find so many bugs are caused by extensions we first need you to uninstall all of these: 'audio-output-switcher@anduchs', 'alternate-...@gnome-shell-extensions.gcampax.github.com', 'multi-monitors-add-on@spin83', 'dash-to-pa...@jderose9.github.com' Be sure to uninstall them and don't just disable them because a disabled extension can still interfere with the shell. ** Changed in: gnome-shell (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-shell in Ubuntu. https://bugs.launchpad.net/bugs/1869568 Title: Unlock takes a long time To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1869568/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs