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 144438 - State column of threads view shows incorrect state
Summary: State column of threads view shows incorrect state
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-19 19:12 UTC by Petr Cyhelsky
Modified: 2012-10-10 11:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot - tooltip and state disagree (751.46 KB, image/tiff)
2008-08-19 19:14 UTC, Petr Cyhelsky
Details
popup menu items and state disagree (765.05 KB, image/tiff)
2008-08-19 19:18 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2008-08-19 19:12:58 UTC
Product Version: NetBeans IDE Dev (Build 200808190201)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-120
System: Mac OS X version 10.4.11 running on i386; MacRoman; en_US (nb)

The state column of threads view shows incorrect state for one of threads(AWT-EventQueue-0) - see the attached screenshot  - the debugging view, tooltip 
on the thread in threads view and the choice of enabled items in popup menu on it(resume enabled) are as if the thread is waiting, but in the state column it 
is "running"

Steps to reproduce: just start the memory Viewer application and open threads view
Comment 1 Petr Cyhelsky 2008-08-19 19:14:15 UTC
Created attachment 67838 [details]
screenshot - tooltip and state disagree
Comment 2 Petr Cyhelsky 2008-08-19 19:18:51 UTC
Created attachment 67839 [details]
popup menu items and state disagree
Comment 3 Daniel Prusa 2008-08-20 13:17:36 UTC
Mac specific or random (not reproducible for me on Windows). Nevertheless, thread state is correct in Debugging View
which  should be used prior to Threads View. Decreasing priority to P4.
Comment 4 Jiri Kovalsky 2010-09-30 14:44:04 UTC
This is not a random issue nor Mac specific issue. I am able to reproduce it on my Ubuntu 9.04 with NetBeans 6.9.1 on Java 6 update 22.

Steps to reproduce:
===================
1. Generate new AnagramGame sample project.
2. Press Ctrl+F5 to start debugging main project.
3. Invoke "Window > Debugging > Threads" from main menu.
4. You will see that although AWT-EventQueue-0 is running in Debugging view, the Threads tab will claim the same thread as Waiting.
5. If you suspend it, the Debugging view will correctly state Suspended but Threads will still show Waiting state.
Comment 5 Martin Entlicher 2011-04-22 21:42:56 UTC
The previous comment describes something different, which is actually O.K.

Debugging window displays just two thread states - running or suspended.
Tooltip on the thread displays the state in the VM (regardless of debugger suspended state) - waiting, sleeping, running,...

Threads view displays the state in the VM in the "State" column and debugger suspend state in the optional "Suspended" column.
Comment 6 Martin Entlicher 2012-10-10 11:48:38 UTC
The text in the State column looks O.K. now.