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 68266 - Threads view displays incorrect data when any profiling is used
Summary: Threads view displays incorrect data when any profiling is used
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 10:25 UTC by ehucka
Modified: 2006-10-09 10:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (16.70 KB, image/png)
2005-11-29 16:49 UTC, ehucka
Details
screenshot2 (11.38 KB, image/png)
2005-11-30 18:20 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2005-11-08 10:25:23 UTC
Threads monitor UI in IDE shows states:

RSSSSSSSSSWWWW

But automated tests returns:

RSSSSZZZZZWRWW

The main thread of the application starts another thread and it is joined to the
started thread.
Comment 1 ehucka 2005-11-29 16:48:52 UTC
I've tested it manualy on windows and it is probably visible (zombie states) by
ui on Threads view. A thread's state bar contains sometimes white gaps.
Comment 2 ehucka 2005-11-29 16:49:33 UTC
Created attachment 27394 [details]
screenshot
Comment 3 iformanek 2005-11-30 15:20:36 UTC
Is this windows only? What is the profiled application?
Comment 4 iformanek 2005-11-30 15:27:02 UTC
I cannot reproduce this on Windows with Tomcat, please be more specific about 
the steps to reproduce.
Comment 5 ehucka 2005-11-30 16:04:58 UTC
To reproduce:
1. create web sample project
2. invoke profile main project - cpu, entire, profile server code
3. open threads states view

I cannot reproduce it manualy if I set only the Monitor application task.
Comment 6 iformanek 2005-11-30 16:27:20 UTC
Emane, it would be much much better if I had this type of information as part 
of the bug report. Having to go again through the same tedious process of 
trying to figure out the combination of things that lead to the issue just 
makes us inefficient.

Do you know if this happens only for CPU profiling, only on Tomcat and only if 
Entire App server is selected?
Comment 7 ehucka 2005-11-30 18:19:31 UTC
I've omitted that automated tests call
ProfilerClient.initiateRecursiveCPUProfInstrumentation(...).

I have reproduced it with both Web Application and GUI application by cpu and
memory profiling. I couldn't reproduce it by code region profiling.

I found another strange behaviour. Some threads (suspect these with gaps) are
shown 'multiple' (AWT-Event-Queue or main) see screenshot.
Comment 8 ehucka 2005-11-30 18:20:17 UTC
Created attachment 27453 [details]
screenshot2
Comment 9 iformanek 2005-12-07 13:58:10 UTC
Fixed in M12, apparently, the Threads view only worked in monitoring mode, 
starting with M10.
Comment 10 ehucka 2005-12-22 09:48:14 UTC
verified