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 195536 - ProjectManager.mutex vs. VersioningManager.class
Summary: ProjectManager.mutex vs. VersioningManager.class
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords: THREAD
: 195565 195585 195604 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-16 01:27 UTC by Chiana
Modified: 2011-02-21 14:27 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stackdump from netbeans (19.84 KB, text/plain)
2011-02-16 01:28 UTC, Chiana
Details
messages.log (54.05 KB, application/octet-stream)
2011-02-16 01:29 UTC, Chiana
Details
messages.log (57.74 KB, application/octet-stream)
2011-02-16 01:30 UTC, Chiana
Details
messages.log (53.33 KB, text/plain)
2011-02-16 02:18 UTC, Chiana
Details
Stackdump from netbeans (16.93 KB, text/plain)
2011-02-16 02:19 UTC, Chiana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2011-02-16 01:27:56 UTC
[ BUILD # : 6651on110215 ]
[ JDK VERSION : 1.6.23 ]

When first startup of 6651 it hang when opening projects, stackdumps&
messages.log from that. Second startup took 3 minutes for opening projects,
messages.log from that.
Comment 1 Chiana 2011-02-16 01:28:53 UTC
Created attachment 106043 [details]
Stackdump from netbeans

Stackdump from hanging NB opening projects
Comment 2 Chiana 2011-02-16 01:29:40 UTC
Created attachment 106044 [details]
messages.log

Messages.log after killing hanging NB
Comment 3 Chiana 2011-02-16 01:30:47 UTC
Created attachment 106045 [details]
messages.log

Messages.log when took 3 minutes to open projects, usually takes 10-15 seconds.
Comment 4 Chiana 2011-02-16 02:18:40 UTC
Created attachment 106048 [details]
messages.log

Hang again during verification of bug #195148. 
Just restarted the ide after first test.
Comment 5 Chiana 2011-02-16 02:19:09 UTC
Created attachment 106049 [details]
Stackdump from netbeans
Comment 6 Jesse Glick 2011-02-16 21:20:59 UTC
Inside PM mutex:

	at org.netbeans.modules.versioning.VersioningManager.getInstance(VersioningManager.java:114)
	- waiting to lock <0x00000000ba649b28> (a java.lang.Class for org.netbeans.modules.versioning.VersioningManager)
	at org.netbeans.modules.versioning.VersioningAnnotationProvider.getInterceptionListener(VersioningAnnotationProvider.java:294)

In EQ:

	at org.netbeans.modules.project.ui.OpenProjectList.getDefault(OpenProjectList.java:209)
	at org.netbeans.modules.project.ui.OpenProjectsTrampolineImpl.openProjectsAPI(OpenProjectsTrampolineImpl.java:127)
	at org.netbeans.api.project.ui.OpenProjects.openProjects(OpenProjects.java:154)
	at org.netbeans.modules.versioning.VersioningManager.isInitialized(VersioningManager.java:135)
	- locked <0x00000000ba649b28> (a java.lang.Class for org.netbeans.modules.versioning.VersioningManager)
	at org.netbeans.modules.versioning.VersioningMainMenu.createMenu(VersioningMainMenu.java:85)
	at org.netbeans.modules.versioning.VersioningMainMenu.getMenuPresenters(VersioningMainMenu.java:74)

This is a lock ordering conflict.
Comment 7 Tomas Stupka 2011-02-17 10:32:21 UTC
*** Bug 195604 has been marked as a duplicate of this bug. ***
Comment 8 Tomas Stupka 2011-02-17 10:33:59 UTC
*** Bug 195585 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Stupka 2011-02-17 12:23:07 UTC
fixed in http://hg.netbeans.org/core-main/rev/fe16888f1acd
Comment 10 Quality Engineering 2011-02-18 10:35:46 UTC
Integrated into 'main-golden', will be available in build *201102180501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fe16888f1acd
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #195536 - ProjectManager.mutex vs. VersioningManager.class
Comment 11 Jiri Skrivanek 2011-02-21 08:44:28 UTC
Verified in build 201102200501.
Comment 12 Tomas Stupka 2011-02-21 10:42:55 UTC
*** Bug 195565 has been marked as a duplicate of this bug. ***
Comment 13 Chiana 2011-02-21 12:22:28 UTC
(In reply to comment #11)
> Verified in build 201102200501.

Hmmm... I would not verify someone elses bugs until asked to...

Nevertheless, there is still a slight delay when the project opening process starts, lasts only a couple of seconds but IMO that is something you can live with or can be considered a feature...
Comment 14 Jiri Skrivanek 2011-02-21 12:34:10 UTC
I deeply apologize for verifying this issue. But I submitted one of duplicate issues and worked closely with responsible developer. Feel free to reopen, if you think so. Thank you.
Comment 15 Chiana 2011-02-21 14:27:17 UTC
(In reply to comment #14)
> I deeply apologize for verifying this issue. But I submitted one of duplicate
> issues and worked closely with responsible developer. Feel free to reopen, if
> you think so. Thank you.

No need to, no harm done and apology accepted with that matter closed. As I said, there is only the tiny delay at the beginning of the process that persist, I was thinking of leaving it be for a few builds and then recheck the issue (the delay that is). When mentioned theese things have a tendency to automagically dissappear, if you know what I mean...