Comments (17)
Thank you for reporting!
Though I will have difficulties debugging this since I don't use wayland :(
from gnome-shell-extension-clipboard-indicator.
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.
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.
So, it seems that the "clipboard.get_text" function by itself is causing the lag.
from gnome-shell-extension-clipboard-indicator.
Does your shell freeze every second? Or only when you copy something?
from gnome-shell-extension-clipboard-indicator.
Every second.
from gnome-shell-extension-clipboard-indicator.
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.
@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.
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.
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.
This got fixed in the newest version of GNOME/Gtk :)
from gnome-shell-extension-clipboard-indicator.
Thanks for the update @cra0zy ! :)
@bulletmark - might this be resolved for you as well now?
from gnome-shell-extension-clipboard-indicator.
@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.
I can confirm this still happens under Wayland. I'm running gnome-shell 3.22 under Opensuse Tumbleweed.
from gnome-shell-extension-clipboard-indicator.
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.
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.
I can confirm, gnome-shell 3.22.1 fixes this issue.
from gnome-shell-extension-clipboard-indicator.
Related Issues (20)
- Missing `charset=utf-8` in mimetype in registry.txt HOT 7
- Compatibility with Gnome 45.1
- SyntaxError: import declarations may only appear at top level of a module HOT 1
- Question: How to install extension on Gnome 43? HOT 2
- Where can I find Clipboard Indicator V47 ? HOT 2
- Emojis not displaying properly if copied consecutively HOT 2
- Old items can not be copied any more HOT 13
- Thunderbird and Firefox keep freezing when I try to copy text HOT 1
- If you had a virgin for Windoze you would become wealthy beyond words HOT 1
- clipboard-indicator causes system lag on copy HOT 11
- clipboard-indicator causes the system to crash and require logout HOT 5
- Settings dialogue can be opened infinitely many times HOT 2
- Clip board indicator is not working, and shows a message "Text will be here" prompt HOT 2
- Unable to paste previous items HOT 4
- Cannot use "win" as hotkey in the keyboard shortcuts HOT 3
- [Feature Request] Display on all panels HOT 4
- [Feature Request] Copy selected text to clipboard HOT 1
- Gnome 46 Support HOT 5
- Features to hide icons in the top bar HOT 1
- Popup Placement when no indicator is there HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gnome-shell-extension-clipboard-indicator.