Community
Participate
Working Groups
Created attachment 285216 [details] Using a higher xmx Hello, Good day, We experienced a hang on our Editor whenever we perform the following operations: 1. Ctrl-a + ctrl-x 2. Ctrl-a + ctrl-delete Our Editor extends the TextEditor class from org.eclipse.ui.editors.text.TextEditor. This hang happens for test data (file contents) having LOCs > 9KLOCs. We tried increasing the maximum heap memory from 1024m(1gb) to 2048m(2gb) but the waiting time does not increase significantly. (Please see: testing_with_higher_xmx.png) System Information: Processor: Intel(R) Xeon(R) Platinum 8160 CPU @ 2.10GHz 2.10 GHz Installed Memory (RAM): 16.0 GB The hang also happens in a Java Editor (CompilationUnitEditor) with source contents having more than 9K LOCs. =========================================================================== Given that our editor (TextEditor) and JavaEditor classes extend from AbstractDecoratedTextEditor, we would like to confirm if this hang problem exists especially when the source content has almost 10k locs. If not, could you give us some ways in order to speed up the waiting time for doing the said operations above? Thank you very much. Regards, Joseph
Does the problem appear in default Java or Text editors? If not, why do you think it is an Eclipse bug? If yes, please provide reproducible test case.
Created attachment 285235 [details] testdata
Created attachment 285236 [details] OpenTextEditorCommand
Created attachment 285237 [details] UsesTextEditor
Hello, Sorry for the late reply. >Does the problem appear in default Java or Text editors? Yes, this also happens using the TextEditor Kindly refer to the attached test data and screenshots. Regards, Joseph
Hello, Good day. I would like to follow up on this. Could you confirm if this is a bug on your side? Thank you very much.
You reported this against Eclipse 4.14. This is an old Eclipse version. Cannot reproduce on Win10 or OS X with Eclipse 2021-12. No hangs observed with a dummy text of >10k lines, each >750 characters long. No hangs observed with a text >16k lines with parentheses and quotes as shown in your example.