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 37231 - Frozen IDE during shutdown.
Summary: Frozen IDE during shutdown.
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@qa
URL:
Keywords: T9Y
: 32002 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-14 08:53 UTC by ehucka
Modified: 2011-02-17 09:34 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump. (5.45 KB, text/plain)
2003-11-14 08:55 UTC, ehucka
Details
ExitSecurityException stack trace (1.51 KB, text/plain)
2003-11-20 09:55 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2003-11-14 08:53:08 UTC
NB build 200311130470

I tried to exit IDE and it frozen. I've seen it in
automated tests run too (many times). It has a
hard impact on the run of automated tests.
Comment 1 ehucka 2003-11-14 08:54:35 UTC
The build was 200311130740
Comment 2 ehucka 2003-11-14 08:55:41 UTC
Created attachment 12159 [details]
Thread dump.
Comment 3 pzajac 2003-11-14 09:29:23 UTC
Jemmy/jelly related problem. The Jemmy uses a awt-qeue-2 thread. The
thread is not  stoped.  
Comment 4 Jan Becicka 2003-11-14 09:37:42 UTC
Hard impact means (in words of issue priority) P1. It blocks our test
machines.

Removing RANDOM kw according Petr's last comment.
Comment 5 Marian Mirilovic 2003-11-14 09:48:41 UTC
I have reproduced it on Solaris.
Comment 6 mslama 2003-11-14 14:10:35 UTC
IMO nothing to do with winsys.
Comment 7 Peter Zavadsky 2003-11-14 14:23:02 UTC
Hint for jemmy guys.

I moved the exit sequence in NbTopManager into AWT Thread (due to
hiding and saving of winsys).
It seems jemmy can't deal with such a circumstance. 
Comment 8 Jiri Skrivanek 2003-11-14 14:39:51 UTC
Jemmy installs own EventQueue instance. I don't know if it can be a
problem. Look at jemmy/src/org/netbeans/jemmy/QueueTool.JemmyQueue.
Comment 9 Jiri Skrivanek 2003-11-20 09:53:43 UTC
It seems it is caused by security check at the end of exit sequence in
IDE. If I run the IDE with the -J-Dnetbeans.security.nocheck=true
switch, it is not "locked".
I will try to find a root of problems with core specialist.
Comment 10 Jiri Skrivanek 2003-11-20 09:55:01 UTC
Created attachment 12231 [details]
ExitSecurityException stack trace
Comment 11 Jiri Skrivanek 2003-11-21 09:37:49 UTC
Thanks to Petr Nejedly and Jesse Glick the problem was identified and
fixed. When jemmy event queue is installed, IDE exit is dispatched
through this untrusted queue and IDE security manager refuses it to
exit. In order to fix it the TopSecurityManager.exit call was re-plan
to RequestProcessor.

Checking in org/netbeans/core/NbTopManager.java;
/cvs/core/src/org/netbeans/core/NbTopManager.java,v  <-- 
NbTopManager.java
new revision: 1.197; previous revision: 1.196
Comment 12 ehucka 2003-11-25 13:46:02 UTC
Verified with 200311241900.
Comment 13 Jiri Skrivanek 2003-12-17 10:11:46 UTC
*** Issue 32002 has been marked as a duplicate of this issue. ***