{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/740","repository_url":"https://api.github.com/repos/facebook/buck","labels_url":"https://api.github.com/repos/facebook/buck/issues/740/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/740/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/740/events","html_url":"https://github.com/facebook/buck/issues/740","id":153974445,"number":740,"title":"autodeps - failed to extract Java symbols","user":{"login":"mread","id":309102,"avatar_url":"https://avatars.githubusercontent.com/u/309102?v=3","gravatar_id":"","url":"https://api.github.com/users/mread","html_url":"https://github.com/mread","followers_url":"https://api.github.com/users/mread/followers","following_url":"https://api.github.com/users/mread/following{/other_user}","gists_url":"https://api.github.com/users/mread/gists{/gist_id}","starred_url":"https://api.github.com/users/mread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mread/subscriptions","organizations_url":"https://api.github.com/users/mread/orgs","repos_url":"https://api.github.com/users/mread/repos","events_url":"https://api.github.com/users/mread/events{/privacy}","received_events_url":"https://api.github.com/users/mread/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-10T10:32:59Z","updated_at":"2016-05-10T15:51:01Z","closed_at":null,"body":"Hi, I'm getting the following exceptions from time to time when running `buck autodeps`. Once the exception has happened then the only solution is to `rm -rf buck-out`.\r\n\r\nI've not found reliable steps to reproduce it yet, will add more detail when I find it.\r\n\r\nHas anyone got any theories on what could be happening?\r\n\r\n```\r\n2016-05-10 11:24:14.923][error][command:89908068-cc1a-4744-a2e7-ccacb729cfb0][tid:01][com.facebook.buck.cli.Main] Uncaught exception at top level\r\njava.lang.RuntimeException: Failed to extract Java symbols for //universe/prepayment-check-service:main\r\n\tat com.facebook.buck.jvm.java.autodeps.JavaDepsFinder.getJavaFileFeatures(JavaDepsFinder.java:387)\r\n\tat com.facebook.buck.jvm.java.autodeps.JavaDepsFinder.access$1(JavaDepsFinder.java:348)\r\n\tat com.facebook.buck.jvm.java.autodeps.JavaDepsFinder$2.visit(JavaDepsFinder.java:223)\r\n\tat com.facebook.buck.jvm.java.autodeps.JavaDepsFinder$2.visit(JavaDepsFinder.java:1)\r\n\tat com.facebook.buck.graph.AbstractBottomUpTraversal.traverse(AbstractBottomUpTraversal.java:62)\r\n\tat com.facebook.buck.jvm.java.autodeps.JavaDepsFinder.findDepsForBuildFiles(JavaDepsFinder.java:232)\r\n\tat com.facebook.buck.cli.AutodepsCommand.runWithoutHelp(AutodepsCommand.java:160)\r\n\tat com.facebook.buck.cli.AbstractCommand.run(AbstractCommand.java:168)\r\n\tat com.facebook.buck.cli.BuckCommand.run(BuckCommand.java:90)\r\n\tat com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:1036)\r\n\tat com.facebook.buck.cli.Main.tryRunMainWithExitCode(Main.java:1494)\r\n\tat com.facebook.buck.cli.Main.runMainThenExit(Main.java:1579)\r\n\tat com.facebook.buck.cli.Main.main(Main.java:1597)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.facebook.buck.cli.bootstrapper.ClassLoaderBootstrapper.main(ClassLoaderBootstrapper.java:62)\r\nCaused by: java.io.IOException: Error initializing //universe/prepayment-check-service:main#java_symbols from disk.\r\n\tat com.facebook.buck.rules.CachingBuildEngine$7.apply(CachingBuildEngine.java:704)\r\n\tat com.facebook.buck.rules.CachingBuildEngine$7.apply(CachingBuildEngine.java:1)\r\n\tat com.facebook.buck.rules.CachingBuildEngine$17.apply(CachingBuildEngine.java:1498)\r\n\tat com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)\r\n\tat com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)\r\n\tat com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)\r\n\tat com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456)\r\n\tat com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:817)\r\n\tat com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:595)\r\n\tat com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:96)\r\n\tat com.google.common.util.concurrent.Futures.transformAsync(Futures.java:1108)\r\n\tat com.facebook.buck.rules.CachingBuildEngine.processBuildRule(CachingBuildEngine.java:710)\r\n\tat com.facebook.buck.rules.CachingBuildEngine.access$19(CachingBuildEngine.java:554)\r\n\tat com.facebook.buck.rules.CachingBuildEngine$9.apply(CachingBuildEngine.java:912)\r\n\tat com.facebook.buck.rules.CachingBuildEngine$9.apply(CachingBuildEngine.java:1)\r\n\tat com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)\r\n\tat com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)\r\n\tat com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)\r\n\tat com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)\r\n\tat com.facebook.buck.util.concurrent.WeightedListeningExecutorService$3.call(WeightedListeningExecutorService.java:102)\r\n\tat com.facebook.buck.util.concurrent.WeightedListeningExecutorService$1.apply(WeightedListeningExecutorService.java:65)\r\n\tat com.facebook.buck.util.concurrent.WeightedListeningExecutorService$1.apply(WeightedListeningExecutorService.java:1)\r\n\tat com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1442)\r\n\tat com.google.common.util.concurrent.Futures$AsyncChainingFuture.doTransform(Futures.java:1433)\r\n\tat com.google.common.util.concurrent.Futures$AbstractChainingFuture.run(Futures.java:1408)\r\n\tat com.google.common.util.concurrent.Futures$2$1.run(Futures.java:1177)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.nio.file.NoSuchFileException: /Users/mattread/dev/buck-build/buck-out/gen/universe/prepayment-check-service/__main#java_symbols__.json\r\n\tat sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)\r\n\tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)\r\n\tat sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)\r\n\tat sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)\r\n\tat java.nio.file.Files.newByteChannel(Files.java:361)\r\n\tat java.nio.file.Files.newByteChannel(Files.java:407)\r\n\tat java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)\r\n\tat java.nio.file.Files.newInputStream(Files.java:152)\r\n\tat java.nio.file.Files.newBufferedReader(Files.java:2784)\r\n\tat java.nio.file.Files.readAllLines(Files.java:3202)\r\n\tat com.facebook.buck.io.ProjectFilesystem.readLines(ProjectFilesystem.java:870)\r\n\tat com.facebook.buck.rules.DefaultOnDiskBuildInfo.getOutputFileContentsByLine(DefaultOnDiskBuildInfo.java:109)\r\n\tat com.facebook.buck.jvm.java.autodeps.JavaSymbolsRule.initializeFromDisk(JavaSymbolsRule.java:92)\r\n\tat com.facebook.buck.jvm.java.autodeps.JavaSymbolsRule.initializeFromDisk(JavaSymbolsRule.java:1)\r\n\tat com.facebook.buck.rules.BuildOutputInitializer.initializeFromDisk(BuildOutputInitializer.java:46)\r\n\tat com.facebook.buck.rules.CachingBuildEngine.doInitializeFromDisk(CachingBuildEngine.java:1219)\r\n\tat com.facebook.buck.rules.CachingBuildEngine.access$17(CachingBuildEngine.java:1214)\r\n\tat com.facebook.buck.rules.CachingBuildEngine$7.apply(CachingBuildEngine.java:701)\r\n\t... 28 more\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/218202226","html_url":"https://github.com/facebook/buck/issues/740#issuecomment-218202226","issue_url":"https://api.github.com/repos/facebook/buck/issues/740","id":218202226,"user":{"login":"bolinfest","id":655869,"avatar_url":"https://avatars.githubusercontent.com/u/655869?v=3","gravatar_id":"","url":"https://api.github.com/users/bolinfest","html_url":"https://github.com/bolinfest","followers_url":"https://api.github.com/users/bolinfest/followers","following_url":"https://api.github.com/users/bolinfest/following{/other_user}","gists_url":"https://api.github.com/users/bolinfest/gists{/gist_id}","starred_url":"https://api.github.com/users/bolinfest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolinfest/subscriptions","organizations_url":"https://api.github.com/users/bolinfest/orgs","repos_url":"https://api.github.com/users/bolinfest/repos","events_url":"https://api.github.com/users/bolinfest/events{/privacy}","received_events_url":"https://api.github.com/users/bolinfest/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T15:51:01Z","updated_at":"2016-05-10T15:51:01Z","body":"If you can reliably repro and are using buckd (the daemon), can you try killing buck (via 'buck kill') first rather than deleting buck-out and let me know whether that fixes things?"}}