Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334678 - Eclipse hangs on opening source file with very long line
Summary: Eclipse hangs on opening source file with very long line
Status: CLOSED DUPLICATE of bug 168557
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 384300 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-18 12:36 EST by Gyorgy Orban CLA
Modified: 2020-01-28 09:33 EST (History)
5 users (show)

See Also:


Attachments
xml that makes eclipse hang (zipped) (152.70 KB, application/octet-stream)
2011-01-18 12:54 EST, Gyorgy Orban CLA
no flags Details
SQL file which makes Eclipse hang. (175.79 KB, text/x-sql)
2014-05-09 06:27 EDT, Heiko Selber CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gyorgy Orban CLA 2011-01-18 12:36:10 EST
Build Identifier: 20100917-0705

Eclipse hangs if an XML file contains a very long line. Not sure if this is specific to editing XMLs (probably not) or it occurs with any type of file.

Reproducible: Always

Steps to Reproduce:
1.Open any XML file with long line (e.g. +10MB, see attached example
Comment 1 Gyorgy Orban CLA 2011-01-18 12:54:43 EST
Created attachment 187027 [details]
xml that makes eclipse hang (zipped)
Comment 2 Gyorgy Orban CLA 2011-01-18 12:56:10 EST
Actually it occurs for much smaller XMLs as well (see attached one, ~2.5MB)
Comment 3 Nick Sandonato CLA 2011-01-18 12:59:53 EST
Hi Gyorgy,

This is a general Eclipse problem and will occur with any type of file. Please see Bug 213305.

I'd imagine they squeezed as much as they could performance-wise out of it as they could. So I'd either be inclined to duplicate this against Bug 213305, or reassign it to the platform for further investigation.
Comment 4 Nick Sandonato CLA 2011-04-22 16:40:45 EDT
I know strides have been made in improving this, but I'll pass to Platform to make the final call on if more can be done.
Comment 5 Nick Sandonato CLA 2012-07-05 15:32:14 EDT
*** Bug 384300 has been marked as a duplicate of this bug. ***
Comment 6 Heiko Selber CLA 2014-05-09 06:27:27 EDT
Created attachment 242886 [details]
SQL file which makes Eclipse hang.

The attached file 'longline.sql' also triggers this bug in Eclipse Kepler 4.3.2 on Ubuntu Linux 13.10.

The file doesn't contain any SQL, only its extension is sql.

It doesn't matter whether I open it in the SQL editor of in the plain text editor.

However, the name matters: If you rename it to longline.txt, it doesn't cause any problems.
Comment 7 Andrey Loskutov CLA 2020-01-28 09:33:22 EST

*** This bug has been marked as a duplicate of bug 168557 ***