Bug 570159 - TextEditor Hangs
Summary: TextEditor Hangs
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.14   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2021-01-07 01:09 EST by Joseph Adriane Cabrera CLA
Modified: 2022-02-07 03:27 EST (History)
2 users (show)

See Also:


Attachments
Using a higher xmx (25.30 KB, image/png)
2021-01-07 01:09 EST, Joseph Adriane Cabrera CLA
no flags Details
testdata (8.67 MB, application/vnd.ms-excel)
2021-01-11 00:57 EST, Joseph Adriane Cabrera CLA
no flags Details
OpenTextEditorCommand (47.20 KB, image/png)
2021-01-11 00:58 EST, Joseph Adriane Cabrera CLA
no flags Details
UsesTextEditor (1.54 MB, image/png)
2021-01-11 00:59 EST, Joseph Adriane Cabrera CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Adriane Cabrera CLA 2021-01-07 01:09:52 EST
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
Comment 1 Andrey Loskutov CLA 2021-01-07 01:18:45 EST
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.
Comment 2 Joseph Adriane Cabrera CLA 2021-01-11 00:57:53 EST
Created attachment 285235 [details]
testdata
Comment 3 Joseph Adriane Cabrera CLA 2021-01-11 00:58:32 EST
Created attachment 285236 [details]
OpenTextEditorCommand
Comment 4 Joseph Adriane Cabrera CLA 2021-01-11 00:59:18 EST
Created attachment 285237 [details]
UsesTextEditor
Comment 5 Joseph Adriane Cabrera CLA 2021-01-11 01:00:03 EST
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
Comment 6 Joseph Adriane Cabrera CLA 2022-02-07 02:12:05 EST
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.
Comment 7 Thomas Wolf CLA 2022-02-07 03:27:46 EST
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.