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

Bazel crashes with NPE #23483

Closed
tgeng opened this issue Aug 30, 2024 · 5 comments
Closed

Bazel crashes with NPE #23483

tgeng opened this issue Aug 30, 2024 · 5 comments
Labels
team-Performance Issues for Performance teams type: bug untriaged

Comments

@tgeng
Copy link
Contributor

tgeng commented Aug 30, 2024

Description of the bug:

We noticed the following error occasionally in our CI environment.

[2024-08-30T22:44:39.669Z] + bazel build --local_resources=memory=69578 --local_resources=cpu=10 --jobs=10 --config=ci --stamp ... (target patterns are omitted for confidentiality)
[2024-08-30T22:44:39.669Z] Starting bazel-event-subscriber as a background process...
[2024-08-30T22:44:39.669Z] Starting local Bazel server and connecting to it...
[2024-08-30T22:44:48.060Z] INFO: Invocation ID: 23da8df7-70a1-4c83-8d8a-e2bd6dec2c63
[2024-08-30T22:44:48.060Z] Computing main repo mapping: 
[2024-08-30T22:44:48.980Z] Computing main repo mapping: 
[2024-08-30T22:44:49.901Z] Computing main repo mapping: 
[2024-08-30T22:44:51.257Z] Computing main repo mapping: 
[2024-08-30T22:44:51.815Z] Loading: 
[2024-08-30T22:44:51.815Z] Loading: 2 packages loaded
[2024-08-30T22:44:53.170Z] Analyzing: nullFATAL: bazel crashed due to an internal error. Printing stack trace:
[2024-08-30T22:44:53.170Z] java.lang.NullPointerException: Cannot invoke "String.isEmpty()" because "message" is null
[2024-08-30T22:44:53.170Z] 	at com.google.devtools.build.lib.runtime.SkymeldUiStateTracker.writeLoadingAnalysisPhaseProgress(SkymeldUiStateTracker.java:147)
[2024-08-30T22:44:53.170Z] 	at com.google.devtools.build.lib.runtime.SkymeldUiStateTracker.writeProgressBar(SkymeldUiStateTracker.java:92)
[2024-08-30T22:44:53.170Z] 	at com.google.devtools.build.lib.runtime.UiEventHandler.addProgressBar(UiEventHandler.java:1017)
[2024-08-30T22:44:53.170Z] 	at com.google.devtools.build.lib.runtime.UiEventHandler.doRefresh(UiEventHandler.java:878)
[2024-08-30T22:44:53.170Z] 	at com.google.devtools.build.lib.runtime.UiEventHandler.lambda$startUpdateThread$0(UiEventHandler.java:954)
[2024-08-30T22:44:53.170Z] 	at java.base/java.lang.Thread.run(Unknown Source)
[2024-08-30T22:44:53.170Z] 
[2024-08-30T22:44:53.170Z] Server terminated abruptly (error code: 14, error message: 'Socket closed', log file: '/mnt/jenkins/.cache/bazel/_bazel_jenkins/34b69d59fa4fc66fd3c84f6db0658cf9/server/jvm.out')

Which category does this issue belong to?

Core

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

We don't know how to reliably reproduce this. This happens a couple of times in a week, during which we run thousands of builds so it's pretty rare.

Which operating system are you running Bazel on?

Linux

What is the output of bazel info release?

release 7.3.1

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse HEAD ?

No response

If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@github-actions github-actions bot added team-Core Skyframe, bazel query, BEP, options parsing, bazelrc labels Aug 30, 2024
@benjaminp
Copy link
Collaborator

4972db8

@tgeng
Copy link
Contributor Author

tgeng commented Aug 31, 2024

Thanks! Will this be cherry picked to bazel 7.4?

@fmeum
Copy link
Collaborator

fmeum commented Aug 31, 2024

@bazel-io fork 7.4.0

@meisterT meisterT added team-Performance Issues for Performance teams and removed team-Core Skyframe, bazel query, BEP, options parsing, bazelrc labels Sep 3, 2024
@meisterT
Copy link
Member

meisterT commented Sep 3, 2024

cc @joeleba

@joeleba joeleba closed this as completed Sep 17, 2024
@iancha1992
Copy link
Member

A fix for this issue has been included in Bazel 7.4.0 RC1. Please test out the release candidate and report any issues as soon as possible.
If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=7.4.0rc1. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Performance Issues for Performance teams type: bug untriaged
Projects
None yet
Development

No branches or pull requests

8 participants