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 47588 - Deadlock on startup in lookup and InstanceDataObject
Summary: Deadlock on startup in lookup and InstanceDataObject
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: rmatous
URL:
Keywords: RANDOM, THREAD
: 47789 47794 47812 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-20 19:57 UTC by Jesse Glick
Modified: 2008-12-22 22:49 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
(Beginnings of) log + a thread dump (16.05 KB, text/plain)
2004-08-20 19:58 UTC, Jesse Glick
Details
Thread dump (26.27 KB, text/plain)
2004-08-20 23:00 UTC, Jesse Glick
Details
threaddump (16.50 KB, text/plain)
2004-08-25 09:30 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2004-08-20 19:57:52 UTC
Not sure what code is to blame here. Datasystems?
Lookup?
Comment 1 Jesse Glick 2004-08-20 19:58:28 UTC
Created attachment 16997 [details]
(Beginnings of) log + a thread dump
Comment 2 Jesse Glick 2004-08-20 20:00:23 UTC
Continues to stop the startup sequence until you delete folder-lookup.ser.

040820 custom, JDK 1.4.2, test user dir without much in it, one
project open, one Java file open. Nothing remarkable that I can see,
just bad luck?
Comment 3 Jesse Glick 2004-08-20 20:37:26 UTC
Happened to me again (same user dir).
Comment 4 Jesse Glick 2004-08-20 22:59:58 UTC
Happened on my regular user dir too. Getting to be pretty annoying.
Comment 5 Jesse Glick 2004-08-20 23:00:20 UTC
Created attachment 17004 [details]
Thread dump
Comment 6 _ ttran 2004-08-21 22:54:58 UTC
Yarda, please investigate, possibly fix it
Comment 7 Jaroslav Tulach 2004-08-23 08:26:18 UTC
Is likely related to Friday's fix of nonfunctional lookup cache (issue
46726). Maybe disable the cache completely? But we have to be aware of
possible perf implications.
Comment 8 Jaroslav Tulach 2004-08-23 14:39:37 UTC
"We (rmatous and jtulach) think that we know the root case of 47588
and that we have simulated it in this test"

Checking in
unit/src/org/openide/loaders/InstanceDataObjecIssue47707Test.java;
/cvs/openide/test/unit/src/org/openide/loaders/InstanceDataObjecIssue47707Test.java,v
 <--  InstanceDataObjecIssue47707Test.java
initial revision: 1.1

Sorry for the name of the test, the right issue number is 47588, I'll
leave a note in the issue 47707.
Comment 9 rmatous 2004-08-23 15:31:16 UTC
Tested and fixed.

/cvs/openide/loaders/src/org/openide/loaders/InstanceDataObject.java
new revision: 1.16; previous revision: 1.15
Comment 10 Antonin Nebuzelsky 2004-08-24 09:50:24 UTC
> Maybe disable the cache completely?
> But we have to be aware of possible perf implications.

I have measured startup time with three cases yesterday (first three
times are vanilla starts, next three are complex starts with project
open and a few files open in editor):

trunk 8/18 - 23.7s, 17.6s, 17.8s; 27.5s, 26.8s, 26.9s
(before the fix, with lookup cache on)

trunk 8/22 - 22.3s, 18.3s, 18.1s; 27.7s, 27.7s, 28.0s
(with yarda's fix of issue 46726, with lookup cache on)

trunk 8/18 with the lookup cache turned off
           - 22.5s, 17.6s, 17.4s; 27.1s, 27.4s, 27.3s

So, turning the lookup cache off would be also an option. It seems
that efficiency of the lookup cache is very limited.
Comment 11 Petr Nejedly 2004-08-24 16:42:07 UTC
*** Issue 47789 has been marked as a duplicate of this issue. ***
Comment 12 Marian Mirilovic 2004-08-24 17:07:34 UTC
*** Issue 47794 has been marked as a duplicate of this issue. ***
Comment 13 Marian Mirilovic 2004-08-24 17:10:22 UTC
*** Issue 47812 has been marked as a duplicate of this issue. ***
Comment 14 ehucka 2004-08-25 09:30:18 UTC
I see it in 200408241800 (JDK 1.5.0 b63, linux RH9). It occures very
often.
Comment 15 ehucka 2004-08-25 09:30:45 UTC
Created attachment 17108 [details]
threaddump
Comment 16 Jaroslav Tulach 2004-08-25 09:55:25 UTC
What you see is not a problem in instance data object. That is fixed.
The last stacktrace looks like the one from issue 47772. 
Comment 17 Tomas Danek 2005-07-27 11:18:25 UTC
Does this persist in 4.2's builds?? I haven't seen it. Closing, reopen if you will.