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

NullPointerException from analyze-profile --vfs_stats #726

Closed
schroederc opened this issue Dec 18, 2015 · 1 comment
Closed

NullPointerException from analyze-profile --vfs_stats #726

schroederc opened this issue Dec 18, 2015 · 1 comment
Assignees
Labels
P2 We'll consider working on this in future. (Assignee optional) type: bug

Comments

@schroederc
Copy link
Contributor

$ bazel analyze-profile --vfs_stats /tmp/bazel.prof

...
java.lang.NullPointerException
        at com.google.devtools.build.lib.profiler.output.PhaseText.printVfsStatistics(PhaseText.java:206)
        at com.google.devtools.build.lib.profiler.output.PhaseText.printPhaseStatistics(PhaseText.java:111)
        at com.google.devtools.build.lib.profiler.output.PhaseText.print(PhaseText.java:67)
        at com.google.devtools.build.lib.runtime.commands.ProfileCommand.exec(ProfileCommand.java:283)
        at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:371)
        at com.google.devtools.build.lib.runtime.BlazeRuntime$3.exec(BlazeRuntime.java:1016)
        at com.google.devtools.build.lib.server.RPCService.executeRequest(RPCService.java:65)
        at com.google.devtools.build.lib.server.RPCServer.executeRequest(RPCServer.java:434)
        at com.google.devtools.build.lib.server.RPCServer.serve(RPCServer.java:229)
        at com.google.devtools.build.lib.runtime.BlazeRuntime.serverMain(BlazeRuntime.java:975)
        at com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:772)
        at com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:55)
$ bazel analyze-profile --html --html_details --vfs_stats /tmp/bazel.prof

...
java.lang.NullPointerException
        at com.google.devtools.build.lib.profiler.output.PhaseHtml.printVfsStatistics(PhaseHtml.java:227)
        at com.google.devtools.build.lib.profiler.output.PhaseHtml.printPhaseStatistics(PhaseHtml.java:132)
        at com.google.devtools.build.lib.profiler.output.PhaseHtml.print(PhaseHtml.java:115)
        at com.google.devtools.build.lib.profiler.output.HtmlCreator.print(HtmlCreator.java:77)
        at com.google.devtools.build.lib.profiler.output.HtmlCreator.create(HtmlCreator.java:195)
        at com.google.devtools.build.lib.runtime.commands.ProfileCommand.exec(ProfileCommand.java:263)
        at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:371)
        at com.google.devtools.build.lib.runtime.BlazeRuntime$3.exec(BlazeRuntime.java:1016)
        at com.google.devtools.build.lib.server.RPCService.executeRequest(RPCService.java:65)
        at com.google.devtools.build.lib.server.RPCServer.executeRequest(RPCServer.java:434)
        at com.google.devtools.build.lib.server.RPCServer.serve(RPCServer.java:229)
        at com.google.devtools.build.lib.runtime.BlazeRuntime.serverMain(BlazeRuntime.java:975)
        at com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:772)
        at com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:55)
@dslomov dslomov added type: bug P2 We'll consider working on this in future. (Assignee optional) labels Dec 21, 2015
@dslomov dslomov assigned philwo and kchodorow and unassigned philwo Dec 21, 2015
@ulfjack
Copy link
Contributor

ulfjack commented Feb 3, 2016

I've seen the same issue in our internal binary. I think it's a serious issue because it makes the profiling unusable.

luca-digrazia pushed a commit to luca-digrazia/DatasetCommitsDiffSearch that referenced this issue Sep 5, 2022
    Also removed some unused code while I was here.

    Fixes bazelbuild/bazel#726.

    --
    MOS_MIGRATED_REVID=113758464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) type: bug
Projects
None yet
Development

No branches or pull requests

5 participants