Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capsule hangs when try to lock app directory #131

Open
pditommaso opened this issue Jan 15, 2019 · 0 comments
Open

Capsule hangs when try to lock app directory #131

pditommaso opened this issue Jan 15, 2019 · 0 comments

Comments

@pditommaso
Copy link

On file system not supporting File lock primitive Capsule hangs trying to opening a lock. A better strategy to use a timeout and throw an error if the lock cannot be created.

"main" #1 prio=5 os_prio=0 tid=0x00007f134404a800 nid=0xb6d1 runnable [0x00007f134d5bb000]
   java.lang.Thread.State: RUNNABLE
	at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
	at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:94)
	at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:1078)
	at java.nio.channels.FileChannel.lock(FileChannel.java:1053)
	at Capsule.lockAppCache(Capsule.java:2167)
	at Capsule.isAppCacheUpToDate1(Capsule.java:2104)
	at Capsule.buildAppCacheDir0(Capsule.java:2070)
	at Capsule.buildAppCacheDir(Capsule.java:2056)
	at Capsule.getOrCreateAppDir(Capsule.java:2004)
	at Capsule.appDir(Capsule.java:2016)
	at Capsule.simpleResolve(Capsule.java:3501)
	at Capsule.resolve00(Capsule.java:3490)
	at Capsule.resolve0(Capsule.java:3402)
	at Capsule.resolve(Capsule.java:3375)
	at Capsule.resolve00(Capsule.java:3421)
	at Capsule.resolve0(Capsule.java:3402)
	at Capsule.resolve(Capsule.java:3375)
	at Capsule.resolve(Capsule.java:3389)
	at Capsule.buildJavaProcess(Capsule.java:2228)
	at Capsule.buildProcess0(Capsule.java:1530)
	at Capsule.buildProcess(Capsule.java:1521)
	at Capsule.prelaunch0(Capsule.java:1494)
	at Capsule.prelaunch(Capsule.java:1487)
	at CapsuleLoader.prelaunch(CapsuleLoader.java:41)
	at Capsule.prepareForLaunch(Capsule.java:1339)
	at Capsule.launch(Capsule.java:1268)
	at Capsule.main0(Capsule.java:399)
	at Capsule.main(Capsule.java:379)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant