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.

Bug 236507 - IllegalArgumentException: Contents must be presorted - added value -2147481642 is less than preceding value 2147480508
Summary: IllegalArgumentException: Contents must be presorted - added value -214748164...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.0.2
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
: 250984 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-09-28 23:48 UTC by ekanovi11
Modified: 2015-08-17 13:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204240


Attachments
stacktrace (1.09 KB, text/plain)
2013-09-28 23:48 UTC, ekanovi11
Details
stacktrace (1.28 KB, text/plain)
2014-12-30 02:30 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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 1 ekanovi11 2013-09-28 23:48:59 UTC
Created attachment 140607 [details]
stacktrace
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 <jhavlin@netbeans.org>
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 <jhavlin@netbeans.org>
Log: #236507: Increase limit on characters in Output Window
Comment 12 Jaroslav Havlin 2015-08-17 13:54:23 UTC
*** Bug 250984 has been marked as a duplicate of this bug. ***