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 20430 - Deadlock during XTest
Summary: Deadlock during XTest
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: ivan
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2002-02-11 11:36 UTC by Jesse Glick
Modified: 2008-12-23 08:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (13.01 KB, text/plain)
2002-02-11 11:38 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-02-11 11:36:58 UTC
See thread dump. Looks like term is trying to manipulate GUI components from the
wrong thread.
Comment 1 Jesse Glick 2002-02-11 11:38:01 UTC
Created attachment 4651 [details]
Thread dump
Comment 2 Jesse Glick 2002-02-11 11:38:49 UTC
[dev feb 11], sorry. Not sure if it is reproducible.
Comment 3 ivan 2002-02-11 20:52:14 UTC
The contention seems to be over the 'synchronized' on the 
Term instance itself. On thread, xtest.AntRunner_1, grabs the lock
in Term.appendText(). That keeps the other thread, AWT-EventQueue-0,
which calls the paint methods, stuck waiting for the lock.

Now the scrollbar is supposed to be adjusted in the AWT
event queue as well, as the comment in Term.adjust_scrollbar() 
says. In fact invokeAndWait() is used, but in a class somewhat
removed from Term; StreamTerm. But since NB io window code bypasses
StreamTerm all this stuff gets executed asynchronously.
Comment 4 Marek Grummich 2002-07-22 08:51:12 UTC
Target milestone was changed from '3.4' to TBD.
Comment 5 Marek Grummich 2002-07-22 08:57:24 UTC
Target milestone was changed from '3.4' to TBD.
Comment 6 Marek Grummich 2002-07-22 08:59:28 UTC
Target milestone was changed from '3.4' to TBD.
Comment 7 Marek Grummich 2002-07-22 08:59:32 UTC
Target milestone was changed from '3.4' to TBD.
Comment 8 Marek Grummich 2002-07-22 09:02:43 UTC
Target milestone was changed from '3.4' to TBD.
Comment 9 Marek Grummich 2002-07-22 09:27:43 UTC
Target milestone was changed from '3.4' to TBD.
Comment 10 ivan 2002-07-27 00:46:54 UTC
I"m marking this and other NPE related bugs as fixed with my commit
tagged ivan_17. For a thorough description read
.../terminalemulator/ReleaseNotes.ivan.txt.
Since this is a rather radical change I'd rather see new bugs filed as
opposed to these being reopened.
Comment 11 pzajac 2002-10-22 14:24:03 UTC
it seems ok.
Comment 12 Quality Engineering 2008-12-23 08:38:19 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.