Giter VIP home page Giter VIP logo

Comments (2)

yurenchen000 avatar yurenchen000 commented on June 12, 2024

Dig & Reproduce method

// this bothered me for a while, finally I found it

  1. monit syslog by tail -f /var/log/syslog

  2. gnome session lock (Ctrl+L) & unlock.
    OR Ctrl+Alt+F1 & login,
    OR hibernate & wakeup.
    OR extensions disable & enable.
    // trig disable(), enable(), leak callback

  3. open some window,
    OR close some window.
    // trig leaked callback of window-added window-removed
    .
    then error log occur in syslog


// some one never poweroff system (always hibernate), the syslog size growing fast.
// error effect (callback leak) accumulate at each session unlock.


avoid

restart gnome-shell by Alt+F2 r Enter
// at each session unlock

source fix

diff --git a/extension.js b/extension.js
index d116a8b..34bfdc1 100644
--- a/extension.js
+++ b/extension.js
@@ -75,10 +75,10 @@ const attachHandlers = () => {
     return () => {
       workspace.disconnect(windowAdded);
       workspace.disconnect(windowRemoved);
-      instance.disconnect(nodeClick);
+      instance.node.disconnect(nodeClick);
     };
   });
-  handlers.concat(workspaceHandlers);
+  handlers.push(...workspaceHandlers);
 };
 
 const detachHandlers = () => {

// Array.concat() return new array, not modify self.

from simply-workspaces.

andyrichardson avatar andyrichardson commented on June 12, 2024

Thanks for opening this, and catching that concat bug. I'll give this a try over the next few days

from simply-workspaces.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.