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 195358 - Monitors sometimes stay displayed if turned off
Summary: Monitors sometimes stay displayed if turned off
Status: VERIFIED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: PC Linux
: P4 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2011-02-11 20:42 UTC by Jiri Kovalsky
Modified: 2011-07-15 21:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Displayed monitors although "Show monitors" option is turned off. (132.34 KB, image/png)
2011-02-11 20:42 UTC, Jiri Kovalsky
Details
Screenshot of missing monitors. (126.71 KB, image/png)
2011-07-15 20:55 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2011-02-11 20:42:07 UTC
Created attachment 105907 [details]
Displayed monitors although "Show monitors" option is turned off.

Product Version: NetBeans IDE 7.0 Beta 2 (Build 201102100000)
Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09
System: Linux version 2.6.35-22-generic running on amd64; UTF-8; cs_CZ (nb)
Userdir: /home/cesilko/.netbeans/7.0beta2

Description:
============
Turning on "Show monitors" option in the Debugging view always repaints the tree with threads and shows corresponding monitors. However, sometimes these stay displayed in spite of turning that option off. See attached screenshot.

Steps to reproduce:
===================
1. Follow "Monitors" test case of "Debugging application (Multithread)" test suite in Debugger Sanity Test Specification [1].
2. When you get all monitors displayed, push the "Show monitors" button again.
3. If monitors hide, try turning that option on and off with short pauses until the bug exhibits itself.

[1] http://wiki.netbeans.org/TS_68_Debugger_Sanity
Comment 1 Martin Entlicher 2011-02-22 15:21:21 UTC
I'm not able to reproduce this at all. :-( The monitors are displayed reliably for me.
Comment 2 Martin Entlicher 2011-02-22 16:05:17 UTC
Perhaps this is only reproducible on 64 bits?
Jiri, can you please try it on 32 bits? I'm not able to reproduce it at all on 32bits Linux 2.6.35-25-generic-pae
Comment 3 Martin Entlicher 2011-04-19 15:28:07 UTC
Seems to be a random issue, I did not reproduced it yet.
Comment 4 Martin Entlicher 2011-07-14 09:55:47 UTC
I was not able to reproduce any problem, resolving as works for me.
Comment 5 Jiri Kovalsky 2011-07-14 09:57:21 UTC
Me neither. Probably some hiccup on my end. Verifying...
Comment 6 Jiri Kovalsky 2011-07-15 20:55:30 UTC
Created attachment 109460 [details]
Screenshot of missing monitors.

I have reproduced it again. Please see the screenshot. This was in NetBeans IDE 7.0.1 RC build #201107102202 with JDK 7 build #147 on Windows 7. Reopening...
Comment 7 Martin Entlicher 2011-07-15 21:15:31 UTC
Why do you think that you should see any monitor in this case?
This is a bad example, since the current program counter is *before* synchronized statement.

Please change the code to:
synchronized (this) {  
    i++;
}
and check if you'll see the monitors when suspended on the "i++" line. Inside the synchronized statement.
Comment 8 Jiri Kovalsky 2011-07-15 21:26:08 UTC
Oh yes, you are right. That was a silly mistake. :) Verifying...