Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » commit hangs(Eclipse hangs and eventually must be killed when doing local commit)
commit hangs [message #1726935] Thu, 17 March 2016 14:58 Go to next message
Dale Wyttenbach is currently offline Dale WyttenbachFriend
Messages: 3
Registered: March 2016
Junior Member
I've been fighting this for a while, working around it by committing from the command line: When I commit (even a single small file) from Eclipse it hangs at 0% indefinitely and I have to kill Eclipse. This is on Windows. I am using Eclipse 4.5.2 and egit 4.2.0.201601211800-r but this has been going on since at least Eclipse 4.5.1 and egit 4.1.1

Any ideas on how I can further diagnose the problem?

Thanks.
Re: commit hangs [message #1727005 is a reply to message #1726935] Fri, 18 March 2016 08:46 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1070
Registered: July 2009
Senior Member
Do you have pre-commit hook in your repository which may block commit ?
Create a couple of thread dumps and check them for dead locks and other suspicious things.
Re: commit hangs [message #1727052 is a reply to message #1727005] Fri, 18 March 2016 13:21 Go to previous messageGo to next message
Dale Wyttenbach is currently offline Dale WyttenbachFriend
Messages: 3
Registered: March 2016
Junior Member
I took an Eclipse thread dump with jvisualvm, and it looks like it must be a problem with interference from AV software:

   java.lang.Thread.State: RUNNABLE
	at java.io.WinNTFileSystem.list(Native Method)
	at java.io.File.list(File.java:1116)
	at java.io.File.listFiles(File.java:1201)
	at org.eclipse.jgit.treewalk.FileTreeIterator.entries(FileTreeIterator.java:139)
	at org.eclipse.jgit.treewalk.FileTreeIterator.<init>(FileTreeIterator.java:129)
	at org.eclipse.jgit.treewalk.FileTreeIterator.createSubtreeIterator(FileTreeIterator.java:135)
	at org.eclipse.jgit.treewalk.AbstractTreeIterator.createSubtreeIterator(AbstractTreeIterator.java:565)
	at org.eclipse.jgit.treewalk.TreeWalk.enterSubtree(TreeWalk.java:1023)
	at org.eclipse.jgit.treewalk.TreeWalk.next(TreeWalk.java:656)
	at org.eclipse.jgit.api.CommitCommand.createTemporaryIndex(CommitCommand.java:357)
	at org.eclipse.jgit.api.CommitCommand.call(CommitCommand.java:227)
	at org.eclipse.egit.core.op.CommitOperation.commit(CommitOperation.java:246)


Thanks for the tip!
Re: commit hangs [message #1727075 is a reply to message #1727052] Fri, 18 March 2016 15:50 Go to previous message
Dale Wyttenbach is currently offline Dale WyttenbachFriend
Messages: 3
Registered: March 2016
Junior Member
Actually the problem is not AV but rather a circular link definition, e.g.
bash$ pwd
/c/Users/dwyttenb
bash$ find . -type l -ls
281474976832258      0 lrwxrwxrwx   1  dwyttenb 1049089        31 Jul 31  2014 ./AppData/Local/Application\ Data -> /c/Users/dwyttenb/AppData/Local


Code that demonstrates the issue at https://github.com/wytten/List-Files
Previous Topic:creating diff between 2 revisions
Next Topic:calling RevWalk for remote repository
Goto Forum:
  


Current Time: Tue Jul 16 02:19:27 GMT 2019

Powered by FUDForum. Page generated in 0.02065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top