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 255019 - IllegalArgumentException: Negative size
Summary: IllegalArgumentException: Negative size
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
Depends on:
Reported: 2015-09-04 21:06 UTC by Pandemonica
Modified: 2015-09-23 13:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 219706

stacktrace (4.74 KB, text/plain)
2015-09-04 21:06 UTC, Pandemonica

Note You need to log in before you can comment on or make changes to this bug.
Description Pandemonica 2015-09-04 21:06:56 UTC
This bug was originally marked as duplicate of bug 157501, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.0-b56, Java(TM) SE Runtime Environment, 1.7.0_40-b43
OS: Linux

User Comments:
pandemonica: Trying to click on an error message in the compilation output console but the file was a generated file that may have changed size during compilation.

java.lang.IllegalArgumentException: Negative size
   at org.netbeans.core.output2.FileMapStorage.getReadBuffer(
   at org.netbeans.core.output2.AbstractLines.getText(
   at org.netbeans.core.output2.OutputDocument.getText(
   at org.netbeans.core.output2.ExtPlainView.getText(
   at org.netbeans.core.output2.ExtPlainView.drawText(
Comment 1 Pandemonica 2015-09-04 21:06:57 UTC
Created attachment 155909 [details]
Comment 2 Jaroslav Havlin 2015-09-21 13:31:46 UTC
FileChannel.size() returned 0 for the file with output data. It is very strange, as quite a lot of output has been already written to it.

Didn't you clear the folder with temporary files while NetBeans IDE was running?
Did you notice any other problems related to filesystem?

Thank you.
Comment 3 Jaroslav Havlin 2015-09-23 13:25:27 UTC
Email response from the reporter:
> No, neither of those. 

Thank you. Unfortunately, I don't know what could be wrong.
Can you please provide any additional information? What were you doing, or what tasks were writing data to output window?