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 56019 - [41cat] ide locked after invoking fix imports
Summary: [41cat] ide locked after invoking fix imports
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-03-05 10:17 UTC by _ leonchiver
Modified: 2007-02-14 14:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
output of jstack (5.75 KB, text/plain)
2005-03-05 10:18 UTC, _ leonchiver
Details
screenshot of the gray progress dialog (7.12 KB, image/png)
2005-03-10 18:44 UTC, _ leonchiver
Details
complete thread dump (8.96 KB, image/png)
2005-03-10 18:44 UTC, _ leonchiver
Details
3 gray fix imports dialogs (26.64 KB, image/png)
2005-03-17 14:25 UTC, _ leonchiver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ leonchiver 2005-03-05 10:17:42 UTC
[ JDK VERSION : 1.5.0_01 ]

i invoked fix imports upon a java file. the right import was added, but the progress dialog didn't dissapear and was grayed out.
Comment 1 _ leonchiver 2005-03-05 10:18:46 UTC
Created attachment 20701 [details]
output of jstack
Comment 2 _ leonchiver 2005-03-05 10:22:23 UTC
in case it's important, the ide was build from CVS and has build
number 050305
Comment 3 Martin Matula 2005-03-05 23:02:58 UTC
The attached thread dump is incomplete. Unfortunatelly it is not
helpful at all.
Next time this happens please attach the full thread dump if you can
(you can get it by hiting Ctrl+\ in the console window associated with
netbeans). Without this information we may not be able to find the
problem and fix it.
Thanks in advance.
Comment 4 Miloslav Metelka 2005-03-10 14:19:04 UTC
Please submit a complete thread dump and then reopen the issue. Thanks.
Comment 5 _ leonchiver 2005-03-10 18:43:24 UTC
ok, here i go. it happened again, but it seems (whithout any analysis) not to be
a deadlock. 
i was able to click in the ide, close editor windows, open new editors;
the only thing i was not able to do was getting rid of the window and editing
the file.
Comment 6 _ leonchiver 2005-03-10 18:44:15 UTC
Created attachment 20760 [details]
screenshot of the gray progress dialog
Comment 7 _ leonchiver 2005-03-10 18:44:42 UTC
Created attachment 20761 [details]
complete thread dump
Comment 8 Martin Matula 2005-03-11 09:59:12 UTC
This could be a duplicate of issue 56110. Dan claims he fixed it on March 4. But
you are saying you were using build from March 5. Was it a custom build? Could
it be that you did not have the changes done by Dan in this build? Or did it
happen to you even in newer build?
Comment 9 Roman Strobl 2005-03-11 13:49:25 UTC
I am able to reproduce the issue on build 200503101100. To reproduce it is
enough to launch the fix imports dialog several times on any java file. Then the
dialog gets stuck and IDE becomes partly unusable (you can close windows but no
editing is possible, like if the main window could not regain focus). Please
address this issue soon.
Comment 10 Martin Matula 2005-03-11 13:54:51 UTC
P3->P2
Comment 11 Daniel Prusa 2005-03-15 15:04:38 UTC
/cvs/java/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java,v 
<--  JavaFixAllImports.java
new revision: 1.10; previous revision: 1.9
Comment 12 _ leonchiver 2005-03-17 14:24:14 UTC
well, it's not fixed. i got the problem again.

1) i invoked fixed imports (nothing happened for the next second, so i thought
all imports are ok)
2) pressed ctrl+shift+i to implement some methods
3) override methods dialog appeared
4) fix imports dialog appeared and was gray

than i tried to reproduce the error by just keeping ctrl+shift+f pressed for
a long time and i succeeded. i even got 3!! dialogs, as you can see in the
screenshot
Comment 13 _ leonchiver 2005-03-17 14:25:34 UTC
Created attachment 20924 [details]
3 gray fix imports dialogs
Comment 14 Daniel Prusa 2005-03-17 14:57:01 UTC
Can you provide the number of build you used, please ?
Comment 15 _ leonchiver 2005-03-17 15:25:15 UTC
build number was 050317 (own cvs build)
Comment 16 Roman Strobl 2005-03-22 09:47:53 UTC
The issue still occurs often on 200503211900 to me, it happens randomly, but
only several (e.g. 3) attemtps are necessary to reproduce. Raised by another
NetCat user recently.
Comment 17 Martin Matula 2005-03-22 21:30:08 UTC
Fixed.

Checking in src/org/netbeans/modules/editor/java/FixImportsProgressPanel.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/FixImportsProgressPanel.java,v
 <--  FixImportsProgressPanel.java
new revision: 1.4; previous revision: 1.3
done
Checking in src/org/netbeans/modules/editor/java/JavaFixAllImports.java;
/cvs/java/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java,v 
<--  JavaFixAllImports.java
new revision: 1.11; previous revision: 1.10
done
Comment 18 Roman Strobl 2005-03-24 10:47:44 UTC
The fix was succesfull, the dialog doesn't get frozen anymore. Leonchiver, can
you please verify it, too?
Comment 19 Max Sauer 2007-02-14 14:23:58 UTC
This does not happen anymore. Verified.
---
NetBeans IDE Dev (Build 070214)
1.6.0; Java HotSpot(TM) Server VM 1.6.0-b105
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8