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 221977 - OutOfMemory on expand database node
Summary: OutOfMemory on expand database node
Status: RESOLVED DUPLICATE of bug 221817
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
: 221980 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-12 15:36 UTC by Sergey Petrov
Modified: 2012-11-14 07:45 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
message.log but I see nothing db related here (59.08 KB, application/octet-stream)
2012-11-12 16:20 UTC, Sergey Petrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2012-11-12 15:36:51 UTC
got it with next steps
- register new mysql database
- start it
- create new db with  grand all to root::1
- go to connection url node
- expand this url, 
- expand newly created db node(default one/bold one)
see tables and views node and 'wait..' node on 3rd inner node place
ide freeze
headdump is automatically created
Comment 1 Sergey Petrov 2012-11-12 15:43:38 UTC
see http://deadlock.netbeans.org/hudson/job/upload/100/parameters/?
should be at least P2 in my opinion
Comment 2 Jaroslav Havlin 2012-11-12 16:02:19 UTC
The issue could be related to bug 221817.
Can you please verify it? (The fix is simple,
see http://hg.netbeans.org/core-main/rev/0c9de3ddbd5c).
Comment 3 Sergey Petrov 2012-11-12 16:15:22 UTC
It's hard to say, I'm trying to evaluate the dump but my system is too slow right now.
On top there are a lot of StackTraceElemenst so OOM may be exception reporter related but on other side it may mean some stackoverlow exception in db as latest actions was in Services/DB
Comment 4 Sergey Petrov 2012-11-12 16:20:29 UTC
Created attachment 127643 [details]
message.log but I see nothing db related here
Comment 5 Sergey Petrov 2012-11-12 16:22:09 UTC
there is wrong link to head dump above,
proper one should be http://deadlock.netbeans.org/hudson/job/upload/101/parameters/?
Comment 6 Jaroslav Havlin 2012-11-12 16:39:13 UTC
*** Bug 221980 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Havlin 2012-11-12 16:47:41 UTC
> On top there are a lot of StackTraceElemenst so OOM may be exception reporter
> related but on other side it may mean some stackoverlow exception in db as
> latest actions was in Services/DB
One of symptoms of bug 221817 is StackOverflow, so it might be related.

> proper one should be
> http://deadlock.netbeans.org/hudson/job/upload/101/parameters/?
Thank you, I'll try to analyze it too (after I download it).
Comment 8 Sergey Petrov 2012-11-12 16:59:26 UTC
if it's the case oom may be need to be filed as separate issue for exception reporter in case of stackoverflow.
Comment 9 Sergey Petrov 2012-11-12 17:22:51 UTC
as stacktrace element have nothing common with reporter and is part of exception, I may be wrong above. Hard to say yet if it's related to fixed issue, I see stacktrace elements contain Nodes and number of related methods and don't see binding to db yet, it's better to know relative area to knwo what to look for.
Comment 10 Jaroslav Havlin 2012-11-12 17:33:54 UTC
(In reply to comment #9)
> as stacktrace element have nothing common with reporter and is part of
> exception, I may be wrong above. Hard to say yet if it's related to fixed
> issue, I see stacktrace elements contain Nodes and number of related methods
> and don't see binding to db yet, it's better to know relative area to knwo what
> to look for.
I'm not sure, but I think it is related. Several strange problems were reported against db module since Friday. The problem in the fixed issue is that a node was assigned to two parents, which makes the IDE very unstable (I don't know why it started to cause the error, as it worked fine before).

The biggest object in the heapdump is an IllegalStateException. Maybe the memory was consumed before the exception could have been logged:

Class Name                                Retained Size
----------                                -------------
java.lang.IllegalStateException#2503      128 273 346
Comment 11 Sergey Petrov 2012-11-12 20:49:49 UTC
just got next output :
Caused: java.lang.IllegalStateException: Cannot initialize 0th child of node org.netbeans.modules.db.explorer.node.SchemaNode[name=lab6][Name=lab6, displayName=
lab6]; it already belongs to node org.netbeans.modules.db.explorer.node.CatalogNode[name=lab6][Name=lab6, displayName=lab6] (did you forgot to use cloneNode?)
Children of new node: null
Children of old node: null
Caused: java.lang.IllegalStateException: Cannot initialize 0th child of node org.netbeans.modules.db.explorer.node.SchemaNode[name=lab6][Name=lab6, displayName=
lab6]; it already belongs to node org.netbeans.modules.db.explorer.node.CatalogNode[name=lab6][Name=lab6, displayName=lab6] (did you forgot to use cloneNode?)
Children of new node: null
Children of old node: null
Caused: java.lang.IllegalStateException: Cannot initialize 0th child of node org.netbeans.modules.db.explorer.node.SchemaNode[name=lab6][Name=lab6, displayName=
lab6]; it already belongs to node org.netbeans.modules.db.explorer.node.CatalogNode[name=lab6][Name=lab6, displayName=lab6] (did you forgot to use cloneNode?)
Children of new node: null
Children of old node: null

and finally OOM, on the same action, will try after fix propagation.
Comment 12 Sergey Petrov 2012-11-13 19:09:05 UTC
it's not in our repository yet, so can't verify yet, may be closed as duplicate anyway, will reopen if will be able to reproduce.
Comment 13 Jaroslav Havlin 2012-11-14 07:45:43 UTC
(In reply to comment #12)
> it's not in our repository yet, so can't verify yet, may be closed as duplicate
> anyway, will reopen if will be able to reproduce.
OK, closing as duplicate. Thank you very much.

*** This bug has been marked as a duplicate of bug 221817 ***