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 21946 - Deadlock in winsys while trying to reorder TopComponents outside AWT thread.
Summary: Deadlock in winsys while trying to reorder TopComponents outside AWT thread.
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2002-03-28 13:51 UTC by Peter Zavadsky
Modified: 2008-12-23 12:16 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Full thread dump (10.54 KB, patch)
2002-03-28 14:04 UTC, Peter Zavadsky
Details | Diff
Diff of patch (1.13 KB, patch)
2002-03-28 14:42 UTC, Peter Zavadsky
Details | Diff
I'm sorry the above diff was incomplete. (1.37 KB, patch)
2002-03-28 15:04 UTC, Peter Zavadsky
Details | Diff
Patch for orion_fcs (it contains fixes for both #21921 and #21946) (23.46 KB, application/zip)
2002-03-28 15:29 UTC, Peter Zavadsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Zavadsky 2002-03-28 13:51:14 UTC
See attachment.
Comment 1 Peter Zavadsky 2002-03-28 14:04:07 UTC
Created attachment 5224 [details]
Full thread dump
Comment 2 _ ttran 2002-03-28 14:12:43 UTC
added THREAD keyword
Comment 3 Peter Zavadsky 2002-03-28 14:40:05 UTC
Fixed in [main-trunk]

Fix:
core/../windows/layers/ModeData.java [1.73]
Comment 4 Peter Zavadsky 2002-03-28 14:42:56 UTC
Created attachment 5227 [details]
Diff of patch
Comment 5 Peter Zavadsky 2002-03-28 14:44:34 UTC
Please review the patch.
Comment 6 Peter Zavadsky 2002-03-28 14:50:12 UTC
Problem is similar like in the case of #21946, there are accessed GUI
compoenents outside of AWT thread, what in this case led to deadlock.

Fix makes it sure also this part is planned to AWT thread.

Note:
There were a couple of bugs related to same problem, therefore is
necessary to write the test ensuring these kind of problems are
solved. see task #21947.
Comment 7 Peter Zavadsky 2002-03-28 15:04:09 UTC
Created attachment 5228 [details]
I'm sorry the above diff was incomplete.
Comment 8 Peter Zavadsky 2002-03-28 15:29:08 UTC
Created attachment 5229 [details]
Patch for orion_fcs (it contains fixes for both #21921 and #21946)
Comment 9 David Simonek 2002-03-28 15:31:32 UTC
reviewed, ok, diff looks good. Reordering replanned to AWT through
DeferredPerformer, which assures that reorder will come after all
components are added into container, which is what we want.
Comment 10 Marian Mirilovic 2002-03-28 16:03:38 UTC
Patch - verified.

I played with this patch last 30 minutes and I didn't see any
deadlocks.
Comment 11 Peter Zavadsky 2002-03-28 16:44:47 UTC
Integrated in [orion_fcs], IN=6255
Comment 12 Jan Zajicek 2002-04-02 16:29:42 UTC
Marking as verified - didn't occur during full day testing of build
#020401_01.
Comment 13 Quality Engineering 2003-07-01 16:30:37 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.