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 crashed while installing building an android example #2923

Closed
khkred opened this issue Dec 24, 2021 · 6 comments
Closed

Bazel crashed while installing building an android example #2923

khkred opened this issue Dec 24, 2021 · 6 comments
Assignees
Labels
platform:android Issues with Android as Platform task::all All tasks of MediaPipe type:build/install For Build and Installation issues

Comments

@khkred
Copy link

khkred commented Dec 24, 2021

System information (Please provide as much relevant information as possible)

  • macOS Monterey 12.0.1
  • Bazel version: 4.2.1
  • Android SDK and NDK versions (if android): SDK: 30.0.3, NDK: 21.3.6528147

I was following this link to install the first app.

When I faced the following error:
FATAL: bazel crashed due to an internal error. Printing stack trace: java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=//mediapipe/gpu:pixel_buffer_pool_util, config=BuildConfigurationValue.Key[1aa35b811f55b9291edee3b2d6b7a72975310b735c19e56f18c38321f11b55e6]}' (requested by nodes 'ConfiguredTargetKey{label=//mediapipe/gpu:gpu_buffer_multi_pool, config=BuildConfigurationValue.Key[1aa35b811f55b9291edee3b2d6b7a72975310b735c19e56f18c38321f11b55e6]}', 'ConfiguredTargetKey{label=//mediapipe/objc:mediapipe_framework_ios, config=BuildConfigurationValue.Key[1aa35b811f55b9291edee3b2d6b7a72975310b735c19e56f18c38321f11b55e6]}') at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:563) at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:398) at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(Unknown Source) at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.scan(Unknown Source) at java.base/java.util.concurrent.ForkJoinPool.runWorker(Unknown Source) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source) Caused by: java.lang.NullPointerException at com.google.devtools.build.lib.rules.objc.CompilationSupport.getFeatureConfiguration(CompilationSupport.java:574) at com.google.devtools.build.lib.rules.objc.CompilationSupport.compile(CompilationSupport.java:268) at com.google.devtools.build.lib.rules.objc.CompilationSupport.ccCompileAndLink(CompilationSupport.java:372) at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1006) at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1068) at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:954) at com.google.devtools.build.lib.rules.objc.ObjcLibrary.create(ObjcLibrary.java:81) at com.google.devtools.build.lib.rules.objc.ObjcLibrary.create(ObjcLibrary.java:42) at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:385) at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:195) at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:940) at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1031) at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:371) at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:477) ... 7 more

@khkred khkred added the type:build/install For Build and Installation issues label Dec 24, 2021
@sgowroji
Copy link

Hi @khkred, Please have a look at this similar issue which as resolution #54 (comment)

@sgowroji sgowroji added task::all All tasks of MediaPipe platform:android Issues with Android as Platform stat:awaiting response Waiting for user response labels Dec 24, 2021
@khkred
Copy link
Author

khkred commented Dec 24, 2021

I have installed Xcode but even now I get the following errors.

WARNING: /Users/khkr/Coding/MediaPipeProjects/mediapipe/mediapipe/framework/tool/BUILD:182:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use. ERROR: /private/var/tmp/_bazel_khkr/e3f1093244af17366cbc5979ef177ba4/external/google_toolbox_for_mac/BUILD.bazel:21:13: in objc_library rule @google_toolbox_for_mac//:GTM_Defines: Expected action_config for 'objc-fully-link' to be configured ERROR: /private/var/tmp/_bazel_khkr/e3f1093244af17366cbc5979ef177ba4/external/google_toolbox_for_mac/BUILD.bazel:21:13: in objc_library rule @google_toolbox_for_mac//:GTM_Defines: Expected action_config for 'c++-link-static-library' to be configured ERROR: Analysis of target '//mediapipe/examples/android/src/java/com/google/mediapipe/apps/handtrackinggpu:handtrackinggpu' failed; build aborted: Analysis of target '@google_toolbox_for_mac//:GTM_Defines' failed INFO: Elapsed time: 0.776s INFO: 0 processes. FAILED: Build did NOT complete successfully (5 packages loaded, 8923 targets configured)

@sgowroji sgowroji added stat:awaiting googler Waiting for Google Engineer's Response and removed stat:awaiting response Waiting for user response labels Dec 24, 2021
@sgowroji sgowroji assigned jiuqiant and unassigned sgowroji Dec 24, 2021
@sgowroji
Copy link

sgowroji commented Feb 9, 2022

Hi @khkred, Could you please confirm if you still see the above error while building the Handtrackinggpu code. Did you try above commands by executing " bazel clean --expunge" .

@sgowroji sgowroji added stat:awaiting response Waiting for user response and removed stat:awaiting googler Waiting for Google Engineer's Response labels Feb 9, 2022
@khkred
Copy link
Author

khkred commented Feb 14, 2022

Yes I did. I had to downgrade my Android SDK, it's working now.

@sgowroji
Copy link

Glad that worked. Thank you for the update. We are closing this issue now.

@sgowroji sgowroji removed the stat:awaiting response Waiting for user response label Feb 15, 2022
@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:android Issues with Android as Platform task::all All tasks of MediaPipe type:build/install For Build and Installation issues
Projects
None yet
Development

No branches or pull requests

3 participants