-
Notifications
You must be signed in to change notification settings - Fork 203
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
STS Console hang issue in 4.12.0 RELEASE #689
Comments
Hey @shankarwww, can you provide a few steps how to reproduce the issue or record a screencast that shows the steps and what happens? |
Whenever the statement to log is of long length(for example: log a json in console), the console starts hanging and does not respond. The scroll does nor respond. |
Can you disable the ANSI Console via the icon in the Console View to see if that makes a difference? |
I tried to reproduce this with the latest STS 4.12.0.RELEASE version on macOS, but I don't see a slowdown in the console view. I dumped about 30000 lines of output in there while keeping the ANSI Console on, but scrolling is still smooth and very responsive. I changed the settings on the preferences for the console to use an unlimited buffer, but that didn't change anything, still responsive and fast. Can you provide a sample project that produces the output in the console that causes the issues on your end? Maybe that helps to reproduce this. You could also experiment with the ANSI Console setting (as mentioned before) and the buffer size for the Console in general in the preferences to see if that makes a difference (to get an idea about what is causing the slowdown on your end). |
Experiment with the ANSI Console does not help. I am too on windows 10. Issue was in last release(4.11.0) too, but in this release it has become worse. |
@shankarwww @drc5521 Thanks for the additional details, so it looks like this problem comes up even without a very long content as the console output (from looking at the video). Does this happen on a plain Eclipse 2021-09 installation as well? Would be great if you could double check that to see if the problem is more with the underlying platform or the specifics in STS. |
Everything is normal in Eclipse 2021-09.After I installed ANSI Console, the problem appeared. The first video is not installed, and the second video is after installation.However, in sts, ANSI Console cannot be uninstalled, and I don't want to uninstall it. 20211012_094433.mp420211012_095010.mp4 |
@drc5521 That is a great comparison, so looks like this is indeed related to the ANSI Console. Therefore, I filed this issue: mihnita/ansi-econsole#66 to let the project owners take a look at this as well. I am still wondering why this seems to be specific for Windows... |
Thank you very much friend. Hope it can be solved perfectly. |
I have the same issue, check here. |
@sfksuperman Can you try to reproduce this with a plain Eclipse 2021-12 installation? |
Installed Eclipse 2021-12 and imported my projects and tried to run as Java Application >> Spring Boot Application but it's failing by saying And the console looks fine to me, it's not laggy. But I will try to fix the project and run it on Eclipse and let you by tomorrow. |
@martinlippert, I tested it and Eclipse seems to be working fine without any console lag. SO, how to fix the STS console? |
@sfksuperman Can you capture a few thread dumps of the STS process while CPU is at 100%? And also when the console is lagging? In addition to that it might also be worth to startup a profiler, attach it to the process, and record a short profiling session while the CPU is running so high to gather more details about this. I assume that you have your IDE running on your local SSD disc with the workspace and all the projects in your workspace also reside on the local SSD disc, so that nothing sits on a network-mounted drive? |
Yes, everything is on my SSD (C drive). But I don't know much about capturing thread dumps or starting up profiler etc. If you can provide me sufficient guide on how to do it, I might reproduce and record the bug. |
Win 10 VisualVM sampling snapshot of scrolling ansi console for 30 sec |
OSX Visual VM sampling of scrolling ansi console for 27 sec |
STS 4.14 has been released and issue still remains. It's quite sad and annoying that I have to work with ansi console disabled |
We will dive deeper into this and try to find a solution here. Probably involves help from other projects as well, but we will try to get everybody together for this. |
@martinlippert The issue with the console is "escape sequences" parts of strings in the console that represent color/font etc stuff. Those strings are always present on on the range.metrics = new GlyphMetrics(0, 0, 0); // Hide the codes (Example of "escape sequence" string: The point is that these strings are always present on the |
@BoykoAlex thanks for diving deeper into this. Please open a bug report for SWT for this and attach the SWT code snippet that reproduces the slowdown and add a link to that bugzilla issue here. I will let the SWT know about this then and hope to raise some interest in it... :-) |
@martinlippert here is the Eclipse SWT bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=579406 |
@martinlippert should be fixed in Eclipse 4.24. Fixed in this build already: https://download.eclipse.org/eclipse/downloads/drops4/I20220324-0140/ |
I've setup the build infrastructure to produce early-access builds of STS 4.14.1 CI builds on top of the early but latest Eclipse 2022-06 integration builds where this issue should be fixed. @shankarwww Can you try the latest CI build from https://dist.springsource.com/snapshot/STS4/nightly-distributions.html for Eclipse 2022-06 builds to verify that this issue is fixed there? |
@shankarwww @drc5521 👆Maybe you want to give these CI builds on Eclipse 2020-06 a try, too? |
@martinlippert I have downloaded STS Version: 4.15.1.RELEASE. The console performance has improved on windows. But still its not that smooth as compared to the console of VSCode or IntelliJ IDEA. I still find some lag/hanging when there is little bit large json. |
@shankarwww Maybe this is related to mihnita/ansi-econsole#66 ?The latest comments in there suggest that this might be related to the output limit for the console. Can you try what they suggest to workaround this (or to verify that the issue you are seeing is indeed the same)? That would be great. |
I am closing this one here as a duplicate of mihnita/ansi-econsole#66. Discussion should continue over there. If you are facing another issue unrelated to mihnita/ansi-econsole#66, please create a new issue here. |
The console is hanging too much in this 4.12.0 RELEASE. Even the scroll bar in console in not responding frequently or its too slow to respond.
The text was updated successfully, but these errors were encountered: