-
Notifications
You must be signed in to change notification settings - Fork 4k
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 crashing during startup with suspend_state.connect_port) != (0)
#17751
Comments
Hi @BalestraPatrick, Please provide a minimal steps to reproduce the above issue. Thanks! |
@sgowroji Unfortunately at this moment we couldn't find more steps to reproduce the issue other than simply "run any build with Bazel" which at times makes this issue occur. |
Also happened to me today. I do not know the reason either, but in the following code bazel/src/main/native/darwin/system_suspension_monitor_jni.cc Lines 86 to 88 in 477a32e
API documentation mentions that that method may fail, but gives no reason for when this can happen. I have tried a few patches, but I found no simple way to proceed ignoring the error. |
Okay, just confirmed that it happens because of our sandbox, and not outside it. So it seems related to https://developer.apple.com/forums/thread/14691. Concerning fixes, ignoring failures is an option, but if it is not okay for some reason, maybe adding a flag to disable sleep detection/inhibition would be acceptable ? FYI, here is my current fix that disables everything https://gist.github.com/layus/bb9748a0eb5c0498567960d2e90b3a57 |
Digging deeper, we have managed to avoid the issue by adding bazel/src/main/native/darwin/system_suspension_monitor_jni.cc Lines 86 to 88 in 477a32e
but then fails in the closely related bazel/src/main/native/darwin/sleep_prevention_jni.cc Lines 41 to 44 in 477a32e
or bazel/src/main/native/darwin/sleep_prevention_jni.cc Lines 56 to 57 in 477a32e
|
Description of the bug:
Recently we have increased our adoption of Bazel for local development, and we saw an increasing amount of crashes like the following:
jvm.out
simply contains the same fatal check.This exception seems to take place somewhere around this code:
bazel/src/main/native/darwin/system_suspension_monitor_jni.cc
Line 86 in 477a32e
The only fix for this we have found is to restart the machine, which is quite annoying.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
We haven't found specific steps to reproduce this error at the moment. People have reported that this might happen after not restarting the machine for a while, but still unclear on the exact conditions that trigger it.
Which operating system are you running Bazel on?
macOS 13.2.1
What is the output of
bazel info release
?6.1.0
If
bazel info release
returnsdevelopment 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 master; git rev-parse HEAD
?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
The text was updated successfully, but these errors were encountered: