GithubHelp home page GithubHelp logo

Comments (17)

Tudmotu avatar Tudmotu commented on May 23, 2024

Thank you for reporting!
Though I will have difficulties debugging this since I don't use wayland :(

from gnome-shell-extension-clipboard-indicator.

harry-cpp avatar harry-cpp commented on May 23, 2024

Though I will have difficulties debugging this since I don't use wayland :(

Point me to the lines which are reading the clipboard, I'll see what I can find.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on May 23, 2024

https://github.com/Tudmotu/gnome-shell-extension-clipboard-indicator/blob/master/extension.js#L247
This function is invoked every couple of seconds, and checks if the clipboard has updated.

from gnome-shell-extension-clipboard-indicator.

harry-cpp avatar harry-cpp commented on May 23, 2024

So, it seems that the "clipboard.get_text" function by itself is causing the lag.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on May 23, 2024

Does your shell freeze every second? Or only when you copy something?

from gnome-shell-extension-clipboard-indicator.

harry-cpp avatar harry-cpp commented on May 23, 2024

Every second.

from gnome-shell-extension-clipboard-indicator.

bulletmark avatar bulletmark commented on May 23, 2024

I'm on Arch which includes GNOME 3.20 in the stock packages now. I tried Wayland today given it is just a simple option on the GDM login window and found everything in my environment seems to work fine except this extension causes gnome-shell to use excessive CPU. This is very easy to see by bringing up a terminal window and running htop while I switch the extension on and off via tweak tool. Doing the same thing under standard Xorg shows no such problem, nor does switching off/on any of my other extensions.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on May 23, 2024

@bulletmark - do you have the same freezing issue as described above, or only the high-cpu?
I must admit I forgot about this issue. :P

I'll try and take a look in the next few days.

from gnome-shell-extension-clipboard-indicator.

bulletmark avatar bulletmark commented on May 23, 2024

Under Wayland, htop shows gnome-shell using about 1% CPU in the quiescent state with little happening. Enable this extension and gnome-shell settles to 10% CPU. Disable it and it settles back to 1% .. etc. Doing the same sequence under Xorg gnome-shell stays at the 1% whether the extension is enabled or not. I had noticed that gnome-shell was laggy which is why I went looking for this issue.

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on May 23, 2024

OK, thanks. There's of course the chance that this is an issue with Gnome and not the extension (the Wayland implementation is still not completely stable). I will investigate it further and will update in here.

from gnome-shell-extension-clipboard-indicator.

harry-cpp avatar harry-cpp commented on May 23, 2024

This got fixed in the newest version of GNOME/Gtk :)

from gnome-shell-extension-clipboard-indicator.

Tudmotu avatar Tudmotu commented on May 23, 2024

Thanks for the update @cra0zy ! :)
@bulletmark - might this be resolved for you as well now?

from gnome-shell-extension-clipboard-indicator.

bulletmark avatar bulletmark commented on May 23, 2024

@Tudmotu I am running up to date Arch and just switched back to Wayland to check this but it is still the same.

PS: later edit: At the time I made this comment Arch was running gnome-shell version 3.20.2.

from gnome-shell-extension-clipboard-indicator.

junrrein avatar junrrein commented on May 23, 2024

I can confirm this still happens under Wayland. I'm running gnome-shell 3.22 under Opensuse Tumbleweed.

from gnome-shell-extension-clipboard-indicator.

bulletmark avatar bulletmark commented on May 23, 2024

Stock Arch updated gnome-shell from 3.20.4 to to 3.22.1 today and I don't see this problem anymore under Wayland.

from gnome-shell-extension-clipboard-indicator.

junrrein avatar junrrein commented on May 23, 2024

gnome-shell 3.22.1 mentions in its changelog:

Fix feedback loop between StClipboard and X11 bridge

which seems directly relevant to the issue.

I'll update once this new version hits Tumbleweed, which could take some days.

from gnome-shell-extension-clipboard-indicator.

junrrein avatar junrrein commented on May 23, 2024

I can confirm, gnome-shell 3.22.1 fixes this issue.

from gnome-shell-extension-clipboard-indicator.

Related Issues (20)

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.