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 82505 - topComponentActivatedNodesChanged is not invoked from AWT thread
Summary: topComponentActivatedNodesChanged is not invoked from AWT thread
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-08-11 16:21 UTC by Tomas Hurka
Modified: 2007-02-05 12:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2006-08-11 16:21:20 UTC
Run AnagramGame, memory profiling, track stack traces. 
In live results window invoke 'Take snapshot and Show Allocation stacktaces'

java.lang.IllegalStateException: Assertion failed. WindowsAPI is required to be called from AWT thread 
only, see http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/
threading.html
	at org.netbeans.core.windows.WindowManagerImpl.assertEventDispatchThreadWeak
(WindowManagerImpl.java:1191)
	at org.netbeans.core.windows.WindowManagerImpl.topComponentActivatedNodesChanged
(WindowManagerImpl.java:1095)
	at org.openide.windows.TopComponent.setActivatedNodes(TopComponent.java:279)
	at org.netbeans.modules.profiler.SnapshotResultsWindow.updateSaveState
(SnapshotResultsWindow.java:142)
	at org.netbeans.modules.profiler.SnapshotResultsWindow.<init>(SnapshotResultsWindow.java:
120)
	at org.netbeans.modules.profiler.SnapshotResultsWindow.get(SnapshotResultsWindow.java:76)
	at org.netbeans.modules.profiler.LiveResultsWindow$MemoryActionsHandler$1.run
(LiveResultsWindow.java:550)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:525)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:957)
WARNING [global]
Comment 1 Tomas Hurka 2006-08-11 16:22:32 UTC
This is a regression cause by fix of issue #74914
Comment 2 Jiri Sedlacek 2006-08-11 16:49:08 UTC
Fixed, affected code is run from event dispatch thread again. Note that this 
bug seems to occur on all systems except Windows.
Comment 3 Alexander Kouznetsov 2007-02-05 12:28:19 UTC
Verified with

Profiler 070205
NetBeans IDE Dev (Build 200702011900)
1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251