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 249094 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Ondrej Vrabec
URL: http://issues.tmatesoft.com/issue/SVN...
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2014-12-03 21:01 UTC by Exceptions Reporter
Modified: 2015-02-19 10:32 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213880


Attachments
stacktrace (2.90 KB, text/plain)
2014-12-03 21:01 UTC, Exceptions Reporter
Details
bundle patch for 8.0.2 (4.02 KB, patch)
2014-12-23 17:44 UTC, Ondrej Vrabec
Details | Diff
bundled nbm with new svnkit (2.41 MB, application/octet-stream)
2014-12-23 17:54 UTC, Ondrej Vrabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-12-03 21:01:29 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: Oracle Solaris Studio 12.4 (2014/10/03 bc3251f82efb)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: SunOS

User Comments:
GUEST: loading debugger




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3181)
   at java.util.ArrayList.grow(ArrayList.java:261)
   at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:235)
   at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:227)
   at java.util.ArrayList.add(ArrayList.java:458)
   at org.tmatesoft.svn.core.internal.util.SVNSkel.appendChild(SVNSkel.java:285)
Comment 1 Exceptions Reporter 2014-12-03 21:01:31 UTC
Created attachment 150869 [details]
stacktrace
Comment 2 Tomas Hurka 2014-12-04 06:08:55 UTC
This looks like SVN problem.
Comment 3 Ondrej Vrabec 2014-12-04 09:31:12 UTC
filed to svnkit. In the meantime jut switch to javahl or cli if this really bothers you.
Comment 4 Ondrej Vrabec 2014-12-23 08:36:45 UTC
Apparently fixed in SVNKit. Alex, you seem to knowhow to reproduce, maybe you should check and verify it's fixed in the latest SVNKit snapshot.
Comment 5 Vladimir Voskresensky 2014-12-23 10:48:44 UTC
This is regression between prev and current Studio IDE. So it's regression between NB 7.4 and NB 8.0.1.
We have to provide fix to the customer with support contract, so I propose the following:
Please, prepare new bundled SVNKit (or/and other nb modules) built on top of 8.0.2 and attach it to the IZ. 
We would ask sustaining to provide modules for the customer. If customer verifies that regression is gone, then we push it into 8.0.2 Patch 1.
Comment 6 Vladimir Voskresensky 2014-12-23 12:09:49 UTC
If SVNKit with the fix is not yet available, we need to bundle the last one without regression
Comment 7 Ondrej Vrabec 2014-12-23 12:58:04 UTC
(In reply to Vladimir Voskresensky from comment #6)
> If SVNKit with the fix is not yet available, we need to bundle the last one
> without regression
By *we* you clearly mean *you* (as Studio). No way NetBeans goes down back to SVNKit 1.7 (which was bundled along with 7.4 [1]) and completely drop the support for Subversion 1.8 because one of your clients has a corrupted checkout metadata: according to SVNKit evaluation and the fix:
> commit 82ffd964d7067d9bbe466063c5943b1f0954bca3
> Author: Dmitry Pavlenko <pavlenko@tmatesoft.com>
> Date:   Thu Dec 4 21:28:55 2014 +0100

>     SVNKIT-569: SVNSkel#parse falled into an infinite loop (causing OOME) if skel format was incorrect (no closing ')' character), now fixed.

[1] - http://hg.netbeans.org/releases/annotate/release74/libs.svnClientAdapter.svnkit/external/binaries-list
Comment 8 Ondrej Vrabec 2014-12-23 17:44:48 UTC
Created attachment 151260 [details]
bundle patch for 8.0.2
Comment 9 Ondrej Vrabec 2014-12-23 17:54:32 UTC
Attaching the patched nbm for svnClientAdapter.svnkit. The included svnkit should contain the fix, try to install the nbm and let me know if it helps. If not, attach updated heap dump.
Comment 10 Ondrej Vrabec 2014-12-23 17:54:55 UTC
Created attachment 151262 [details]
bundled nbm with new svnkit
Comment 11 Vladimir Voskresensky 2014-12-24 10:13:53 UTC
(In reply to Ondrej Vrabec from comment
Comment 12 Vladimir Voskresensky 2014-12-24 10:14:28 UTC
(In reply to Ondrej Vrabec from comment #9)
> Attaching the patched nbm for svnClientAdapter.svnkit. The included svnkit
> should contain the fix, try to install the nbm and let me know if it helps.
> If not, attach updated heap dump.
Thank you, Ondra.

CR_20258172 is updated accordingly. Waiting for the customer verification.

Thank you very much again!
Comment 13 Vladimir Voskresensky 2014-12-24 10:17:22 UTC
(In reply to Ondrej Vrabec from comment #7)
> (In reply to Vladimir Voskresensky from comment #6)
> > If SVNKit with the fix is not yet available, we need to bundle the last one
> > without regression
> No way NetBeans goes down back to SVNKit 1.7 (which was bundled along with 
> 7.4 [1]) and completely drop the support for Subversion 1.8 
Sorry for confusion. 
I meant downgrade to i.e. 1.8.4 if bug was introduced in current 1.8.5. 

Anyway it doesn't look necessary for now. 
We'd better wait for any official 1.8.Next with the fix.
Comment 14 Ondrej Vrabec 2014-12-24 10:24:25 UTC
(In reply to Vladimir Voskresensky from comment #13)
> I meant downgrade to i.e. 1.8.4 if bug was introduced in current 1.8.5. 
I don't think it would help. The relevant code is there since 2009-04-22 (from svnkit's git blame) so downgrading to any 1.8.x version would make a difference.
But they promise to deliver a new stable release soon, so i believe in few weeks we'll be able to upgrade.
Comment 15 Vladimir Voskresensky 2014-12-24 10:29:02 UTC
(In reply to Ondrej Vrabec from comment #14)
> (In reply to Vladimir Voskresensky from comment #13)
> > I meant downgrade to i.e. 1.8.4 if bug was introduced in current 1.8.5. 
> I don't think it would help. The relevant code is there since 2009-04-22
> (from svnkit's git blame) so downgrading to any 1.8.x version would make a
> difference.
> But they promise to deliver a new stable release soon, so i believe in few
> weeks we'll be able to upgrade.
This is great. Usually all this official communications with customers takes time, so we have this weeks :-)
Comment 16 Vladimir Voskresensky 2015-01-12 15:29:18 UTC
Ondra, the OOM fix was included into SVNKit 1.8.7 
Could you, please, integrate it? (and into release801 branch as well)

Thanks!
Comment 17 Ondrej Vrabec 2015-01-23 10:39:12 UTC
upgrading svnkit. If it helps your user, i will either backport to 8.0.1/2 or let you cherry-pick the commit into the branch you're building on.

fix: http://hg.netbeans.org/core-main/rev/a4cc3e5c6a81
Comment 18 Quality Engineering 2015-01-24 02:34:59 UTC
Integrated into 'main-silver', will be available in build *201501240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a4cc3e5c6a81
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #249094 - OutOfMemoryError: Java heap space
Upgrade SVNKit to 1.8.7
Comment 19 Vladimir Voskresensky 2015-01-26 16:07:23 UTC
Ondra,
Could you, please, transplant fix into release801 branch (for upcoming 8.0.2 Patch 1).

Thanks!
Vladimir.
Comment 20 Ondrej Vrabec 2015-01-26 16:14:41 UTC
Did it help? Does the upgrade fix your customer's issue?
Comment 21 Ondrej Vrabec 2015-01-26 16:20:50 UTC
... marian, tonda, do you agree with backporting an external library's update to 8.0.2?
Comment 22 Vladimir Voskresensky 2015-01-26 16:34:50 UTC
(In reply to Ondrej Vrabec from comment #20)
> Did it help? Does the upgrade fix your customer's issue?
We hope, yes :-)
Comment 23 Antonin Nebuzelsky 2015-01-28 17:18:30 UTC
(In reply to Ondrej Vrabec from comment #21)
> ... marian, tonda, do you agree with backporting an external library's
> update to 8.0.2?

I agree, assuming we can make sure that the upgrade does not break anything for the users. By testing, or at least by judging from the changelogs between 1.8.4 and 1.8.7.
Comment 24 Vladimir Voskresensky 2015-01-28 17:24:45 UTC
Ondrej pushed new SVNKit on 24th of Jan. Do we have any known bug reports related to this upgrade?
Comment 25 Ondrej Vrabec 2015-01-30 10:25:21 UTC
(In reply to Vladimir Voskresensky from comment #24)
> Ondrej pushed new SVNKit on 24th of Jan. Do we have any known bug reports
> related to this upgrade?
No, we don't. Too early to make any conclusion however.
But looking at the change logs, it looks mostly as a lot of bugfixes and some performace improvements: http://svn.svnkit.com/repos/svnkit/tags/1.8.7/CHANGES.txt
Comment 26 Ondrej Vrabec 2015-02-02 15:01:31 UTC
i will backport to 801 branch on Friday unless there are any objections
Comment 28 Vladimir Voskresensky 2015-02-06 09:41:36 UTC
Ondrej, thank you so much!