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

Editor is very laggy for certain actions #288

Open
laeubi opened this issue Apr 5, 2022 · 8 comments
Open

Editor is very laggy for certain actions #288

laeubi opened this issue Apr 5, 2022 · 8 comments
Labels
bug Something isn't working performance

Comments

@laeubi
Copy link
Contributor

laeubi commented Apr 5, 2022

M2E - POM Editor using LemMinX language server (includes Incubating components) 1.18.4.20220127-1634 org.eclipse.m2e.lemminx.feature.feature.group Eclipse.org - m2e

I noticed considerable 'lag' with the new editor for actions that should actually be very fast, in the progress view I see "loading referenced grammar" sometimes.

These action include:

  • STRG+D (remove single line)
  • STRG+V (insert some code from clipboard)
  • STRG+Z (Undo last edit)
  • STRG+X

while they run sometimes fast, ther ist often some lag if using them in repetiotn, e.g cut some text in a pom.xml and insert it in other places, also Moving text up/down sometimes lags hard.

It seems as if there is something that has to be started up (and maybe shut down after a while).

The best to reproduce this is the following:

  1. close all editors
  2. open a pom, as soon as you see the editor focus it and press STRG + D to remove a line
  3. It takes on my system around 3-5 seconds until the line is removed and the editor seems unresponsive
  4. Press STRG+S to save the change (this also seems to take very long then until the dirty marker disappears
  5. Press STRG+Z ... again a lag of several seconds

I'm using this shortcuts very often and it always has happens fast before this makes the editor feeling very laggy and hard to use.

@laeubi
Copy link
Contributor Author

laeubi commented Apr 5, 2022

Also marking some text and the overwrite from clipboard (STRG+V) is very slow.

@AObuchow
Copy link
Contributor

AObuchow commented Apr 5, 2022

Hi @laeubi, thank you very much for the bug report.

I wanted to gather some extra information:

Which operating system are you currently using where you are experiencing this bug?

It seems as if there is something that has to be started up (and maybe shut down after a while).

Does this issue only occur once you first open up a pom.xml file, and then go away? Or does it persist throughout your session, occurring seemingly-randomly, or upon repetition?

@AObuchow AObuchow added the bug Something isn't working label Apr 5, 2022
@laeubi
Copy link
Contributor Author

laeubi commented Apr 5, 2022

Which operating system are you currently using where you are experiencing this bug?

OS is linux debian 64 bit

Does this issue only occur once you first open up a pom.xml

Nope it also happens afterwards, sometimes an action is fast after triggering it once but gets slow later again (maybe something get wiped out by the GC?).
It also happens if I e.g. copy from one pom a snippet to another pom, then the copy sometimes get lost and some old clipboard content gets inserted.

This doesn't happen for example in the java editor and hasn't happen with the "old" xml editor.

@mickaelistria
Copy link
Contributor

Can you pleaase run jstack when editor is stuck/laggy?
I don't know where "loading referenced grammar" comes from.

@laeubi
Copy link
Contributor Author

laeubi commented Apr 6, 2022

I don't know where "loading referenced grammar" comes from.

Its probably unrelated ...

Can you pleaase run jstack when editor is stuck/laggy?

I can try that but I'm not sure it will catch the right things as its quite hard to guess when it actually happens and is only a few seconds.

@mickaelistria
Copy link
Contributor

Isn't it logged in the "Errors" view as a UI Freeze?

@laeubi
Copy link
Contributor Author

laeubi commented Apr 6, 2022

No, I don't think this is really an UI freeze but something happening in the back-ground, e.g. if I delete a line with STRG+D and perform this twice there is often a lag of 3-5 seconds and the both lines disappear together, then I can delete some more lines without a problem and after a while (e.g. I mark some text and try to replace it with STRG+V) theres a lag again, thus I think there might a a SoftReference or something of a heavy object getting cleared out by the GC or something alike...

@laeubi
Copy link
Contributor Author

laeubi commented Jul 20, 2023

Still seeing the problem in latest 2023-06 Eclipse Release 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working performance
Projects
None yet
Development

No branches or pull requests

4 participants