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 232547 - Out of memory - many instances of LineInfo
Summary: Out of memory - many instances of LineInfo
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Output Window (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords: REGRESSION
: 235205 236467 236634 236793 238491 242006 244341 245815 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-11 08:00 UTC by viggonavarsete
Modified: 2014-08-05 12:46 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (386.20 KB, application/octet-stream)
2013-07-11 08:00 UTC, viggonavarsete
Details
AfterRestartExceptions (4.60 KB, application/octet-stream)
2013-07-11 08:00 UTC, viggonavarsete
Details

Note You need to log in before you can comment on or make changes to this bug.
Description viggonavarsete 2013-07-11 08:00:03 UTC
Created attachment 136976 [details]
messages.log

netbeans ran out of memory while running a unit test which included running several threads.
(not sure if I've registered the correct component for this..)
Comment 1 viggonavarsete 2013-07-11 08:00:44 UTC
Created attachment 136978 [details]
AfterRestartExceptions
Comment 2 Tomas Hurka 2013-07-11 16:15:19 UTC
To investigate the issue, we need a heap dump, which is on your disk. Please take the file C:\Users\xxnavarv\AppData\Roaming\NetBeans\7.4beta\var\log\heapdump.hprof.old, zip it and upload it here: <http://deadlock.netbeans.org/job/upload/build?delay=0sec>. Thanks.
Comment 3 viggonavarsete 2013-07-19 08:45:59 UTC
I just uploaded the heap dump as described in previous comment:
http://deadlock.netbeans.org/job/upload/280/
Comment 4 Petr Cyhelsky 2013-07-19 13:00:53 UTC
The OoME happened when cca 70MB of text from output was put into clipboard. The OoME is from java clipboard and we probably can't do anything about it. Howewer the exacerbating factor was that a lot of memory is consumed by ~700000 instances of org.netbeans.core.output2.LineInfo and its baggage. So although the text in output itself is memory-mapped and thus ok, the miscellaneous info about it is not. Reassigning to platform/output to take a look whether the memory footprint of output couldn't be further reduced.
Comment 5 Jaroslav Havlin 2013-08-29 13:09:59 UTC
*** Bug 235205 has been marked as a duplicate of this bug. ***
Comment 6 Jaroslav Havlin 2013-09-30 14:23:11 UTC
*** Bug 236467 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Havlin 2013-10-02 11:08:36 UTC
*** Bug 236634 has been marked as a duplicate of this bug. ***
Comment 8 Jaroslav Havlin 2013-10-02 15:07:50 UTC
There are LineInfo objects even for lines that have no special properties.
This is a regression originating in fix for bug 228480 (core-main #33d52f118356).

Fixed in http://hg.netbeans.org/core-main/rev/ffae29d0d978.

Thank you very much for reporting.
Comment 9 Jaroslav Havlin 2013-11-13 08:55:15 UTC
Can you please verify the fix (due to 74patch1)? Thank you.
Comment 10 Tomas Danek 2013-11-13 12:40:37 UTC
fix seems ok, I've inspected that some verbose ant output has ~100 instances of LineInfo on ~3000 lines of output (they are for target invocations lines).VerifiedProduct Version: NetBeans IDE Dev (Build 201311120002)Java: 1.7.0_45
Comment 11 Jaroslav Havlin 2013-11-13 14:11:35 UTC
Thank you very much for the verification, Tomas.

Integrated into release74 branch:
http://hg.netbeans.org/releases/rev/1ffd5b318472 (graft)
http://hg.netbeans.org/releases/rev/13388ae1d610 (specification version)
Comment 12 Quality Engineering 2013-11-14 14:34:13 UTC
Integrated into 'releases/release74', will be available in build *201311141216* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/1ffd5b318472
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #232547: Out of memory - many instances of LineInfo
Comment 13 Jaroslav Havlin 2013-11-19 13:50:47 UTC
*** Bug 238491 has been marked as a duplicate of this bug. ***
Comment 14 Jaroslav Havlin 2013-11-19 13:51:38 UTC
*** Bug 236793 has been marked as a duplicate of this bug. ***
Comment 15 Tomas Danek 2013-11-21 13:57:08 UTC
verified in 
Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 1
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08
Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18
System: Mac OS X version 10.9 running on x86_64; UTF-8; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/7.4
Cache directory: /Users/tomas/Library/Caches/NetBeans/7.4
Comment 16 Tomas Hurka 2014-02-17 13:20:53 UTC
*** Bug 242006 has been marked as a duplicate of this bug. ***
Comment 17 Jaroslav Havlin 2014-05-09 15:16:45 UTC
*** Bug 244341 has been marked as a duplicate of this bug. ***
Comment 18 Jaroslav Havlin 2014-08-05 12:46:29 UTC
*** Bug 245815 has been marked as a duplicate of this bug. ***