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 130657

Summary: Open file causes deadlock
Product: platform Reporter: Denis Anisimov <ads>
Component: TextAssignee: Jaroslav Tulach <jtulach>
Status: VERIFIED FIXED    
Severity: blocker CC: jlahoda, mfukala, msandor, pjiricka, vkraemer, vstejskal
Priority: P1 Keywords: REGRESSION, THREAD
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Last deadlock is in mimelookup, solved by initializing out of constructor
Bundle with changes that I'd like to (re)apply

Description Denis Anisimov 2008-03-20 15:29:52 UTC
Current version of IDE freezes on file open.

Steps to reproduce :
1) Open Java project.
2) Choose some Java file in project explorer.
As result the IDE is in deadlock.

I believe this the reason of this deadlock is last changes in CloneableEditor.
Please see history of changes:
http://hg.netbeans.org/main/log/f26672d69b54/openide.text/src/org/openide/text/CloneableEditor.java

With this version of CloneableEditor  :
http://hg.netbeans.org/main/file/41c254473c98/openide.text/src/org/openide/text/CloneableEditor.java
I'm able to avoid deadlock and all works fine.
This changes was done 2 days ago.

But with changes after this
Comment 1 Denis Anisimov 2008-03-20 15:33:20 UTC
Sorry , accidentally submit issue without full description.

So, this deadlock appears with some changes after fix for #130272.
It seems these all changes are done by Jaroslav Tulach.
Could you please fix this.
Thanks.
Comment 2 Vince Kraemer 2008-03-20 19:21:51 UTC
this may be the root cause of issue 130699
Comment 3 Jesse Glick 2008-03-20 20:19:55 UTC
*** Issue 130699 has been marked as a duplicate of this issue. ***
Comment 4 Jan Lahoda 2008-03-20 20:27:14 UTC
*** Issue 130701 has been marked as a duplicate of this issue. ***
Comment 5 Jan Lahoda 2008-03-20 20:28:06 UTC
For the record: please see issue #130701 for the thread dump and stack trace.
Comment 6 Jesse Glick 2008-03-20 20:32:05 UTC
I think fixed by backing out #0c3e24bd6df8, but Yarda will need to confirm what is going on.
Comment 7 Jesse Glick 2008-03-20 20:43:52 UTC
In case it was not clear: I did back it out, as #39dd35de782d (merged as #41a554bdbc18) in main which seems to fix
things for me at least.
Comment 8 Jaroslav Tulach 2008-03-20 22:05:06 UTC
changeset:   74449:09a08665c9b2
tag:         tip
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Thu Mar 20 22:03:32 2008 +0100
summary:     #130657: Simulating the starvation

Now on to some fix...
Comment 9 Jaroslav Tulach 2008-03-21 00:02:59 UTC
Created attachment 58807 [details]
Last deadlock is in mimelookup, solved by initializing out of constructor
Comment 10 Jaroslav Tulach 2008-03-21 00:13:21 UTC
Created attachment 58808 [details]
Bundle with changes that I'd like to (re)apply
Comment 11 Jaroslav Tulach 2008-03-21 01:46:04 UTC
changeset:   74680:32049eab588f
tag:         tip
parent:      74679:1d0e4a5cea88
parent:      74656:786cfcbd4245
user:        Jaroslav Tulach <jtulach@netbeans.org>
date:        Fri Mar 21 01:44:41 2008 +0100
summary:     #130657: Another attempt - build builds. commit validation validates. Java files can be open and closed.
Comment 12 Denis Anisimov 2008-03-21 13:39:01 UTC
Verified with 21 March sources.
Comment 13 Vitezslav Stejskal 2008-03-25 11:19:29 UTC
*** Issue 130679 has been marked as a duplicate of this issue. ***