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 - Open file causes deadlock
Summary: Open file causes deadlock
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION, THREAD
: 130679 130699 130701 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-20 15:29 UTC by Denis Anisimov
Modified: 2008-12-22 13:48 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Last deadlock is in mimelookup, solved by initializing out of constructor (8.52 KB, patch)
2008-03-21 00:02 UTC, Jaroslav Tulach
Details | Diff
Bundle with changes that I'd like to (re)apply (160.63 KB, application/octet-stream)
2008-03-21 00:13 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
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. ***