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 242851 - Netbeans hangs after double-clicking on "Usages" search result entries
Summary: Netbeans hangs after double-clicking on "Usages" search result entries
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P1 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-13 09:37 UTC by kliteyn
Modified: 2014-03-21 09:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (24.23 KB, text/plain)
2014-03-13 14:59 UTC, kliteyn
Details
Stack trace for 8.0 RC1 (20.24 KB, text/plain)
2014-03-16 09:55 UTC, kliteyn
Details
Stack trace for latest dev version (24.04 KB, text/plain)
2014-03-16 10:17 UTC, kliteyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kliteyn 2014-03-13 09:37:44 UTC
Netbeans hangs after double-clicking on "Find Usages" results.

Detailed description:
  Put the cursor on any C variable/function/anything
  Press "Alt-F7" to find usages in the projet and hit "Find"
  You get "Usages" output window.
  Double-click on a couple of the results (usually one is enough)
  - The whole IDE is stuck.
    2-3 Java processes are consuming about 10% CPU, rest are pretty quiet.


System:
  Red Hat Enterprise Linux Server 6.2
  jdk-1.7.0_25 and jdk-1.7.0_40 (same behavior with both of them)

  Product Version: NetBeans IDE 7.4 (Build 201310111528)
  Updates: NetBeans IDE is updated to version NetBeans 7.4 Patch 2
  Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
  Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
  System: Linux version 2.6.32-220.el6.x86_64 running on amd64; UTF-8; en_US (nb)

P.S.: If I need to provide more info (logs, stack trace, etc), please point me to the instructions how to do it.
Comment 1 Vladimir Voskresensky 2014-03-13 09:53:20 UTC
we need:
http://wiki.netbeans.org/GenerateThreadDump
and the following might helps as well:
http://wiki.netbeans.org/FaqProfileMeNow
Comment 2 kliteyn 2014-03-13 14:59:38 UTC
Created attachment 145996 [details]
Stack trace

Stack trace of hanging IDE
Comment 3 kliteyn 2014-03-13 15:03:24 UTC
Attaches stack trace of hanging IDE.

For some reason "kill -3" doesn't work on NetBeans - it is just ignored,
but I was able to generate the stack with jstack.

As for the second item (profiling) - I believe that it is irrelevant.
It's not that IDE becomes slow - it is just hangs. It doesn't even redraw the GUI. If I drag a window above NetBeans when it is stuck, it leaves blank trail on the whole area when the window went through.
Comment 4 Vladimir Voskresensky 2014-03-13 16:49:21 UTC
could you, please, try NB 8.
It looks like the issue #241692
Comment 5 kliteyn 2014-03-13 17:13:10 UTC
It could be the same issue as you're pointing out, not sure about it though.
It's not that I can't get to "find usage" results - the whole IDE is stuck, and I don't see any log message and/or exception window.
You can probably check by stack traces - I didn't examine them.

In any case, I don't see this problem in NB 8.0 RC1.
Comment 6 Vladimir Voskresensky 2014-03-14 12:16:19 UTC
thanks for verification in RC1

*** This bug has been marked as a duplicate of bug 241692 ***
Comment 7 kliteyn 2014-03-16 09:52:45 UTC
It has just happened with NB 8.0 RC1.
Please see my previous comment - from the symptoms, it doesn't look like duplicate of the issue that you've marked.
But you're the expert - if you see that stack traces are similar, then you know better.

In any case, I'm reopening the issue and changing the version from 7.4 to 8.0.

I'll also attach a new 8.0 stack trace shortly.
Comment 8 kliteyn 2014-03-16 09:55:12 UTC
Created attachment 146048 [details]
Stack trace for 8.0 RC1
Comment 9 kliteyn 2014-03-16 10:17:13 UTC
I've just tried latest dev version - same problem.
Attaching the new trace.
Comment 10 kliteyn 2014-03-16 10:17:56 UTC
Created attachment 146049 [details]
Stack trace for latest dev version
Comment 11 kliteyn 2014-03-16 10:20:36 UTC
Updated version info:

Product Version: NetBeans IDE Dev (Build 201403160001)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 2.6.32-220.el6.x86_64 running on amd64; UTF-8; en_US (nb)
Comment 12 Vladimir Voskresensky 2014-03-16 21:13:30 UTC
Thanks for stacks. 
Can you reproduce the issue on a simple project (i. e. Quote C++ sample project)?
Comment 13 kliteyn 2014-03-17 13:25:21 UTC
Nope, can't reproduce it with sample projects.
Tried it with "Quote C++ sample project" and some other project - works OK.
Comment 14 Vladimir Voskresensky 2014-03-17 18:44:11 UTC
I also can not reproduce...
Can you try and investigate specific of your source base, please?
I.e. Can you check if your paths contains symlinks.
Comment 15 kliteyn 2014-03-20 19:38:19 UTC
Just want to mention: I'm not abandoning this issue,
but for some reason I can't reproduce it any more.

Do you have enough info in the stacks to get going?

In any case, will update when the issue is back.
Comment 16 Vladimir Voskresensky 2014-03-21 09:42:56 UTC
Unfortunately, it is not clear from stack why some events are not delivered (=> infinite wait).
Please, reopen the bug when have more information.
What can help me to analyze the issue:
1) Run IDE with extra option
#netbeans -J-Dorg.netbeans.modules.cnd.editor.cos.COSRedirectorImpl.level=0

If you get the issue with such extra log, then you can try to disable:
run IDE with extra option
#netbeans -J-Dnb.cosredirector=false