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 121691 - OutOfMemoryError when starting NS after installing plugins
Summary: OutOfMemoryError when starting NS after installing plugins
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-11 20:51 UTC by damian_nb
Modified: 2008-12-22 10:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
logs (11.65 KB, text/plain)
2007-11-11 20:52 UTC, damian_nb
Details
logs (24.96 KB, text/plain)
2007-11-12 22:33 UTC, damian_nb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description damian_nb 2007-11-11 20:51:55 UTC
with build RC1 I'm having this exception:

WARNING [org.openide.loaders.FolderList]: cannot compute data objects for MultiFileObject@a5f709[Services]
java.lang.OutOfMemoryError: Java heap space
	at org.netbeans.core.startup.layers.BinaryFS.getString(BinaryFS.java:235)
	at org.netbeans.core.startup.layers.BinaryFS$BFSBase.initialize(BinaryFS.java:413)
	at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:366)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:822)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:782)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:818)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:782)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:715)
	at org.openide.loaders.DataLoaderPool.getPreferredLoader(DataLoaderPool.java:466)
	at org.openide.loaders.DataLoaderPool.findDataObject(DataLoaderPool.java:401)
	at org.openide.loaders.FolderList.createBoth(FolderList.java:740)
	at org.openide.loaders.FolderList.getObjects(FolderList.java:543)
	at org.openide.loaders.FolderList.access$300(FolderList.java:74)
	at org.openide.loaders.FolderList$ListTask.computeResult(FolderList.java:930)
[catch] at org.openide.loaders.FolderList$ListTask.run(FolderList.java:908)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
Comment 1 damian_nb 2007-11-11 20:52:18 UTC
Created attachment 52856 [details]
logs
Comment 2 damian_nb 2007-11-11 20:58:09 UTC
I'm getting this each time when NB is starting

let me know how can I help you to reproduce this or to provide you more information how to fix it

is it any debug mode or something which prints more information than in attached log?
Comment 3 damian_nb 2007-11-12 22:32:40 UTC
how can I complete this issue? I'm still able to reproduce this problem
Comment 4 damian_nb 2007-11-12 22:33:24 UTC
Created attachment 52901 [details]
logs
Comment 5 Marian Mirilovic 2007-11-13 06:56:01 UTC
Please look at http://wiki.netbeans.org/wiki/view/FaqNetBeansAndOOME for some hints. 

What is the size of your RAM ? Can you please write what was the action before OOME ? How big is the project(s) you are
working on ? Thanks in advance.

Comment 6 damian_nb 2007-11-13 08:55:15 UTC
standard configuration except -Xms256m and -Xmx384m - but this is the configuration which I used before
!GM RAM
project ~150 small (20-50 lines) classes

before OOME I modified list of plugins - some of them should be enabled after restart, one new installed ond (not sure)
a few uninstalled - it was quite complex operation and if history of this was stored somewhere, let me know so I will
attach it


OOME occurs when plugins are loaded, then progress bar is stoped and box with exception is fired (see attached dump) -
no matter you close this dialog or not after a few seconds application is shut down

IMO - there is something wrong with plugin manager or some plugin occurs this problem
Comment 7 Petr Nejedly 2007-11-13 09:32:30 UTC
It seems that your userdir get somehow corrupted.
Please delete a file named all-layers.dat in $NBUSER/var/cache

I don't know how can the cache get corrupted this way. Moreover, the cache is evaluated/accessed very lazily, so the
code can't even recognize the corruption during the cache check.
As this is the first such report in years of having the cache in place, I suspect that something unusual happened to
your userdir and closing this as WONTFIX. If the problem reappears after you delete the file and restart NetBeans
_twice_, please reopen and attach the (newly generated) all-layers.dat.
Comment 8 damian_nb 2007-11-13 19:44:34 UTC
it helped :)

I don't have idea what corrupted my profile so if you think it is worth to attach cache for future I will do this