Community
Participate
Working Groups
When working with larger one-line/minified files (approaching 1mb), attempting to open the file in the generic text editor will display munged data and the IDE will slow down to a crawl. This persists until the file is closed or the IDE is restarted. If the file is a JSON file and opened in the JSON editor, the entire IDE hangs and stops responding. I waited for a couple of minutes for the IDE to respond, but in the end, it needed to be closed. To reopen, I had to delete my workspace data as the file kept trying to reopen on start.
About JSON Editor, is it the one from Web Tools Platform or the one from Wild Web Developer?
Can you activate the UI Responsive Monitor in the preferences and post the freeze stack from the Error log?
It is a known old GTK limitation with very long lines. There is SWT bug opened already, have no number at hand.
(In reply to Gautier de SAINT MARTIN LACAZE from comment #1) > About JSON Editor, is it the one from Web Tools Platform or the one from > Wild Web Developer? I had both installed on my system and reopened the file, and the IDE hung for a solid while still but managed to recover.
(In reply to Lars Vogel from comment #2) > Can you activate the UI Responsive Monitor in the preferences and post the > freeze stack from the Error log? UI freeze of 570s at 10:04:15.534 An exception stack trace is not available. Sample at 10:12:47.107 (+170.500s) Thread 'org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor' tid=645 (TIMED_WAITING) Stack Trace at java.lang.Object.wait(Native Method) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor$BackgroundThread.run(DirtyRegionProcessor.java:670) Session data: eclipse.buildId=4.13.0.I20190916-1045 java.version=1.8.0_232 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA Framework arguments: -product org.eclipse.epp.package.java.product Command-line arguments: -data file:/home/martin/localdev/ -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product
(In reply to Martin Lowe from comment #0) > When working with larger one-line/minified files (approaching 1mb), > attempting to open the file in the generic text editor will display munged > data and the IDE will slow down to a crawl. This persists until the file is > closed or the IDE is restarted. Please attach your file and please specify *which editor exactly* was used to open it. Opening a simple file created via import java.nio.file.Files; import java.nio.file.Path; import java.util.Arrays; public class LongString { public static void main(String[] args) throws Exception { char[] longArr = new char[1_000_000]; Arrays.fill(longArr, 'x'); String s = new String(longArr); Path tempFile = Files.createTempFile("", "txt"); System.out.println("File created: " + tempFile); Files.write(tempFile, s.getBytes()); } } works for me on RHEL 7.4 in *default* simple text editor. The line is not really editable due SWT limitations, but this is a different question. I assume your specific editor tries to parse the file content and fails to do so in a reasonable time.
This doesn't look like SWT issue. According to comment 5 it's coming from wtp.
For JSON editing I strongly recomment using https://marketplace.eclipse.org/content/eclipse-wild-web-developer-web-development-eclipse-ide instead of wtp.
Marking as closed. If you have similar issue with wildwebdeveloper please open corresponding issue.