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 10688 - Swing is manipulated from threads other than AWT thread
Summary: Swing is manipulated from threads other than AWT thread
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-26 15:24 UTC by _ ttran
Modified: 2008-12-22 20:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (24.30 KB, text/plain)
2001-03-28 11:49 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ ttran 2001-03-26 15:24:34 UTC
in openide/core there are many places when Swing components are manipulated in
non-AWT thread.  This is a problem in general and a huge problem for the form
editor (deadlock).  A quick glance in the code found that at least   
CloneableOpenSupport.open() and EditorSupport.createCloneableTopComponent() are
the culprits.
Comment 1 Jan Zajicek 2001-03-27 07:56:24 UTC
Yarda, do you have any hint how to find these places (simply and fast)?
Comment 2 Jaroslav Tulach 2001-03-28 11:18:22 UTC
Marek, please fix the problem in CloneableOpenSupport.open () and also in
CloneableOpenSupport.close ()

The best way is to encapsulate the content of open () and close methods by 
Mutex.EVENT.writeAccess (Runnable) in the first case and Mutex.EVENT.writeAccess
(Mutex.Action) in the later.

I will modify the OpenAction to be always invoked in AWT thread meanwhile.

Marek, when you finish, set this bug to RESOLVED, REMIND so Trung can provide us
more places where we should continue with bug fixes.
Comment 3 Jiri Skrivanek 2001-03-28 11:49:16 UTC
Created attachment 904 [details]
Thread dump
Comment 4 Jiri Skrivanek 2001-03-28 11:51:51 UTC
Deadlock (see attached thread dump) occured during gui testing of JDBC Form
wizard while opening generated Form (build 010327_2_IE). It may help.
Comment 5 mslama 2001-03-28 13:17:36 UTC
Changes done in CloneableOpenSupport methods open() and close() as Yarda suggested.
Comment 6 Lukas Hasik 2002-01-10 15:22:06 UTC
Trung, 

could you provide more places where to continue with bug fixes ?
Otherwise close this bug as fixed.

Comment 7 mslama 2002-02-18 13:39:42 UTC
Closing this bug. If anybody finds suspicious code please reopen or
file new issue.
Comment 8 mslama 2002-02-18 13:41:08 UTC
Mark as fixed.
Comment 9 Marian Mirilovic 2003-07-14 17:11:19 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.