{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/infer/issues/163","labels_url":"https://api.github.com/repos/facebook/infer/issues/163/labels{/name}","comments_url":"https://api.github.com/repos/facebook/infer/issues/163/comments","events_url":"https://api.github.com/repos/facebook/infer/issues/163/events","html_url":"https://github.com/facebook/infer/issues/163","id":102472795,"number":163,"title":"Fatal error: exception DB.Path_not_prefix_root","user":{"login":"romanoaugusto88","id":996810,"avatar_url":"https://avatars.githubusercontent.com/u/996810?v=3","gravatar_id":"","url":"https://api.github.com/users/romanoaugusto88","html_url":"https://github.com/romanoaugusto88","followers_url":"https://api.github.com/users/romanoaugusto88/followers","following_url":"https://api.github.com/users/romanoaugusto88/following{/other_user}","gists_url":"https://api.github.com/users/romanoaugusto88/gists{/gist_id}","starred_url":"https://api.github.com/users/romanoaugusto88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanoaugusto88/subscriptions","organizations_url":"https://api.github.com/users/romanoaugusto88/orgs","repos_url":"https://api.github.com/users/romanoaugusto88/repos","events_url":"https://api.github.com/users/romanoaugusto88/events{/privacy}","received_events_url":"https://api.github.com/users/romanoaugusto88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-21T22:22:02Z","updated_at":"2015-09-21T15:10:03Z","closed_at":null,"body":"I'm trying to infer a large project, and after few seconds the infer crashes abnormally. What this could be?\r\n\r\n> $ ./gradlew clean && infer -- ./gradlew build\r\n\r\n> Fatal error: exception DB.Path_not_prefix_root\r\nTraceback (most recent call last):\r\n  File \"/home/romano/infer-linux64-v0.3.0/infer/bin/infer\", line 168, in <module>\r\n    main()\r\n  File \"/home/romano/infer-linux64-v0.3.0/infer/bin/infer\", line 143, in main\r\n    capture_exitcode = imported_module.gen_instance(args, cmd).capture()\r\n  File \"/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/capture/gradle.py\", line 75, in capture\r\n    return util.run_commands(cmds)\r\n  File \"/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/capture/util.py\", line 40, in run_commands\r\n    if not cmd.start():\r\n  File \"/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py\", line 689, in start\r\n    if self.capture() == os.EX_OK:\r\n  File \"/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py\", line 451, in capture\r\n    return self.run_infer_frontend()\r\n  File \"/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py\", line 442, in run_infer_frontend\r\n    self.args.analyzer\r\n  File \"/home/romano/infer-linux64-v0.3.0/infer/bin/inferlib.py\", line 358, in run_command\r\n    raise e\r\nsubprocess.CalledProcessError: Command '[u'/home/romano/infer-linux64-v0.3.0/infer/bin/InferJava', u'-project_root', '/home/romano/projects/MyApp', u'-results_dir', u'/home/romano/projects/MyApp/infer-out', u'-verbose_out', '/tmp/javac_pVNbVO.out', u'-models', u'/home/romano/infer-linux64-v0.3.0/infer/bin/../lib/java/models.jar', u'-no-static_final']' returned non-zero exit status 2\r\n\r\n\r\n> $ infer -v\r\nInfer version v0.3.0\r\nCopyright 2009 - present Facebook. All Rights Reserved."},"comment":{"url":"https://api.github.com/repos/facebook/infer/issues/comments/142010367","html_url":"https://github.com/facebook/infer/issues/163#issuecomment-142010367","issue_url":"https://api.github.com/repos/facebook/infer/issues/163","id":142010367,"user":{"login":"sblackshear","id":3513142,"avatar_url":"https://avatars.githubusercontent.com/u/3513142?v=3","gravatar_id":"","url":"https://api.github.com/users/sblackshear","html_url":"https://github.com/sblackshear","followers_url":"https://api.github.com/users/sblackshear/followers","following_url":"https://api.github.com/users/sblackshear/following{/other_user}","gists_url":"https://api.github.com/users/sblackshear/gists{/gist_id}","starred_url":"https://api.github.com/users/sblackshear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sblackshear/subscriptions","organizations_url":"https://api.github.com/users/sblackshear/orgs","repos_url":"https://api.github.com/users/sblackshear/repos","events_url":"https://api.github.com/users/sblackshear/events{/privacy}","received_events_url":"https://api.github.com/users/sblackshear/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T15:10:03Z","updated_at":"2015-09-21T15:10:03Z","body":"Try passing `-project_root /var/lib/jenkins/workspace/fennec-infer/build/annotationProcessors/` to your top-level Infer command and see if that fixes the problem. \r\n\r\nThanks for working with us on this--I think we need to make Infer a bit smarter at detecting the project root for Gradle projects."}}