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 211731

Summary: Netbeans stalls when debugging is stopped while inspecting variables in "Editor View"
Product: debugger Reporter: K__P
Component: CodeAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Screenshot of NB after it deadlocks
Message Log after NB deadlocked

Description K__P 2012-04-25 17:58:21 UTC
I find that when I set a breakpoint, start the program, point the mouse over a variable to view the content of a variable, and then press the icon to stop the debugger with the pop-up window with the variable's content still visible, then Netbeans stalls and I have to end it via Windows' TaskManager.
Comment 1 Martin Entlicher 2012-04-25 19:13:14 UTC
Well, I can not reproduce that. Can you please provide a thread dump?
http://wiki.netbeans.org/GenerateThreadDump

Any time NetBeans stops responding, it's important to generate the thread dump, which usually has enough information about the problem.

Also, messages.log file is helpful in case the lockup is a consequence of some exceptions or errors.
The messages.log file is located in <NetBeans user dir>\var\log\ folder.
Comment 2 Jiri Kovalsky 2012-04-26 08:43:53 UTC
I cannot reproduce it either on Windows 7 in NetBeans 7.0.1 with JDK 7. BTW, I don't understand how you can click the "Finish Debugger Session" button while a popup window still shows content of some variable. When I hover my mouse over a variable its value is displayed but when I move elsewhere the popup window immediately disappears. If you see this again, please generate the thread dump and also make a screenshot. Thanks!
Comment 3 Martin Entlicher 2012-04-26 08:51:28 UTC
IMHO it's the "big" popup window that is displayed when you expand the tooltip. That window really stays open, when I move to the toolbar, but I didn't get any deadlock.
Comment 4 Jiri Kovalsky 2012-04-26 09:11:20 UTC
Yes, it also occurred to me and nothing strange happened when I expanded the variable and left the window opened while stopping the session.
Comment 5 K__P 2012-04-27 18:15:40 UTC
Created attachment 118891 [details]
Screenshot of NB after it deadlocks
Comment 6 K__P 2012-04-27 18:17:03 UTC
Created attachment 118892 [details]
Message Log after NB deadlocked
Comment 7 K__P 2012-04-27 18:20:21 UTC
I can reproduce the deadlock of NB when stopping the debugger while inspecting a variable in the "big" popup window after expanding the tool tips to inspect, e.g. an ArrayList as in the screenshot.

Interestingly, I did not see any ThreadDump output in the console after NB deadlocked, as you can also see on the screen shot.
Comment 8 Jiri Kovalsky 2012-05-03 11:00:51 UTC
You cannot see it. It does not show up itself. You must generate it. I recommend to download VisualVM [1] and run it when IDE locks and generate Full Thread Dump from VisualVM by right clicking "NetBeans IDE" node and choosing "Thread Dump" from popup menu. Then save it and attach here. Thanks!

[1] http://visualvm.java.net/download.html