Community
Participate
Working Groups
Build Identifier: 20100917-0705 When a file with a very long lines exists in you project and is included in your search results, the results tree is broken. The tree is build with white label and a huge horizontal scroll bar is displayed. Any other search is broken after that, the only way to fix it is to restart eclipse. Reproducible: Always Steps to Reproduce: 1. Create a file with a very long line in your project (more than 6000 characters) eg: for i in $(seq 1 800) ; do echo -n "hello$i" >> hello.txt ; done 2. In the menu choose : "Search>File" 3. Search for some text included in the file just created (eg: hello)
Most likely an SWT issue or OS limitation.
Created attachment 195952 [details] Search view before expansion (bug 336104)
Created attachment 195953 [details] Search view after expansion (bug 336104)
Note, the corruption only appears to occur when you expand the search element which contains the long line, see attached screen shots. Hopefully this will help in tracking down this problem. On average, this problem causes me to have to restart Helios 2 to 3 times per day, which is rather annoying.
This is an OS limitation.
Does that mean this can't be fixed, won't be fixed, or that we need to report this as a bug elsewhere? If so, where?
Even if it is an OS limitation, which I doubt, a workaround should be easy: Don't put the whole line length into the tree. Instead of writing megabytes of data in the search results, strip the search results to a specific length (probably append something like [long line has been stripped]. Also, trying to open a file with a very long line also causes eclipse to hang. No matter if this is an OS issue or not, this needs to be adressed in whatever way. Hangs are a no-go in any case!
*** Bug 384296 has been marked as a duplicate of this bug. ***
*** Bug 434360 has been marked as a duplicate of this bug. ***
*** Bug 436004 has been marked as a duplicate of this bug. ***
Created attachment 275531 [details] Long line file search good I cannot reproduce the issue. Please reopen this ticket if the issue reoccurs. Eclipse SDK Version: 2018-09 (4.9) Build id: I20180823-0450 OS: Linux, v.4.17.12-200.fc28.x86_64, x86_64 / gtk 3.22.30 Java version: 1.8.0_181