This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
|Summary:||IllegalArgumentException: Contents must be presorted - added value -2147481642 is less than preceding value 2147480508|
|Component:||Output Window||Assignee:||Jaroslav Havlin <jhavlin>|
|Issue Type:||DEFECT||Exception Reporter:||204240|
Description ekanovi11 2013-09-28 23:48:57 UTC
This bug was originally marked as duplicate of bug 135865, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.4 RC1 (Build 201309162201) VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43 OS: Windows 7 User Comments: ekanovi11: IllegalArgumentException: Contents must be presorted - added value -2147481642 is less than preceding value 2147480508 Stacktrace: java.lang.IllegalArgumentException: Contents must be presorted - added value -2147481642 is less than preceding value 2147480508 at org.netbeans.core.output2.IntList.add(IntList.java:76) at org.netbeans.core.output2.AbstractLines.lineUpdated(AbstractLines.java:796) at org.netbeans.core.output2.OutWriter.write(OutWriter.java:221) at org.netbeans.core.output2.OutWriter.doWrite(OutWriter.java:476) at org.netbeans.core.output2.OutWriter.printLineEnd(OutWriter.java:530) at org.netbeans.core.output2.OutWriter.print(OutWriter.java:570)
Comment 2 Jaroslav Havlin 2013-09-30 12:25:57 UTC
Please, what was shown in the Output Window when the error occurred? Log data from some server, output of some build, or something else? Thank you.
Comment 3 Jaroslav Havlin 2013-10-03 07:09:01 UTC
I tried to reproduce the bug, but it worked fine for me. There is a limit on number of lines and number of characters, but it probably didn't work correctly in this case, and I cannot find out why. Can you please provide some additional information about the text in Output Window, what produced it, and some basic characteristics? Thank you.
Comment 4 fni 2014-12-03 01:57:59 UTC
The output window became blank, showing nothing at all, no error message, I only found some message at the lower right side saying something like : -2147481642 is less than preceding value 2147480508 This error only occurred recently, last few days.
Comment 5 Jaroslav Havlin 2014-12-05 12:24:19 UTC
Let's try checking limits after each write. http://hg.netbeans.org/core-main/rev/48329b62697d Thank you for reporting and comments.
Comment 6 Jaroslav Havlin 2014-12-08 10:20:15 UTC
I'm sorry, I have to revert the fix due to failing tests: http://hg.netbeans.org/core-main/rev/b0f04af68a47 We'll probably need to check the limits before writing. (Maybe the new logging will bring some additional information).
Comment 7 Quality Engineering 2014-12-09 04:20:56 UTC
Integrated into 'main-silver', will be available in build *201412090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/48329b62697d User: Jaroslav Havlin <email@example.com> Log: #236507: Check limits after each write
Comment 8 Exceptions Reporter 2014-12-12 15:49:34 UTC
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=204240
Comment 9 Exceptions Reporter 2014-12-30 02:30:07 UTC
Created attachment 151314 [details] stacktrace Java IO cannot read spesific line
Comment 10 Jaroslav Havlin 2015-07-07 11:24:06 UTC
The problem is that the limit is too high. The limit applies to number of characters, but number of bytes is twice as much (and equals Integer.MAX_VALUE, so in fact is useless). Fixing the default limit on number of characters in Output Window. http://hg.netbeans.org/core-main/rev/a8fd0e51aff5
Comment 11 Quality Engineering 2015-07-09 01:16:33 UTC
Integrated into 'main-silver', will be available in build *201507090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a8fd0e51aff5 User: Jaroslav Havlin <firstname.lastname@example.org> Log: #236507: Increase limit on characters in Output Window