Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select/Right copy click uses 100% CPU on multi line message #1529

Closed
2 tasks done
reetp opened this issue Feb 18, 2020 · 6 comments
Closed
2 tasks done

Select/Right copy click uses 100% CPU on multi line message #1529

reetp opened this issue Feb 18, 2020 · 6 comments

Comments

@reetp
Copy link

reetp commented Feb 18, 2020

My Setup

  • Operating System: Xubuntu Bionic 18.04
  • App Version: 2.17.7
  • Installation type: deb
  • Tested on open.rocket.chat
  • I can simulate the issue easily - 3 desktops so far

Description

Select message text, right click, try and select copy

Current Behavior

As the message line length increases the hang time increases, especially if you have a blank line in the message

Select a couple of words and it isn't noticeable. As you select more lines it increases.

Possibly due to the context sensitive right click menu trying to work out if it has URLs in there or spellcheck etc??

It IS inconsistent though, but I can reproduce regularly and it is driving my users mad.

No errors in devtools

I also note that despite having hunspell installed with dictionaries I get no spell checking and wonder if this is related?

(did experience this originally but added the directory manually - that stopped the log noise but the issue persisted

app.js:6161 Error: ENOENT: no such file or directory, scandir '/home/server/files/users/john/.config/Rocket.Chat/dictionaries'
getPairsOfDictionaryFiles @ app.js:6161
)

c11600c

c11600c#commitcomment-37155896

I can see these installed which Rocket seems to completely ignore:
/usr/share/hunspell/en_GB.aff
/usr/share/hunspell/en_GB.dic
/opt/Rocket.Chat/resources/dictionaries/en_GB.aff
/opt/Rocket.Chat/resources/dictionaries/en_GB.dic

These all seem related to the dictionary issue:

#1520
#1497
#1077

Expected Behavior

No delay on right click, copy

@reetp
Copy link
Author

reetp commented Feb 19, 2020

Is this related too?

#1144

@tassoevan
Copy link
Collaborator

This seems to be a bug related to spell checking. I'll test it ASAP.

@Ahmad-Ali-Sherazi
Copy link

Yes its also happens for me too

My Setup : Windows 10 pro education
App version : 3.0.0-develop

@Schwuuuuup
Copy link

I had 2.16.x installed and then installed 2.17.9 as a snap on Linux Mint. German spelling was not recognized anymore and I got that error in the dev console:

app.js:6161 Error: ENOENT: no such file or directory, scandir '/home/<username>/snap/rocketchat-desktop/157/.config/Rocket.Chat/dictionaries'

@Schwuuuuup
Copy link

Oh scratch that It works after RE-selecting my language

@jeanfbrito
Copy link
Collaborator

Please test if the latest release did solve this. If not please reopen the issue or create a new one and tell us. I will be closing this one for now.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants