-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
android: persistent_android_resource_processor doesn't work when building AAR #9207
Comments
I did manage to reproduce when flipping only |
For a quick workaround, pass Does the error show up at all if you don't use the persistent workers flag? |
@jin it doesn't. actually, I only need to use |
The workaround you suggested is working! Thanks |
Still seeing this, just to keep some life to it. |
Still an issue on version 2.2.0 |
In certain circumstances the various android compilation tools could output to stdout while operating as a persistent worker which would lead to a corruption of the response protobuf and ultimately lead to a failed build. This PR solves that problem by redirecting all stdout and stderr emitted by the worker to an in-memory buffer that is later attached to the proto response as an output. In this way, all future tools added to the tool wrapper can benefit from having their output logged rather than cause a build failure. #10527 #9207 Closes #10911. PiperOrigin-RevId: 307252644
Still an issue 3.3.1 |
In certain circumstances the various android compilation tools could output to stdout while operating as a persistent worker which would lead to a corruption of the response protobuf and ultimately lead to a failed build. This PR solves that problem by redirecting all stdout and stderr emitted by the worker to an in-memory buffer that is later attached to the proto response as an output. In this way, all future tools added to the tool wrapper can benefit from having their output logged rather than cause a build failure. bazelbuild/bazel#10527 bazelbuild/bazel#9207 Closes #10911. PiperOrigin-RevId: 307252644
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.5 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 issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team ( |
Description of the problem / feature request:
When building an AAR and using
--persistent_android_resource_processor
, the worker fails with the following:Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Build an AAR with
--persistent_android_resource_processor
What operating system are you running Bazel on?
macos
What's the output of
bazel info release
?0.29.0rc6
The text was updated successfully, but these errors were encountered: