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

Error in download_and_extract: java.io.IOException #1035

Closed
MandarComXr opened this issue Oct 13, 2023 · 3 comments
Closed

Error in download_and_extract: java.io.IOException #1035

MandarComXr opened this issue Oct 13, 2023 · 3 comments
Labels
type:build/install Cannot build/install the plugin

Comments

@MandarComXr
Copy link

MandarComXr commented Oct 13, 2023

Plugin Version or Commit ID

049ca2f

Unity Version

2019.4.21f1

Your Host OS

macOS Ventura

Target Platform

Android

[Android Only] Android Build Tools and NDK Version

Build Tools: 34.0.0
NDK: 21.4.7075529

Command Sequences

After the Mediapipe hello world example worked fine

pip3 install numpy --user

Note that we are using an older commit dated 9th March 2021 049ca2f.

Cloned the project and Navigated to the MediapipeUnity directory.
We then ran the following commands:

export ANDROID_HOME=/Users/admin/Library/Android/sdk
export ANDROID_NDK_HOME=/Users/admin/Library/Android/ndk

make android_arm64

As mentioned in my issue #1034 we faced some issues and had to rollback certain files and libraries to that point of time.

We are now using the following:

rules_foreign_cc-0.1.0
rules_cc from 25th Feb 2021
bazel 4.0.0

Log

Now whenever we run make android_arm64 we get different set of errors on each attempt which is really confusing at this point.

1st Run

admin@MacBook-Pro mediapipeunityplugin2 % make android_arm64
mkdir -p .build
curl -L https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz -o .build/protobuf-3.13.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 5154k  100 5154k    0     0  4158k      0  0:00:01  0:00:01 --:--:-- 4158k
tar xf .build/protobuf-3.13.0.tar.gz -C .build
dotnet restore .build/protobuf-3.13.0/csharp/src/Google.Protobuf.sln && \
	dotnet build -c Release .build/protobuf-3.13.0/csharp/src/Google.Protobuf.sln
  Determining projects to restore...
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/AddressBook/AddressBook.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/Google.Protobuf.JsonDump.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj::TargetFramework=netcoreapp2.1]
  Restored /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/AddressBook/AddressBook.csproj (in 404 ms).
  Restored /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/Google.Protobuf.JsonDump.csproj (in 404 ms).
  Restored /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj (in 714 ms).
  Restored /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test.TestProtos/Google.Protobuf.Test.TestProtos.csproj (in 717 ms).
  Restored /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Benchmarks/Google.Protobuf.Benchmarks.csproj (in 755 ms).
  Restored /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj (in 754 ms).
  Restored /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj (in 766 ms).
MSBuild version 17.4.0+18d5aef85 for .NET
  Determining projects to restore...
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/Google.Protobuf.JsonDump.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/AddressBook/AddressBook.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj::TargetFramework=netcoreapp2.1]
  All projects are up-to-date for restore.
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/AddressBook/AddressBook.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/Google.Protobuf.JsonDump.csproj]
/Users/admin/.nuget/packages/microsoft.build.tasks.git/1.0.0/build/Microsoft.Build.Tasks.Git.targets(24,5): warning : Unable to locate repository with working directory that contains directory '/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf'. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=net45]
/Users/admin/.nuget/packages/microsoft.build.tasks.git/1.0.0/build/Microsoft.Build.Tasks.Git.targets(24,5): warning : Unable to locate repository with working directory that contains directory '/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf'. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=netstandard2.0]
/Users/admin/.nuget/packages/microsoft.sourcelink.common/1.0.0/build/Microsoft.SourceLink.Common.targets(52,5): warning : Source control information is not available - the generated source link is empty. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=net45]
/Users/admin/.nuget/packages/microsoft.sourcelink.common/1.0.0/build/Microsoft.SourceLink.Common.targets(52,5): warning : Source control information is not available - the generated source link is empty. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=netstandard2.0]
/Users/admin/.nuget/packages/microsoft.build.tasks.git/1.0.0/build/Microsoft.Build.Tasks.Git.targets(24,5): warning : Unable to locate repository with working directory that contains directory '/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf'. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=netstandard1.1]
/Users/admin/.nuget/packages/microsoft.sourcelink.common/1.0.0/build/Microsoft.SourceLink.Common.targets(52,5): warning : Source control information is not available - the generated source link is empty. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=netstandard1.1]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj::TargetFramework=netcoreapp2.1]
  Google.Protobuf -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/bin/Release/net45/Google.Protobuf.dll
  Google.Protobuf -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/bin/Release/netstandard1.1/Google.Protobuf.dll
  Google.Protobuf -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/bin/Release/netstandard2.0/Google.Protobuf.dll
  AddressBook -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/AddressBook/bin/Release/netcoreapp2.1/AddressBook.dll
  Google.Protobuf.Benchmarks -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Benchmarks/bin/Release/netcoreapp3.1/Google.Protobuf.Benchmarks.dll
  Google.Protobuf.Test.TestProtos -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test.TestProtos/bin/Release/netstandard2.0/Google.Protobuf.Test.TestProtos.dll
  Google.Protobuf.Test.TestProtos -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test.TestProtos/bin/Release/net45/Google.Protobuf.Test.TestProtos.dll
  Google.Protobuf.JsonDump -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/bin/Release/netcoreapp2.1/Google.Protobuf.JsonDump.dll
  Google.Protobuf.Test.TestProtos -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test.TestProtos/bin/Release/netstandard1.1/Google.Protobuf.Test.TestProtos.dll
  Google.Protobuf.Test -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/bin/Release/net451/Google.Protobuf.Test.dll
  Google.Protobuf.Test -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/bin/Release/netcoreapp2.1/Google.Protobuf.Test.dll
  Google.Protobuf.Conformance -> /Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/bin/Release/netcoreapp2.1/Google.Protobuf.Conformance.dll

Build succeeded.

/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/Google.Protobuf.JsonDump.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/AddressBook/AddressBook.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj::TargetFramework=netcoreapp2.1]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Conformance/Google.Protobuf.Conformance.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/AddressBook/AddressBook.csproj]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.JsonDump/Google.Protobuf.JsonDump.csproj]
/Users/admin/.nuget/packages/microsoft.build.tasks.git/1.0.0/build/Microsoft.Build.Tasks.Git.targets(24,5): warning : Unable to locate repository with working directory that contains directory '/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf'. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=net45]
/Users/admin/.nuget/packages/microsoft.build.tasks.git/1.0.0/build/Microsoft.Build.Tasks.Git.targets(24,5): warning : Unable to locate repository with working directory that contains directory '/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf'. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=netstandard2.0]
/Users/admin/.nuget/packages/microsoft.sourcelink.common/1.0.0/build/Microsoft.SourceLink.Common.targets(52,5): warning : Source control information is not available - the generated source link is empty. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=net45]
/Users/admin/.nuget/packages/microsoft.sourcelink.common/1.0.0/build/Microsoft.SourceLink.Common.targets(52,5): warning : Source control information is not available - the generated source link is empty. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=netstandard2.0]
/Users/admin/.nuget/packages/microsoft.build.tasks.git/1.0.0/build/Microsoft.Build.Tasks.Git.targets(24,5): warning : Unable to locate repository with working directory that contains directory '/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf'. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=netstandard1.1]
/Users/admin/.nuget/packages/microsoft.sourcelink.common/1.0.0/build/Microsoft.SourceLink.Common.targets(52,5): warning : Source control information is not available - the generated source link is empty. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf/Google.Protobuf.csproj::TargetFramework=netstandard1.1]
/usr/local/Cellar/dotnet/7.0.100/libexec/sdk/7.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp2.1' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [/Users/admin/MediaPipeUnityPlugin2/.build/protobuf-3.13.0/csharp/src/Google.Protobuf.Test/Google.Protobuf.Test.csproj::TargetFramework=netcoreapp2.1]
    14 Warning(s)
    0 Error(s)

Time Elapsed 00:00:10.44
cd C && bazel build -c opt --config=android_arm64 mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android mediapipe_api:mediapipe_assets mediapipe_api:mediapipe_proto_srcs
WARNING: API level 30 specified by android_ndk_repository 'androidndk' is not available. Using latest known API level 29
INFO: Repository cpuinfo instantiated at:
  /Users/admin/MediaPipeUnityPlugin2/C/WORKSPACE:428:13: in <toplevel>
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:74:20: in tf_workspace
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:104:27: in tf_repositories
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:49:12: in initialize_third_party
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/cpuinfo/workspace.bzl:11:29: in repo
Repository rule third_party_http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/repo.bzl:216:43: in <toplevel>
INFO: Repository remotejdk11_macos instantiated at:
  /DEFAULT.WORKSPACE.SUFFIX:102:6: in <toplevel>
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'cpuinfo':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/repo.bzl", line 185, column 33, in _third_party_http_archive
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/cpuinfo/temp15863283890931650051/6cecd15784fcb6c5c0aa7311c6248879ce2cb8b2.zip to /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/cpuinfo/temp15863283890931650051: null
ERROR: Error fetching repository: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/repo.bzl", line 185, column 33, in _third_party_http_archive
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/cpuinfo/temp15863283890931650051/6cecd15784fcb6c5c0aa7311c6248879ce2cb8b2.zip to /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/cpuinfo/temp15863283890931650051: null
INFO: Repository android_opencv instantiated at:
  /Users/admin/MediaPipeUnityPlugin2/C/WORKSPACE:261:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
Analyzing: 3 targets (208 packages loaded, 12376 targets configured)
    Fetching @android_opencv; fetching 4s
    Fetching @XNNPACK; fetching
    Fetching ...bbcd1a2/external/XNNPACK; Extracting /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/XNNPACK/temp14496812882569388910/094e692629d57ddb932fcc993193626f60daa61b.zip
    Fetching ...bbcd1a2/external/cpuinfo; Extracting /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/cpuinfo/temp15863283890931650051/6cecd15784fcb6c5c0aa7311c6248879ce2cb8b2.zip
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=@google_toolbox_for_mac//:GTM_Defines, config=BuildConfigurationValue.Key[c805064e1ae26e9622e7abf6d7d2e3034d6c1e8f490563cc78f993ef6619baf0]}' (requested by nodes 'ConfiguredTargetKey{label=@com_google_mediapipe//mediapipe/gpu:MPPMetalHelper, config=BuildConfigurationValue.Key[c805064e1ae26e9622e7abf6d7d2e3034d6c1e8f490563cc78f993ef6619baf0]}')
	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:569)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.compile(CompilationSupport.java:263)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.ccCompileAndLink(CompilationSupport.java:367)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1019)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1063)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:949)
	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:381)
	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:194)
	at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:938)
	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1013)
	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
make: *** [android_arm64] Error 37

2nd Run

admin@MacBook-Pro mediapipeunityplugin2 % make android_arm64
cd C && bazel build -c opt --config=android_arm64 mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android mediapipe_api:mediapipe_assets mediapipe_api:mediapipe_proto_srcs
Starting local Bazel server and connecting to it...
WARNING: API level 30 specified by android_ndk_repository 'androidndk' is not available. Using latest known API level 29
INFO: Repository remotejdk11_macos instantiated at:
  /DEFAULT.WORKSPACE.SUFFIX:102:6: in <toplevel>
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'remotejdk11_macos':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: thread interrupted
ERROR: Error fetching repository: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
		download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: thread interrupted
INFO: Repository clog instantiated at:
  /Users/admin/MediaPipeUnityPlugin2/C/WORKSPACE:428:13: in <toplevel>
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:74:20: in tf_workspace
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:104:27: in tf_repositories
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:48:9: in initialize_third_party
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/clog/workspace.bzl:6:29: in repo
Repository rule third_party_http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/repo.bzl:216:43: in <toplevel>
INFO: Repository android_opencv instantiated at:
  /Users/admin/MediaPipeUnityPlugin2/C/WORKSPACE:261:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
Analyzing: 3 targets (211 packages loaded, 11757 targets configured)
    Fetching @android_opencv; fetching
    Fetching @XNNPACK; fetching
    Fetching ...2bbcd1a2/external/XNNPACK; Extracting /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/XNNPACK/temp9900931041855226689/094e692629d57ddb932fcc993193626f60daa61b.zip
    Fetching @clog; fetching
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=@google_toolbox_for_mac//:GTM_Defines, config=BuildConfigurationValue.Key[c805064e1ae26e9622e7abf6d7d2e3034d6c1e8f490563cc78f993ef6619baf0]}' (requested by nodes 'ConfiguredTargetKey{label=@com_google_mediapipe//mediapipe/objc:mediapipe_framework_ios, config=BuildConfigurationValue.Key[c805064e1ae26e9622e7abf6d7d2e3034d6c1e8f490563cc78f993ef6619baf0]}')
	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:569)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.compile(CompilationSupport.java:263)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.ccCompileAndLink(CompilationSupport.java:367)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1019)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1063)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:949)
	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:381)
	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:194)
	at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:938)
	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1013)
	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
make: *** [android_arm64] Error 37

3rd Run

admin@MacBook-Pro mediapipeunityplugin2 % make android_arm64
cd C && bazel build -c opt --config=android_arm64 mediapipe_api/java/org/homuler/mediapipe/unity:mediapipe_android mediapipe_api:mediapipe_assets mediapipe_api:mediapipe_proto_srcs
Starting local Bazel server and connecting to it...
WARNING: API level 30 specified by android_ndk_repository 'androidndk' is not available. Using latest known API level 29
INFO: Repository XNNPACK instantiated at:
  /Users/admin/MediaPipeUnityPlugin2/C/WORKSPACE:428:13: in <toplevel>
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:74:20: in tf_workspace
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:135:20: in tf_repositories
Repository rule tf_http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/repo.bzl:131:34: in <toplevel>
INFO: Repository 'XNNPACK' used the following cache hits instead of downloading the corresponding file.
 * Hash '59ccf0c1c64899b511f8872a278e54c293970f57933b056492a364aa5ac709ec' for https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/094e692629d57ddb932fcc993193626f60daa61b.zip
If the definition of 'XNNPACK' was updated, verify that the hashes were also updated.
INFO: Repository remotejdk11_macos instantiated at:
  /DEFAULT.WORKSPACE.SUFFIX:102:6: in <toplevel>
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
ERROR: An error occurred during the fetch of repository 'XNNPACK':
   Traceback (most recent call last):
	File "/private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/repo.bzl", line 97, column 33, in _tf_http_archive
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/XNNPACK/temp14312376414784401168/094e692629d57ddb932fcc993193626f60daa61b.zip to /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/XNNPACK/temp14312376414784401168: null
ERROR: Error fetching repository: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/repo.bzl", line 97, column 33, in _tf_http_archive
		ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/XNNPACK/temp14312376414784401168/094e692629d57ddb932fcc993193626f60daa61b.zip to /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/XNNPACK/temp14312376414784401168: null
INFO: Repository android_opencv instantiated at:
  /Users/admin/MediaPipeUnityPlugin2/C/WORKSPACE:261:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Repository clog instantiated at:
  /Users/admin/MediaPipeUnityPlugin2/C/WORKSPACE:428:13: in <toplevel>
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:74:20: in tf_workspace
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:104:27: in tf_repositories
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/tensorflow/workspace.bzl:48:9: in initialize_third_party
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/clog/workspace.bzl:6:29: in repo
Repository rule third_party_http_archive defined at:
  /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/org_tensorflow/third_party/repo.bzl:216:43: in <toplevel>
Analyzing: 3 targets (207 packages loaded, 11685 targets configured)
    Fetching @clog; fetching
    Fetching ...bbcd1a2/external/XNNPACK; Extracting /private/var/tmp/_bazel_admin/2903f5a391eef669274a720d2bbcd1a2/external/XNNPACK/temp14312376414784401168/094e692629d57ddb932fcc993193626f60daa61b.zip
FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.RuntimeException: Unrecoverable error while evaluating node 'ConfiguredTargetKey{label=@google_toolbox_for_mac//:GTM_Defines, config=BuildConfigurationValue.Key[c805064e1ae26e9622e7abf6d7d2e3034d6c1e8f490563cc78f993ef6619baf0]}' (requested by nodes 'ConfiguredTargetKey{label=@com_google_mediapipe//mediapipe/objc:mediapipe_framework_ios, config=BuildConfigurationValue.Key[c805064e1ae26e9622e7abf6d7d2e3034d6c1e8f490563cc78f993ef6619baf0]}')
	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:569)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.compile(CompilationSupport.java:263)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.ccCompileAndLink(CompilationSupport.java:367)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1019)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:1063)
	at com.google.devtools.build.lib.rules.objc.CompilationSupport.registerCompileAndArchiveActions(CompilationSupport.java:949)
	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:381)
	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:194)
	at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:938)
	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:1013)
	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
make: *** [android_arm64] Error 37

Additional Context

Could it be an issue with the rules_cc file I'm currently using or is it related to Mediapipe?
The mediapipe helloworld program ran just fine when I started working on this one.

Is it due to internet or server issues? Tbh I don't think so but just thinking out loud. I have a ~400MB/s internet connection which works great and have never faced any issues as such. Btw we are based in India so everything is accessible from here. VPN is not being used at any point in time.

My MacBook has sufficient free space so even that shouldn't be an issue

@homuler
What do you think could be the issue? Would really appreciate your help on this one. Thanks in advance.

@MandarComXr MandarComXr added the type:build/install Cannot build/install the plugin label Oct 13, 2023
@homuler
Copy link
Owner

homuler commented Oct 13, 2023

I suspect this might be the same issue, but I don't want to support older versions.
I recommend asking in a different forum or considering paid support.

@homuler homuler closed this as completed Oct 13, 2023
@Arpit-ComXR
Copy link

Hey @homuler, we tried bazel clean --expunge and we are still getting the error.

We are open to Paid Support for this issue. Since we don't have your contact details, it would be great if you could drop an email at [email protected] and we can take it forward from there.

@homuler
Copy link
Owner

homuler commented Oct 16, 2023

Please send a message on Ko-fi. You can access to private messages after $1 donation.
https://ko-fi.com/homuler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:build/install Cannot build/install the plugin
Projects
None yet
Development

No branches or pull requests

3 participants