Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330659 - Eclipse freezes in "Update SVN Cache" on start
Summary: Eclipse freezes in "Update SVN Cache" on start
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: Subversive
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Igor Burilo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 08:19 EST by Robert Oschwald CLA
Modified: 2011-01-07 09:27 EST (History)
3 users (show)

See Also:


Attachments
jstack traces showing the blocked threads (52.64 KB, application/octet-stream)
2010-11-19 08:22 EST, Robert Oschwald CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Oschwald CLA 2010-11-19 08:19:34 EST
Build Identifier: Version: 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY Build id: I20100608-0911 (cocoa 32bit)

Suddently, when I restarted Eclipse, it freezes on "Update SVN Cache".

I then moved one project on the filesystem away and restarted successfully. Project is in "closed" state then. Moved it back and opened project without a problem.

Versions:
  Subversive SVN Team Provider (Incubation)	0.7.9.I20100512-1900 org.eclipse.team.svn.feature.group
  SVNKit 1.3.2 Implementation (Optional)	2.2.2.I20100512-1900 org.polarion.eclipse.team.svn.connector.svnkit16.feature.group
  SpringSource Tool Suite	2.5.0.201008251000-M3	com.springsource.sts.ide
  Eclipse Platform	3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY	org.eclipse.platform.feature.group (cocoa 32bit)

I attach thread dumps to this case.

Reproducible: Sometimes

Steps to Reproduce:
1. close Eclipse with some SVN projects open in Java view
2. restart Eclipse
3. Eclipse hangs on "Update SVN Cache" with spinning wheel.
Comment 1 Robert Oschwald CLA 2010-11-19 08:22:56 EST
Created attachment 183467 [details]
jstack traces showing the blocked threads

stack traces taken using jstack when Eclipse freezes.
Comment 2 Alexander Gurov CLA 2010-11-26 04:40:15 EST
Threads were blocked at native library loading. So, it looks more like an system-level issue (JVM problems or problems with the libraries being loaded). And unfortunately there is nothing we can do.

1) Subversive thread
"SVN-ORJZY" prio=5 tid=000000007b17b000 nid=0xb294f000 waiting for monitor entry [00000000b294c000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.lang.Runtime.loadLibrary0(Runtime.java:815)
	- waiting to lock <000000001b04bcc0> (a java.lang.Runtime)
	at java.lang.System.loadLibrary(System.java:1045)
	at com.sun.jna.Native.loadNativeLibrary(Native.java:676)
	at com.sun.jna.Native.<clinit>(Native.java:108)
	at com.sun.jna.Pointer.<clinit>(Pointer.java:42)
	at org.tmatesoft.svn.core.internal.util.jna.SVNLinuxUtil.<clinit>(SVNLinuxUtil.java:32)
	at org.tmatesoft.svn.core.internal.util.jna.SVNJNAUtil.getFileType(SVNJNAUtil.java:62)
...........

2) Eclipse IDE main thread
"main" prio=6 tid=0000000014800000 nid=0xa0041540 waiting for monitor entry [00000000bfffc000]
   java.lang.Thread.State: BLOCKED (on object monitor)
	at java.lang.Runtime.loadLibrary0(Runtime.java:815)
	- waiting to lock <000000001b04bcc0> (a java.lang.Runtime)
	at java.lang.System.loadLibrary(System.java:1045)
	at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.PlainSocketImpl.<clinit>(PlainSocketImpl.java:82)
	at java.net.Socket.setImpl(Socket.java:443)
	at java.net.Socket.<init>(Socket.java:68)
	at sun.net.NetworkClient.createSocket(NetworkClient.java:180)
Comment 3 Robert Oschwald CLA 2010-11-26 04:55:06 EST
One note:

We have this problem on all our OSX 10.6.x machines from time to time.
The lock only occurs when many Eclipse SVN enabled projects are open.
Comment 4 Alexander Gurov CLA 2010-11-27 10:05:29 EST
Probably the issue is related to some library which is loaded by SVN Kit client. In that case as a possible solution you could try switching to the JavaHL client.
Comment 5 nukeevry1 CLA 2011-01-07 09:27:09 EST
A number of developers at my organization are seeing this on Mac OSX 10.6 and Windows 7 as well using SVNKit.