Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 176508 - [console] IOConsole Updater error with long output lines
Summary: [console] IOConsole Updater error with long output lines
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.1   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 198776 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-06 11:51 EST by Daniel Desmeules CLA
Modified: 2008-08-12 09:40 EDT (History)
8 users (show)

See Also:


Attachments
Code sample that reproduces the problem (248 bytes, application/octet-stream)
2007-03-06 11:53 EST, Daniel Desmeules CLA
no flags Details
Stack trace (3.11 KB, text/plain)
2007-03-06 11:55 EST, Daniel Desmeules CLA
no flags Details
patch (1.72 KB, patch)
2007-08-24 14:41 EDT, Darin Wright CLA
no flags Details | Diff
replacement plug-in (141.26 KB, application/octet-stream)
2007-08-24 16:18 EDT, Darin Wright CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Desmeules CLA 2007-03-06 11:51:42 EST
I am getting an error when I run a program that outputs a really long line of text (a soap message in that case). The error starts happening around 12200 characters.
Comment 1 Daniel Desmeules CLA 2007-03-06 11:53:16 EST
Created attachment 60327 [details]
Code sample that reproduces the problem

Run this small program in eclipse to reproduce the bug.
Comment 2 Daniel Desmeules CLA 2007-03-06 11:55:00 EST
Created attachment 60328 [details]
Stack trace 

Stack trace from the eclipse logs.
Comment 3 Daniel Desmeules CLA 2007-03-06 11:57:16 EST
I'm getting this problem with the latest 3.3 M5 build. This was working fine with version 3.2.x. 
Comment 4 Grant Gayed CLA 2007-03-08 12:09:36 EST
FH the stack indicates that this should be a fixable "string too long" case.

I'm not able to reproduce the AIOOB (no error for me), but I'm on win2000 and not quite the same eclipse build.
Comment 5 Daniel Desmeules CLA 2007-03-12 10:41:38 EDT
It doesn't happen all the time for me also but I still get it. Sometimes, I have to resize the window and it happens (sometimes only the first time I try it). It usually happens if you run the test program multiple times quickly. 
Comment 6 Felipe Heidrich CLA 2007-07-09 14:41:42 EDT
KB believes the bug is here:
org.eclipse.ui.internal.console.ConsoleDocumentAdapter.documentAboutToBeChanged(ConsoleDocumentAdapter.java:298)
Comment 7 Darin Wright CLA 2007-08-24 10:38:13 EDT
*** Bug 198776 has been marked as a duplicate of this bug. ***
Comment 8 Darin Wright CLA 2007-08-24 10:38:35 EDT
*** Bug 201075 has been marked as a duplicate of this bug. ***
Comment 9 Neale Upstone CLA 2007-08-24 11:32:29 EDT
As reporter of duplicate bug 201075, I can confirm that my case does seem to be a line length issue.

In my case, having the following VM options in use triggers the bug (on Sun JDK1.5):
-XX:+UseConcMarkSweepGC -XX:+PrintGCDetails -XX:+PrintTenuringDistribution

I note that this is yet to be assigned/targetted, and has been around a while.  I'd hope that a regression like this is on the list for 3.3.1...
Comment 10 Darin Wright CLA 2007-08-24 14:41:14 EDT
Created attachment 76944 [details]
patch
Comment 11 Darin Wright CLA 2007-08-24 15:36:56 EDT
Released to HEAD
Comment 12 Darin Wright CLA 2007-08-24 16:11:01 EDT
Released to 3.3.1. Please verify, Mike.
Comment 13 Darin Wright CLA 2007-08-24 16:18:27 EDT
Created attachment 76951 [details]
replacement plug-in

This is a replacement plug-in that the community can use for testing. The patched plug-in addresses a problem with '\r' characters - so I am interested to see if it solves everyone's problem.
Comment 14 Neale Upstone CLA 2007-08-25 09:01:52 EDT
Hi Darin,

I've just tried the replacement plugin, and I still get the problem, so it looks like there's more than one bug to resolve...
Comment 15 Michael Rennie CLA 2007-08-30 10:55:43 EDT
verified in 3.4 and 3.3.1

tried using the vm params mentioned in comment 9 and was unable to produce the problem.
Comment 16 Neale Upstone CLA 2007-08-30 11:02:58 EDT
Looks like 201075 needs reopening then, as I still have the bug.  I wonder if there are some workspace settings that are triggering it...
Comment 17 Adam Cabler CLA 2007-09-17 11:44:06 EDT
I'm seeing something similar, but not sure if its related to this one.  If I log a lot of events at invocation time, I never get past the splash screen.  The logging code seems to hang in IOConsolePartitioner line 466 (3.3) on the wait.

if (fBuffer > 160000) { 
                try {
                    pendingPartitions.wait();
                } catch (InterruptedException e) {
                }
            }

(In reply to comment #16)
> Looks like 201075 needs reopening then, as I still have the bug.  I wonder if
> there are some workspace settings that are triggering it...
> 

Comment 18 Dave Whittaker CLA 2008-02-14 19:45:18 EST
I am seeing this problem in Eclipse 3.3.1.1 under OS X.  It was adding the VM argument -XX:+PrintGCDetails that seems to have caused it.  My stack trace is very similar to the attachment on comment #2.  From the trace it appears that this line is causing an ArrayIndexOutOfBoundsException:

org.eclipse.swt.custom.StyledTextRenderer.textChanging(StyledTextRend
erer.java:1235)

I'm using Java 1.5.0_13.
Comment 19 Darin Wright CLA 2008-02-14 21:11:20 EST
(In reply to comment #18)
> I am seeing this problem in Eclipse 3.3.1.1 under OS X.  It was adding the VM
> argument -XX:+PrintGCDetails that seems to have caused it.  My stack trace is
> very similar to the attachment on comment #2.  From the trace it appears that
> this line is causing an ArrayIndexOutOfBoundsException:
> org.eclipse.swt.custom.StyledTextRenderer.textChanging(StyledTextRend
> erer.java:1235)
> I'm using Java 1.5.0_13.

Do you have a sample program that causes the problem? does it happen on 3.3.2?
Comment 20 Dave Whittaker CLA 2008-02-15 09:40:24 EST
For me, it's happening when I start up JBoss AS 4.2.2 in debug mode from within Eclipse.  The console shows log messages until I get to the first full garbage collection at which point I get a line like:

[Full GC [Tenured: 5909K->6561K(121024K), 0.0665359 secs] 8122K->6561K(130176K), [Perm : 12543K->12543K(12544K)], 0.0665
971 secs]

Then a dialog pops up in Eclipse stating "IOConsole Updater (Time of error: [TIME])" which appears multiple times and the stack trace appears in my Eclipse log.  After the console output above nothing further is output on the console view from the server.  I will see if I can get 3.3.2 installed to test later today.  Was there a patch provided for this in the 3.3.1 code base when the bug was marked fixed?
Comment 21 Dave Whittaker CLA 2008-02-18 11:48:34 EST
I just tested on 3.3.2 and the problem seems to be fixed.  It might be helpful to others if you could update the target milestone.
Comment 22 Darin Wright CLA 2008-02-19 09:31:40 EST
This fix did do into 3.3.1, so the milestone is accurate. There was an additional console fix in 3.3.2 - bug 207743. However, it is good to know the problem is fixed in 3.3.2.
Comment 23 Xiaohan Huang CLA 2008-05-19 14:07:12 EDT
I saw it happened in 3.3.2. The output has a very long line.
Comment 24 Dan Stevens CLA 2008-07-23 05:51:07 EDT
I have a Java program that interacts with a remote service, as a result slowly outputs '.' characters to the console on a single line. If I have the 'Fixed width console' option enabled in the Console Preferences, as soon as the number of characters output hits the value for the 'Maximum character width' in the Console Preferences (default 80), this error occurs. If I disable 'Fixed width console', it does not.
Comment 25 Arnauld Van Muysewinkel CLA 2008-08-12 08:40:27 EDT
I just encountered the same problem.
Using: Version: 3.4.0   Build id: I20080617-2000
Under: Windows XP SP2, SUN JDK 1.5.0_10-b03

It happens when several very long lines are outputted to the console and "Fixed width console" is ON. (Doesn't happen when it is OFF.)
Comment 26 Darin Wright CLA 2008-08-12 09:00:16 EDT
Please open a new bug and attach a test case.(In reply to comment #25)
> I just encountered the same problem.
> Using: Version: 3.4.0   Build id: I20080617-2000
> Under: Windows XP SP2, SUN JDK 1.5.0_10-b03
> It happens when several very long lines are outputted to the console and "Fixed
> width console" is ON. (Doesn't happen when it is OFF.)

Please open a new bug and attach a test case or steps to reproduce. A verified/fixed bug is not going to get any attention :-)
Comment 27 Arnauld Van Muysewinkel CLA 2008-08-12 09:40:10 EDT
Done -> bug 243877