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 216888 - Navigate Go to Source (Right click action) hangs on second attempt.
Summary: Navigate Go to Source (Right click action) hangs on second attempt.
Status: RESOLVED DUPLICATE of bug 216053
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-14 22:58 UTC by rkite
Modified: 2012-08-29 13:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rkite 2012-08-14 22:58:59 UTC

    
Comment 1 rkite 2012-08-14 23:22:02 UTC
When editing a java class if the user right clicks on a JPA pojo java class definition and chooses "Navigate|Go to Source" it works fine the first time.  When you return back to the original class and highlight the same JPA pojo java class definition and right click on it the IDE hangs for over a minute before popping up the dialog.   The IDEs memory usage also spikes up very high.  If you do it 3 or 4 times the IDE hangs eats up all available JVM memory and has to be killed manually. 

PersonJpaBean personInstance = null;   

  Highlight "PersonJpaBean" right click select "navigate| Go to Source" go back to original class and do it again the IDE hangs.

Using Oracle JDK 1.6.0_34 32bit on Windows 7 64bit.  This works fine in Netbeans 7.1.
Comment 2 Petr Somol 2012-08-15 08:56:09 UTC
Milo please evaluate..
Comment 3 bht 2012-08-27 06:08:28 UTC
This looks like a duplicate of bug 216053
Could you please try a later dev build?
Comment 4 Milutin Kristofic 2012-08-27 12:54:21 UTC
It seems JPA-specific. Sergey, is it duplicate of Bug #216053 as bht suggesting?
Comment 5 Sergey Petrov 2012-08-27 13:39:27 UTC
can't say, not so much details, 
 rkite can you try latest dev build? and reopen the issue if it's reproducible and please provide snapshot in this case.

*** This bug has been marked as a duplicate of bug 216053 ***
Comment 6 rkite 2012-08-27 13:46:14 UTC
(In reply to comment #5)
> can't say, not so much details, 
>  rkite can you try latest dev build? and reopen the issue if it's reproducible
> and please provide snapshot in this case.
> 
> *** This bug has been marked as a duplicate of bug 216053 ***

  I can give it a try.  I have switched back to 7.2.1 which works fine.  


   Others here have seen the runaway memory problem as well.  Our project is large over 1 million lines of code so it is a good test.
Comment 7 rkite 2012-08-27 15:23:11 UTC
  The right click "Navigate|Go to Source" issues appears to be fixed.  


  The memory issue may be as well but it does use more memory than the 7.1.2 release.  The 7.2 release IDE would eventually eat up all of the memory allocated (1024meg) and hang.  My memory settings are -JXms512m -JXmx1024m.   With only 5 classes open in the editor the memory is climbing to over 400 meg but then returns to 314 meg.  This issue maybe fixed as well but I will not know until I push it with some development time.   

Thanks
Comment 8 Sergey Petrov 2012-08-27 15:47:19 UTC
ok, thanks. nice to have navigation fixed.
memory may be either related to persistence or not, or be a combination of features. when I'm working with nb modules(do not contain persistence support at all I have jumps up to 700mb and back to usual level 300mb and it doesn't mean memory leak in my opinion as usage is restored after jumps. But may it's not good too especially for "5 classes".
Comment 9 rkite 2012-08-27 16:32:01 UTC
(In reply to comment #8)
> ok, thanks. nice to have navigation fixed.
> memory may be either related to persistence or not, or be a combination of
> features. when I'm working with nb modules(do not contain persistence support
> at all I have jumps up to 700mb and back to usual level 300mb and it doesn't
> mean memory leak in my opinion as usage is restored after jumps. But may it's
> not good too especially for "5 classes".

  The memory issue was happening to several of us using 7.2.  It appears to be a different issue.  It would fairly quickly eat up all the memory and then hang. Happened even when only 1 class was open in the editor.
Comment 10 rkite 2012-08-29 13:51:40 UTC
   Looks like the run away memory issue is fixed as well.  

   After a few days of development with a large project NetBeans Build 201208270001 is working well for several developers.  

--Thanks
Rodney