-
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
System.exit in ManifestMergerAction killing persistent worker #11285
Comments
Indeed. I see that also in a couple of other main() methods called from ResourceProcessorBusyBox. They should not call System.exit(), but ResourceProcessorBusyBox also ought not to call main(), but a separate method that doesn't think it's called from the command line. ResourceProcessorBusyBox could instead set up a SecurityManager to prevent System.exit from actually exiting. |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 2+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This was fixed in #14427 |
Description of the problem / feature request:
In the ResourceProcessorBusyBox, it calls into ManifestMergerAction which has a System.exit that causes an improper exit of the worker without an indication of what went wrong.
Feature requests: what underlying problem are you trying to solve with this feature?
N/A
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Throw a AndroidManifestProcessor.ManifestProcessingException in ManifestMergerAction's main try block to hit the System.exit call.
Do a build (after recompiling Bazel and hooking things up since this is a non-trivial insertion), and note that you get a build error
com.google.protobuf.InvalidProtocolBufferException: Protocol message end-group tag did not match expected tag.
and no notice about exception that was thrown or any relevant error logs/prints that are related to the actual manifest merger error.What operating system are you running Bazel on?
Mac OS and Ubuntu.
What's the output of
bazel info release
?release 3.1.0
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.N/A
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?git@github.com:lyft/instant-android.git
2c28d9de9e7dc6f6000314fa1c3ee0a2a537e66a
612664443af62bdb991bc76b87ec388af7e99242
Have you found anything relevant by searching the web?
No. This seems to be something that others either do not hit or do not report. It also looks similar to other worker-related issues and so can be difficult to differentiate from them.
Any other information, logs, or outputs that you want to share?
No. The problem is that this lacks the outputs that are relevant to the error and instead gives a generic worker problem rather than the specific exception that we are concerned with.
The text was updated successfully, but these errors were encountered: