worker types page

The JATOS Worker is confusing in this page. Let's look at it together
https://github.com/JATOS/JATOS_docs_v2/wiki/Worker-Types

Ja.


NullArray::is_null() returns false incorrectly

Describe the bug
Found by @jonahgao  in https://github.com/apache/arrow-datafusion/pull/7568
To Reproduce
fn main() {
    let arr = NullArray::new(1);
    println!("arr.is_null(0): {}", arr.is_null(0))
}

Prints
arr.is_null(0): false

Expected behavior
NullArray::is_null() should return true for all elements
Additional context

I think this is a good one for someone who wants to make a contribution to Arrow

This was actually an intentional change in https://github.com/apache/arrow-rs/pull/4691/files#r1292317464

I think it is a bug -- having NullArray::is_null() return false seems simply incorrect, as well as being very confusing.
Practically it means we can't use is_null to check if an element is null -- instead we have to also special case DataType::is_null as @jonahgao  did in https://github.com/apache/arrow-datafusion/pull/7568
Maybe the problem is that NullArray::new(1) doesn't set up the buffers correctly 🤔

Maybe the problem is that NullArray::new(1) doesn't set up the buffers correctly 🤔

The difficulty is the arrow spec very clearly states that a NullArray has no buffers, including no null buffer. A NullArray technically isn't nullable, instead the only values are null... It is definitely strange...

Do you agree, from a user's perspective, that NullArray::is_null() return false is incorrect? I don't have any opinions on how to best fix this internally

No, as per the standard a NullArray is not nullable, its values are just null

I don't understand what "is not nullable, its values are just null" means.
https://arrow.apache.org/docs/format/Columnar.html#null-layout says

"We provide a simplified memory-efficient layout for the Null data type where all values are null. In this case no memory buffers are allocated."

The  arrow-rs https://docs.rs/arrow/latest/arrow/array/trait.Array.html#method.is_null says
says

Returns whether the element at index is null.

Therefore shouldn't Array::is_null return null for all values in a NullArray because all the values are null. 🤔
I didn't find anything contradicting this position in the .fbs format
https://github.com/apache/arrow/blob/440dc92caa73ca67c8ca98cebfb74f33788150bf/format/Schema.fbs#L82-L83

Therefore shouldn't Array::is_null return null for all values in a NullArray because all the values are null. 🤔

The problem is doing this would be inconsistent with the values returned by Array::nulls(), so the following would not hold
assert_eq!(array.nulls().is_some_and(|n| n.is_null(idx)), array.is_null(idx));

The problem is doing this would be inconsistent with the values returned by Array::nulls() so the following would not hold

If this property doesn't hold for some arrays it isn't an invariant, is it?
It is not clear that making NullArray::is_null return such a confusingly and seeming incorrect answer helps people understand the nuance

If this property doesn't hold for some arrays it isn't an invariant, is it?

It does hold, what you are proposing would break this :smile:

It is not clear that making NullArray::is_null return such a confusingly and seeming incorrect answer helps people understand the nuance

I don't disagree, but I also don't agree that making it return an incorrect value to make it fit people's logical models is a good solution either :smile:

I don't disagree, but I also don't agree that making it return an incorrect value to make it fit people's logical models is a good solution either 😄

I think we disagree on what the correct value is 😆

Currently the Array methods consistently return nullability as determined by the null buffer, irrespective of the array's logical value, i.e. if a dictionary value is null, this won't be reflected in is_null.
We could change this, but doing so would significantly regress performance, especially for RunArray.
I agree the current situation is unfortunate, but I do feel strongly that we should be consistent about what these methods mean.

Maybe we can solve this with some additional documentation
Or perhaps we can add a function like value_is_null() that has the more intuitive definition

Maybe we can solve this with some additional documentation

I'm open to suggestions, the current docs are pretty clear imo -
https://docs.rs/arrow-array/latest/arrow_array/array/trait.Array.html#method.is_null
https://docs.rs/arrow-array/latest/arrow_array/array/trait.Array.html#method.logical_nulls

PR is https://github.com/apache/arrow-rs/pull/4838


gfxrecon-capture.py fails quietly if layer is not present

Using the SDK tarball work on Linux, I ran gfxrecon-capture-vulkan.py to capture a game.
However, no capture was generated.
When I looked, I had failed to run "setupenv.sh" to setup the environment variables so the layer was in my path, but there was no message from the tool telling me this.
It would be nice if the python script would detect what bitdepth the executable the user passes in, run a quick test with VK_LOADER_DEBUG=layer on and create an instance and make sure it successfully worked.  Or at least parse the loader output to see if it got loaded properly.  If it doesn't, it would be nice to see an error message like "ERROR: VK_LAYER_LUNARG_gfxreconstruct was not found!".
Build Environment:
Fedora 37
To Reproduce:
Run gfxrecon-capture-vulkan.py on a Linux tarball system with no previous gfxreconstruct layer installed in a public library path.
For example with Talos on Steam:

Install SDK
cd to SDK base (where setupenv.sh is located)
Fail to run the above script
cd x86_64/bin; ./gfxrecon-capture-vulkan.py -o talos.gfxr steam -applaunch 257510

System environment:

Fedora 37 on Dell XPS 15 laptop with Steam installed

I marked this P3 because I anticipate that not running setupenv.sh is an exceptional condition and I think doing the work to create an instance from Vulkan would be prohibitive.  Would a user be expected to have the Vulkan Python bindings in order to run such a script?

I won't argue with priority, however I think some error message is warranted and if there is another way to do it simpler, that would be useful to developers using the tool who fail to have something setup properly and see no error message.

Is this a common use case?

I'm not sure how common this would be.  It's most likely encountered for Linux Tarball users, but could be encountered in other scenarios.  But it also is kind of hard to detect without forcing loader debug output and making sure you check for yourself somehow (which is ugly)....  We could create a separate exe that checks, but there's no way to know from launchers like steam if the final application is 32 or 64 bit.  So I think this needs more thinking about.  But it would be nice if we could figure something out like when Gfxreconstruct library starts it writes the time to a file or something on vkCreateInstance.  IDK.  Just thinking out loud.

I haven't seen anyone reporting a bug like this, but if you think it's a frequent silent failure case we should look into it.

run a quick test with VK_LOADER_DEBUG=layer on and create an instance and make sure it successfully worked. Or at least parse the loader output to see if it got loaded properly

I think if the user didn't set up the SDK then we probably can't even rely on vulkaninfo, can we?  In your scenario if . isn't in PATH, running any of the SDK binaries would also fail.  Maybe we could get os.path.dirname(sys.argv[0]) or something and try to run binaries from there.
Do you want to try to see if you can figure out a reliable test that the Python script can do to verify the layer is being loaded?  That would be helpful.  I think it would have to be something fairly fast and low impact, have almost no chance of crashing, that the user also couldn't cause to fail with their environment (like the user sets GFXRECON_LOG_LEVEL environment variable).

I agree that silent failure is bad.
I don't think I would suggest any fixes that require other SDK binaries because we can't be sure those are available.
Would it be enough for gfxrecon_capture_vulkan.py to check that VK_LAYER_PATH is set and warn if it isn't?  That doesn't cover the case that vkconfig has overridden the layer stack but maybe the script could also check for that.  Are there any other ways the script should check?  If If the script is only checking something simple and portable, like contents of environment variables or well-defined filesystem paths, I think that would be a good candidate for an enhancement.  Want to give it a stab after SDK is shipped?

You'd have to check VK_LAYER_PATH and VK_ADD_LAYER_PATH but that assumes it's not installed in a system folder.  I'm not sure, let's not jump on this right now, I'd like to figure out a good way that was not so error prone.


add subworkflow in decision builder

Can we add any test case corresponding to this feature?

Can we add any test case corresponding to this feature?

Tests added


pixi panics when built with Rust 1.81

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example
pixi.toml / pyproject.toml: in https://github.com/lenskit/lkpy/pull/483
pixi update

When running Pixi built with Rust 1.81.0, this panics. The official binaries and Rust 1.80.0 both succeed.

error output with RUST_BACKTRACE=1
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'tokio-runtime-worker' panicked at library/core/src/slice/sort/shared/smallsort.rs:862:5:
user-provided comparison function does not correctly implement a total order
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::slice::sort::shared::smallsort::panic_on_ord_violation
   3: core::slice::sort::shared::smallsort::small_sort_general_with_scratch
   4: core::slice::sort::stable::quicksort::quicksort
   5: core::slice::sort::stable::quicksort::quicksort
   6: core::slice::sort::stable::quicksort::quicksort
   7: core::slice::sort::stable::quicksort::quicksort
   8: core::slice::sort::stable::quicksort::quicksort
   9: core::slice::sort::stable::drift::sort
  10: core::slice::sort::stable::driftsort_main
  11: resolvo::solver::cache::SolverCache<D>::get_or_cache_sorted_candidates_for_version_set::{{closure}}
  12: resolvo::solver::cache::SolverCache<D>::get_or_cache_sorted_candidates::{{closure}}
  13: resolvo::solver::Solver<D,RT>::add_clauses_for_solvables::{{closure}}::{{closure}}
  14: futures_util::stream::stream::StreamExt::poll_next_unpin
  15: futures_util::future::future::FutureExt::now_or_never
  16: resolvo::solver::Solver<D,RT>::run_sat
  17: resolvo::solver::Solver<D,RT>::solve
  18: <rattler_solve::resolvo::Solver as rattler_solve::SolverImpl>::solve
  19: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
  20: tokio::runtime::task::core::Core<T,S>::poll
  21: tokio::runtime::task::harness::Harness<T,S>::poll
  22: tokio::runtime::blocking::pool::Inner::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'tokio-runtime-worker' panicked at library/core/src/slice/sort/shared/smallsort.rs:862:5:
user-provided comparison function does not correctly implement a total order
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::slice::sort::shared::smallsort::panic_on_ord_violation
   3: core::slice::sort::shared::smallsort::small_sort_general_with_scratch
   4: core::slice::sort::stable::quicksort::quicksort
   5: core::slice::sort::stable::quicksort::quicksort
   6: core::slice::sort::stable::quicksort::quicksort
   7: core::slice::sort::stable::quicksort::quicksort
   8: core::slice::sort::stable::quicksort::quicksort
   9: core::slice::sort::stable::drift::sort
  10: core::slice::sort::stable::driftsort_main
  11: resolvo::solver::cache::SolverCache<D>::get_or_cache_sorted_candidates_for_version_set::{{closure}}
  12: resolvo::solver::cache::SolverCache<D>::get_or_cache_sorted_candidates::{{closure}}
  13: resolvo::solver::Solver<D,RT>::add_clauses_for_solvables::{{closure}}::{{closure}}
  14: futures_util::stream::stream::StreamExt::poll_next_unpin
  15: futures_util::future::future::FutureExt::now_or_never
  16: resolvo::solver::Solver<D,RT>::run_sat
  17: resolvo::solver::Solver<D,RT>::solve
  18: <rattler_solve::resolvo::Solver as rattler_solve::SolverImpl>::solve
  19: <tokio::runtime::blocking::task::BlockingTask<T> as core::future::future::Future>::poll
  20: tokio::runtime::task::core::Core<T,S>::poll
  21: tokio::runtime::task::harness::Harness<T,S>::poll
  22: tokio::runtime::blocking::pool::Inner::run
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'tokio-runtime-worker' panicked at library/core/src/slice/sort/shared/smallsort.rs:862:5:
user-provided comparison function does not correctly implement a total order
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::slice::sort::shared::smallsort::panic_on_ord_violation
   3: core::slice::sort::shared::smallsort::small_sort_general_with_scratch
   4: core::slice::sort::stable::quicksort::quicksort
   5: core::slice::sort::stable::quicksort::quicksort
   6: core::slice::sort::stable::quicksort::quicksort
   7: core::slice::sort::stable::quicksort::quicksort
   8: core::slice::sort::stable::quicksort::quicksort
   9: core::slice::sort::stable::drift::sort
  10: core::slice::sort::stable::driftsort_main
  11: resolvo::solver::cache::SolverCache<D>::get_or_cache_sorted_candidates_for_version_set::{{closure}}
  12: resolvo::solver::cache::SolverCache<D>::get_or_cache_sorted_candidates::{{closure}}
  13: resolvo::solver::Solver<D,RT>::add_clauses_for_solvables::{{closure}}::{{closure}}

Issue description
Something in Pixi's code or dependencies (I suspect Rattler or a dependency) appears to be incompatible with some change introduces in Rust 1.81.0. With the same project, pixi update reliably panics when built with 1.81.0, and succeeds when built with 1.80.0 (or using the v0.30.0 official binary, which I presume is built with 1.80.0 since that is in the rust-toolchain file).
This is an observable issue because Homebrew ignores rust-toolchain and builds Pixi with Rust 1.81.0. I see the same panic with brew-installed Pixi on both MacOS and Linux.
I have raised the concern of ignoring rust-toolchain in the Homebrew discussion forums (https://github.com/orgs/Homebrew/discussions/5629), but am also filing a bug here since I expect you all will hit this when you bump your Rust version, and so you are aware of the problem now.
Another, much simpler environment I have correctly resolves with the brew-installed Pixi.
Expected behavior
Environment correctly resolves without panic.

Maybe related:
https://github.com/oxc-project/oxc/issues/5773#issuecomment-2352178321
I get a similar or same issue on pixi via homebrew on a mac. Similar stacktrace.
One thing I noticed in a particular repository, is that it is references conda-forge and main, and I get a lot of output like:
...
DEBUG rattler_solve::resolvo: Ignoring 'libstdcxx-devel_linux-64' from 'https://conda.anaconda.org/conda-forge/' because of strict channel priority.
DEBUG rattler_solve::resolvo: Ignoring 'libstdcxx-devel_linux-64' from 'https://conda.anaconda.org/conda-forge/' because of strict channel priority.
thread 'tokio-runtime-worker' panicked at library/core/src/slice/sort/shared/smallsort.rs:862:5:
user-provided comparison function does not correctly implement a total order

Removing main, causes pixi update to complete.
Seems to also happen with conda-forge and pytorch channels.

This pyproject.yaml appears to reproduce:
# pyproject.toml
[project]
name = "pixi-example"
requires-python = ">=3.9"

[tool.pixi.project]
name = "pixi-example"
channels = ["conda-forge", "pytorch"]
platforms = ["linux-64"]

[tool.pixi.tasks]

[tool.pixi.feature.prod.dependencies]
python = "3.9.*"
pytorch = { version = "1.10.*", channel= "pytorch"}

[tool.pixi.environments]
default = {features = ["prod"], solve-group = "default"}

on pixi v0.30.0 installed from homebrew.
I also installed pixi directly from github(also v0.30.0), and that version like above has no problem with the above pyproject.toml

I can reproduce this with the Homebrew binaries

I went and ran tests and the resolvo tests pass on Rust 1.81.0, but the rattler tests fail (conda/rattler#888). I don't think this definitively isolates the problem to Rattler, since it could be in resolvo with a code path not exercised by tests, but perhaps gets a step closer to isolating and fixing.

I think it might be an issue in the DependencyProvider which is the part that's responsible for sorting the packages. I'll take a quick look.

I've a PR in rattler that when merged and pixi is updated should fix this: https://github.com/conda/rattler/pull/892

@tdejager I have tried a local build of Pixi (main branch) with its rattler_solve dependency updated to the version with your PR and using Rust 1.81, and I can confirm that it fixes the sort-related Pixi panic on at least one of my projects (this project panics when main is built with 1.81.0, and does not when built with the patched rattler dependency).

Great 👍 we'll try to push a release in a day or so.

Release is out :)


csmeaning

The package provides \csshow which is "Similar to the TeX primitive \show but takes a control sequence name as its argument.". Should it be possible to have \csmeaning?

Seems in-scope to me: I don't immediately see any reason not to do this. Will do a few checks first to make sure I'm not forgetting something.


Linking the Rust standard library

Rust toolchains come with a pre-built shared object file for the standard library, so it seems likely that what we need to do is ship a pre-built goto-c object file for the standard library.

We need a way to build this object file.
We need to ensure we have sufficient and sound program-slicing to cull it down to size, so that unused functions do not blow up verification times.
We can think about pre-linking more things (like "rmc c lib") into it. However if we want to support no_std then maybe not?

Tracking issue

Would fix https://github.com/model-checking/kani/issues/87
Related https://github.com/model-checking/kani/issues/208
Would fix https://github.com/model-checking/kani/issues/241
Related https://github.com/model-checking/kani/issues/556
Related https://github.com/model-checking/kani/issues/564
Related https://github.com/model-checking/kani/issues/576 (Comment on this one extracted into this issue's tasks)
Would fix https://github.com/model-checking/kani/issues/581 (Kind of precursor to this issue)

ALTERNATIVELY!
It sounds like MIRI does "normal" compilation (to rlib) every step of the way until the very end, where it also pulls in the standard library rlib and then does a final translation to goto-c at the end. Needs investigation.

Attempted to re-do the std library linking experiment using the following steps:

cargo new --lib lstd
Put the following in src/lib.rs:

#[kani::proof]
fn check_format() {
    assert!("2021".parse::<u32>().unwrap() == 2021);
}

Build using:

KANIFLAGS="--goto-c --ignore-global-asm --log-level=error --assertion-reach-checks -C symbol-mangling-version=v0" RUSTC="/home/ubuntu/git/kani/target/debug/kani-compiler" RUSTFLAGS="--kani-flags" cargo +nightly-2022-05-17 build --target x86_64-unknown-linux-gnu -Z build-std --lib --target-dir target

Convert symbol table json files to goto binaries using

cd target/x86_64-unknown-linux-gnu/debug/deps && ls *.symtab.json | parallel -j 16 symtab2gb {} --out {.}.out

but ran into a bunch of issue:

In step 3, got many errors of the form:

error: duplicate lang item in crate `std` (which `kani` depends on): `panic_impl`.
  |
  = note: the lang item is first defined in crate `std` (which `lstd` depends on)
  = note: first definition in `std` loaded from /home/ubuntu/examples/lstd/target/x86_64-unknown-linux-gnu/debug/deps/libstd-9f9e8af9b2102e2a.rmeta
  = note: second definition in `std` loaded from /home/ubuntu/.rustup/toolchains/nightly-2022-05-17-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-977ece543e1e3d2f.rlib

error: duplicate lang item in crate `std` (which `kani` depends on): `begin_panic`.
  |
  = note: the lang item is first defined in crate `std` (which `lstd` depends on)
  = note: first definition in `std` loaded from /home/ubuntu/examples/lstd/target/x86_64-unknown-linux-gnu/debug/deps/libstd-9f9e8af9b2102e2a.rmeta
  = note: second definition in `std` loaded from /home/ubuntu/.rustup/toolchains/nightly-2022-05-17-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-977ece543e1e3d2f.rlib

error: duplicate lang item in crate `std` (which `kani` depends on): `oom`.
  |
  = note: the lang item is first defined in crate `std` (which `lstd` depends on)
  = note: first definition in `std` loaded from /home/ubuntu/examples/lstd/target/x86_64-unknown-linux-gnu/debug/deps/libstd-9f9e8af9b2102e2a.rmeta
  = note: second definition in `std` loaded from /home/ubuntu/.rustup/toolchains/nightly-2022-05-17-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-977ece543e1e3d2f.rlib

error: duplicate lang item in crate `std` (which `kani` depends on): `start`.
  |
  = note: the lang item is first defined in crate `std` (which `lstd` depends on)
  = note: first definition in `std` loaded from /home/ubuntu/examples/lstd/target/x86_64-unknown-linux-gnu/debug/deps/libstd-9f9e8af9b2102e2a.rmeta
  = note: second definition in `std` loaded from /home/ubuntu/.rustup/toolchains/nightly-2022-05-17-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-977ece543e1e3d2f.rlib

error: duplicate lang item in crate `std` (which `kani` depends on): `termination`.
  |
  = note: the lang item is first defined in crate `std` (which `lstd` depends on)
  = note: first definition in `std` loaded from /home/ubuntu/examples/lstd/target/x86_64-unknown-linux-gnu/debug/deps/libstd-9f9e8af9b2102e2a.rmeta
  = note: second definition in `std` loaded from /home/ubuntu/.rustup/toolchains/nightly-2022-05-17-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-977ece543e1e3d2f.rlib

error: duplicate lang item in crate `core` (which `std` depends on): `sized`.
  |
  = note: the lang item is first defined in crate `core` (which `std` depends on)
  = note: first definition in `core` loaded from /home/ubuntu/examples/lstd/target/x86_64-unknown-linux-gnu/debug/deps/libcore-6d9d14315cbfc8dc.rmeta
  = note: second definition in `core` loaded from /home/ubuntu/.rustup/toolchains/nightly-2022-05-17-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-0e3656b1fda5fd7b.rlib

error[E0034]: multiple applicable items in scope
 --> src/lib.rs:3:20
  |
3 |     assert!("2021".parse::<u32>().unwrap() == 2021);
  |                    ^^^^^ multiple `parse` found
  |
  = note: candidate #1 is defined in an impl for the type `str`
  = note: candidate #2 is defined in an impl for the type `str`

For more information about this error, try `rustc --explain E0034`.
Error: "Failed to compile crate."
error: could not compile `lstd` due to 113 previous errors

If I ignore those errors and proceed with step 4, I got some CBMC invariant violations:

--- begin invariant violation report ---
Invariant check failed
File: ../src/goto-programs/goto_convert_functions.cpp:173 function: convert_function
Condition: parameter identifier must be a known symbol
Reason: symbol_table.has_symbol(p)
Backtrace:
symtab2gb(print_backtrace(std::ostream&)+0x50) [0x5641cf9429d0]
symtab2gb(get_backtrace[abi:cxx11]()+0x169) [0x5641cf942f79]
symtab2gb(std::enable_if<std::is_base_of<invariant_failedt, invariant_with_diagnostics_failedt>::value, void>::type invariant_violated_structured<invariant_with_diagnostics_failedt, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)+0x44) [0x5641cf95f144]
symtab2gb(goto_convert_functionst::convert_function(dstringt const&, goto_functiont&)+0x238e) [0x5641cfb2562e]
symtab2gb(goto_convert_functionst::goto_convert(goto_functionst&)+0x11c) [0x5641cfb2660c]
symtab2gb(goto_convert(symbol_table_baset&, goto_functionst&, message_handlert&)+0x497) [0x5641cfb27657]
symtab2gb(goto_convert(goto_modelt&, message_handlert&)+0x89) [0x5641cfb27869]
symtab2gb(+0xe73b8) [0x5641cf92f3b8]
symtab2gb(symtab2gb_parse_optionst::doit()+0x13d) [0x5641cf92fa0d]
symtab2gb(parse_options_baset::main()+0x8f) [0x5641cf9281cf]
symtab2gb(main+0x39) [0x5641cf9279f9]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f117a7af0b3]
symtab2gb(_start+0x2e) [0x5641cf92d40e]

Diagnostics:
<< EXTRA DIAGNOSTICS >>
function:
_RNvMs_NtNtCsely0tNBvcUY_10proc_macro6bridge7closureINtB4_7ClosureINtNtB6_6buffer6BufferhEB11_E4callB8_
parameter:
_RNvMs_NtNtCsely0tNBvcUY_10proc_macro6bridge7closureINtB4_7ClosureINtNtB6_6buffer6BufferhEB11_E4callB8_::1::var_1::self
<< END EXTRA DIAGNOSTICS >>

--- end invariant violation report ---

I'm closing this issue since users can use --mir-linker to properly link against the standard library. I added all the related issues to the linker stabilization milestone so we don't forget to clean them up.


Code quality: investigate enforcing DSL at compile-time using static code analysis

Indirectly related to

#382

Observations
General

Microsoft.CodeAnalysis.FxCopAnalyzers is no longer supported as of Visual Studio 2019
Roslyn analyzers are now shiipped with the .NET SDK, and do not need to be installed separately.
BE ASVISED: to enable static code analysis

for .NET Core 5 or later, it is enabled by default
for .NET Standard or older .NET Core

you must manually enable code analysis using the project setting <EnableNETAnalyzers>True</EnableNETAnalyzers> or
reference the Microsoft.CodeAnalysis.NetAnalyzers NuGet package

Spelling
Background

Spelling was enforced at compile-time using FxCop rule CA1704 & a CodeAnalysisDictionary
When the Roslyn analyzers were first introduced CA1704 was not initially supported.
Pre-release support is not available through the Text.Analyzers NuGet package

https://github.com/dotnet/roslyn-analyzers/tree/main/src/Text.Analyzers

The Roslyn analyzer is still under development.  As of August 2023:

To further complicate things, Microsoft is releasing a new version of the Spell Check for visual studio.

As of August 2023 it does not appear to be working.

Compile-Time Spell Check
Update .editorconfig in the solution folder:
spelling_exclusion_path = spelling_whitelist.dic
dotnet_diagnostic.CA1704.severity = warning

When you add "Ignore" a word using VS2022 IDE Spell Checker, the work will be added to spelling_whitelist.dic.
BE ADVISED: the source code for the Roslyn analyzer suggests that it will read data from either CodeAnalysisDictionary OR spelling_whitelist.dic.

not sure how this works with the new VS2022 spell checker.

Additional Reading

Overview of .NET source code analysis
MSDN: Source Code Analysis

Roslyn analyzers

Text.Anaylyzer

still under development
includes spell checking at compile time

list of Roslyn code quality rules

To Do

[ ] Wait until the Ignore  feature works in the new VS2022 Spell Check feature.

Which informs VS2022 that the selected word is valid & should be added to the white list.

[ ] Using the latest Text.Analyzers, setup compile-time static code analysis.
[ ] Configured the analyzer

block unwanted words
allow DSL specific terms

[ ] Compile

The Weevil projects should compile as expected, and the analyzer should enforce the domain specific language.


[SYSTEMML-1181] Change sqlContext to spark in MLContext docs

The variable sqlContext is not available by default in the spark shell anymore, instead spark should be used to create DataFrames.
Where methods expect an instance of SqlContext, arguments are replaced with spark.sqlContext.

LGTM. Thank you @fschueler!


DO-987 updated the start monit and stop monit tasks in deployment script

Added the monit stop, monit start and remove old artifacts tasks in secor, analytics and logstash deployment scripts.

@keshavprasadms Please review the new changes.

@anandp504 We have updated the secor, analytics-api and logstash deployment script with Stop monit and start monit service.  This addition is to make sure monit should not play any role when deployment happens.
Also, we have added the tasks to remove the old artifatcs file in the server before copy the new artifacts into the server to make sure new code deployed . Please review from your end and suggest if any.
We also working on refactoring the samza-jobs deployment script.


Coreruleset plugins and the new plugin mounts

Hey, awesome work with the plugin!
Just wondering if using custom CRS plugins (in this case wordpress-rule-exclusions-plugin) is possible currently without having to copy all the rules to the Trafik config? The new mounts feature is shipped now in v3.1, but I didn't seem to get it working with it (fileread failed).

+1

Same here!
For anyone else struggling to find the mount points syntax all I found was the example in the Traefik v3.1 release blog post at https://community.traefik.io/t/announcing-traefik-proxy-v3-1/23600 - but I have no idea if this is correct or not, and so may also explain why I couldn't get the Coraza plugin to load the CRS files....


Confluent Terraform Provider isn't fully Idempotent when we use *.tfsvars Config Type Array Elements

I've try the Confluent Terraform provider to create some elements on my confluent cloud subscription like:

Environment
Cluster
Service Account Cloud API keys
Service Account Cluster API keys

I notice some strange things when I use the Confluent Terraform scripts on conjunction with *.tfvars with custom type array, in order to avoid having hard coded value in our Terraform scripts.
In this example, I notice that with a cluster type array, defined into a kafkaclusters.dev.tfvars, when the array content changes, it destroy previously created Kafka cluster, even if the cluster name is still present in the kafkaclusters.dev.tfvars file.

PS: Link to my GitHub Repository for this issue: https://github.com/lturmel/confluent-terraform-provider-issue

👋 thanks for asking!
Based on the output of terraform plan, it seems like an issue with using count = length(var.clusters), I'm not too familiar with it but I might take a look later (sounds like TF decided your clusters[1] is the new clusters[0]).
That said, is there a specific reason not to hardcode resource definitions? For example, you might consider basic -> standard Kafka cluster updates at some point in the future so having an ability to run terraform plan -target="confluent_kafka_cluster.example-123" might be useful. Generally we expect users to split TF configurations by both env and teams.
Let me know if it helps.

👋 thanks for asking!
Based on the output of terraform plan, it seems like an issue with using count = length(var.clusters), I'm not too familiar with it but I might take a look later (sounds like TF decided your clusters[1] is the new clusters[0]). You might want to use for_each instead of count for iterated resources (see here for more details).
That said, is there a specific reason not to hardcode resource definitions? For example, you might consider basic -> standard Kafka cluster updates at some point in the future so having an ability to run terraform plan -target="confluent_kafka_cluster.example-123" might be useful. Generally we expect users to split TF configurations by both env and teams.
Let me know if it helps.

Hi @linouk23 , thanks taking the time to reply to my issue. The simple reason why I don't want to hardcoded the resource is simply because I want to respect the infrastructure as code principle where I can define a dev.tfvars & and prod.tfvars and apply it to the *.tf file I use to deploy my infrastructure component.... Like I always do with Azure Bicep. But here it's Terraform, and I should be able to do the same...

Good morning @linouk23, let me re-phrase my question.
Why if I define clusters in an array with cluster "name", why the terraform provider doesn't use the "name" that I use to identify which cluster is already existing and/or to be destroy in comparison with the terraform state file ? Which I'm assuming it use the cluster ID.

@linouk23 Any update ?

Did you try a similar setup with other TF Providers? cc @lturmel
It looks like this might not specific to our TF Provider, did you try asking on StackOverflow or something?

@linouk23 I will do, but I also speak with some peers that told me that my way of using it wasn't too much extreme, and to be honest with you, I found it really weird that we can't do it...

Thank you! I'll try to find some time to experiment with it and report back the findings too.

Hi @linouk23 thanks for you help, I didn't get it that the difference can be count = length(var.clusters) vs for_each... not it's working as expected... thanks you

@lturmel that's great to hear! Could you post / reference an updated version that works? Could you confirm that the fix was to use for_each instead of count?

You might want to use for_each instead of count for iterated resources (see here for more details).

@linouk23  here are the working solution ;)

@lturmel that's great to hear! Could you post / reference an updated version that works? Could you confirm that the fix was to use for_each instead of count?

You might want to use for_each instead of count for iterated resources (see here for more details).

👏


Fix build failure from merging conflicts

When we merged https://github.com/gruntwork-io/terratest/pull/392 and https://github.com/gruntwork-io/terratest/pull/389, one did not integrate with the other causing the build to fail. This fixes that.

Saw build pass, so going to merge this in. Thanks for review!


Add IAM policy required config rule

I confirm these files are made available under CC0 1.0 Universal (https://creativecommons.org/publicdomain/zero/1.0/legalcode)
Issue #, if available:
Description of changes:
Adds a Config Rule that verifies all IAM Roles/Users have the given policy attached to them (either directly or through groups). Includes ability to exclude certain roles/users from the rule

thanks for the feedback, I'll get these updates made tomorrow

I think a CONTRIBUTING.md would make help to capture some of this stuff like use of get_client, parameter naming conventions

@jongogogo I've done a fair bit of refactoring to bring this in line with the standards, use pagination, use the config item. one thing i noticed whilst testing is the RDK doesn't appear to be respecting the OptionalParameters in parameters.json when deploying the rule i.e. it gets deployed without it even when a value is set?

@jongogogo I've done a fair bit of refactoring to bring this in line with the standards, use pagination, use the config item. let me know if other changes are required.
one thing i noticed whilst testing is the RDK doesn't appear to be respecting the OptionalParameters in parameters.json when deploying the rule i.e. it gets deployed without it even when a value is set?

@HieronymusLex Yep, you are right. Do you mind +1 on this issue to prioritize the rdk team: https://github.com/awslabs/aws-config-rdk/issues/108


Build on M1 Mac fail

System information

OS Platform and Distribution (e.g., Linux Ubuntu 20.04, WSL2):  macOS Big Sur
Target (e.g. desktop cpu, android arm64): desktop cpu & ios arm64
Bazel version: 3.7.2
Python version: 3.9.9
GCC/G++ version: 13.0.0
Unity version: 2021.2.7f
Xcode version (if building for iOS): 13.2.1

Describe the problem
I followed the Installation-Guide#m1-mac to install, but when I tried to build, it failed.
Steps to reproduce the issue
python3 build.py build --desktop cpu --ios arm64 -vv
And I also tried python3 build.py build --desktop cpu --include_opencv_libs -vv, the result will be same.
Full logs

python3 build.py build --desktop cpu --ios arm64 -vv

INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running `bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs`
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
INFO: Build option --define has changed, discarding analysis cache.
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:84:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:41:23: in <toplevel>
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
INFO: Analyzed target //mediapipe_api:mediapipe_proto_srcs (0 packages loaded, 829 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_proto_srcs up-to-date:
  bazel-bin/mediapipe_api/mediapipe_proto_srcs.zip
INFO: Elapsed time: 0.903s, Critical Path: 0.15s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_proto_srcs.zip' to 'build/Scripts/Protobuf'...
INFO (build.py): Built protobuf sources
INFO (build.py): Downloading dlls...
DEBUG (build.py): Running `nuget install -o .nuget -Source https://api.nuget.org/v3/index.json`
Feeds used:
  /Users/user/.nuget/packages/
  https://api.nuget.org/v3/index.json

/Users/user/Documents/GitHub/MediaPipePose/packages.config 中列出的所有封裝均已安裝。
DEBUG (build.py): Copying '.nuget/System.Buffers.4.4.0/lib/netstandard2.0/System.Buffers.dll' to 'build/Plugins/Protobuf/System.Buffers.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Buffers.dll'...
DEBUG (build.py): Copying '.nuget/Google.Protobuf.3.15.6/lib/netstandard2.0/Google.Protobuf.dll' to 'build/Plugins/Protobuf/Google.Protobuf.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/Google.Protobuf.dll'...
DEBUG (build.py): Copying '.nuget/System.Runtime.CompilerServices.Unsafe.4.5.2/lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll' to 'build/Plugins/Protobuf/System.Runtime.CompilerServices.Unsafe.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Runtime.CompilerServices.Unsafe.dll'...
DEBUG (build.py): Copying '.nuget/System.Memory.4.5.3/lib/netstandard2.0/System.Memory.dll' to 'build/Plugins/Protobuf/System.Memory.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Memory.dll'...
INFO (build.py): Downloaded protobuf dlls
INFO (build.py): Building resource files
DEBUG (build.py): Running `bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_assets`
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:41:23: in <toplevel>
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:84:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Analyzed target //mediapipe_api:mediapipe_assets (0 packages loaded, 26 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_assets up-to-date:
  bazel-bin/mediapipe_api/mediapipe_assets.zip
INFO: Elapsed time: 0.412s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_assets.zip' to 'build/Resources'...
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_assets.zip' to 'Assets/StreamingAssets'...
INFO (build.py): Built resource files
INFO (build.py): Building native libraries for Desktop...
DEBUG (build.py): Running `bazel build -c opt --verbose_failures --define MEDIAPIPE_DISABLE_GPU=1 --@opencv//:switch=local //mediapipe_api:mediapipe_desktop`
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
INFO: Build option --define has changed, discarding analysis cache.
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:84:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:41:23: in <toplevel>
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
ERROR: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/opencv/BUILD.bazel:48:6: @opencv//:opencv_binary depends on @macos_opencv//:opencv in repository @macos_opencv which failed to fetch. no such package '@macos_opencv//': The repository's path is "/usr/local/opt/opencv@3" (absolute: "/usr/local/opt/opencv@3") but this directory does not exist.
ERROR: Analysis of target '//mediapipe_api:mediapipe_desktop' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.348s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 598 targets config\
ured)
Traceback (most recent call last):
  File "/Users/user/Documents/GitHub/MediaPipePose/build.py", line 443, in <module>
    Argument().command().run()
  File "/Users/user/Documents/GitHub/MediaPipePose/build.py", line 141, in run
    self._run_command(self._build_desktop_commands())
  File "/Users/user/Documents/GitHub/MediaPipePose/build.py", line 52, in _run_command
    return subprocess.run(' '.join(command_list), check=True, shell=shell)
  File<EMAIL_ADDRESS>line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'bazel build -c opt --verbose_failures --define MEDIAPIPE_DISABLE_GPU=1 --@opencv//:switch=local //mediapipe_api:mediapipe_desktop' returned non-zero exit status 1.

python3 build.py build --desktop cpu --include_opencv_libs -vv

INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running `bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs`
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
INFO: Build option --define has changed, discarding analysis cache.
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:84:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:41:23: in <toplevel>
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
INFO: Analyzed target //mediapipe_api:mediapipe_proto_srcs (0 packages loaded, 829 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_proto_srcs up-to-date:
  bazel-bin/mediapipe_api/mediapipe_proto_srcs.zip
INFO: Elapsed time: 1.031s, Critical Path: 0.26s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_proto_srcs.zip' to 'build/Scripts/Protobuf'...
INFO (build.py): Built protobuf sources
INFO (build.py): Downloading dlls...
DEBUG (build.py): Running `nuget install -o .nuget -Source https://api.nuget.org/v3/index.json`
Feeds used:
  /Users/user/.nuget/packages/
  https://api.nuget.org/v3/index.json

/Users/user/Documents/GitHub/MediaPipePose/packages.config 中列出的所有封裝均已安裝。
DEBUG (build.py): Copying '.nuget/System.Buffers.4.4.0/lib/netstandard2.0/System.Buffers.dll' to 'build/Plugins/Protobuf/System.Buffers.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Buffers.dll'...
DEBUG (build.py): Copying '.nuget/Google.Protobuf.3.15.6/lib/netstandard2.0/Google.Protobuf.dll' to 'build/Plugins/Protobuf/Google.Protobuf.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/Google.Protobuf.dll'...
DEBUG (build.py): Copying '.nuget/System.Runtime.CompilerServices.Unsafe.4.5.2/lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll' to 'build/Plugins/Protobuf/System.Runtime.CompilerServices.Unsafe.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Runtime.CompilerServices.Unsafe.dll'...
DEBUG (build.py): Copying '.nuget/System.Memory.4.5.3/lib/netstandard2.0/System.Memory.dll' to 'build/Plugins/Protobuf/System.Memory.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Memory.dll'...
INFO (build.py): Downloaded protobuf dlls
INFO (build.py): Building resource files
DEBUG (build.py): Running `bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_assets`
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:41:23: in <toplevel>
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:84:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
INFO: Analyzed target //mediapipe_api:mediapipe_assets (0 packages loaded, 26 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_assets up-to-date:
  bazel-bin/mediapipe_api/mediapipe_assets.zip
INFO: Elapsed time: 0.466s, Critical Path: 0.02s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_assets.zip' to 'build/Resources'...
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_assets.zip' to 'Assets/StreamingAssets'...
INFO (build.py): Built resource files
INFO (build.py): Building native libraries for Desktop...
DEBUG (build.py): Running `bazel build -c opt --verbose_failures --define MEDIAPIPE_DISABLE_GPU=1 --@opencv//:switch=local //mediapipe_api:mediapipe_desktop`
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'bazel_skylib' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/org_tensorflow/third_party/repo.bzl:108:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
INFO: Build option --define has changed, discarding analysis cache.
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:84:13: in <toplevel>
Repository rule http_archive defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
  /Users/user/Documents/GitHub/MediaPipePose/WORKSPACE:41:23: in <toplevel>
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
  /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
ERROR: /private/var/tmp/_bazel_user/5062d34a58e179a33dc7e850c309acd0/external/opencv/BUILD.bazel:48:6: @opencv//:opencv_binary depends on @macos_opencv//:opencv in repository @macos_opencv which failed to fetch. no such package '@macos_opencv//': The repository's path is "/usr/local/opt/opencv@3" (absolute: "/usr/local/opt/opencv@3") but this directory does not exist.
ERROR: Analysis of target '//mediapipe_api:mediapipe_desktop' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.468s
INFO: 0 processes.

Additional context

python3 build.py build --desktop cpu --ios arm64 -vv

python3 build.py build --desktop cpu --include_opencv_libs -vv

Have you installed Bazelisk? (Step No.4 https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#m1-mac)
I guess you've installed Bazel (v3.7.2?) and are using it.

I have installed.
When I run bazel --version, it also can show the version

Well, please always share the full log in text format.
Have you installed OpenCV 3? (cf. Step No.2 https://github.com/homuler/MediaPipeUnityPlugin/wiki/Installation-Guide#m1-mac)

Sorry, I revised it.
I Installed OpenCV3, the following is the result of brew install opencv@3
user@Users-Mac-mini ~ % brew install opencv@3
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 3 formulae.
==> Updated Casks
Updated 3 casks.

Warning: opencv@3 3.4.16 is already installed and up-to-date.
To reinstall 3.4.16, run:
  brew reinstall opencv@3

Where is opencv@3 installed?
Will you run find /opt/homebrew/opt/opencv@3 and share the output?

Sure, this is the output of find /opt/homebrew/opt/opencv@3.
user@Users-Mac-mini ~ % find /opt/homebrew/opt/opencv@3
/opt/homebrew/opt/opencv@3

And this is the content in  /opt/homebrew/opt/opencv@3.

Ah...sorry, maybe it's a symbolic link.
Please tell me all the file paths (recursively) under /opt/homebrew/opt/opencv@3 (in text format).
e.g.
/home/homuler/lib/OpenCV/install/3.4.16
/home/homuler/lib/OpenCV/install/3.4.16/share
/home/homuler/lib/OpenCV/install/3.4.16/share/OpenCV
/home/homuler/lib/OpenCV/install/3.4.16/share/OpenCV/haarcascades
/home/homuler/lib/OpenCV/install/3.4.16/share/OpenCV/haarcascades/haarcascade_frontalcatface.xml
...

Does<EMAIL_ADDRESS>exist?

By the way, you can still built libraries by linking OpenCV statically.
python build.py build --desktop cpu --opencv cmake -vv

Oh, wait, which version of the plugin are you building?

 To build it on M1 Mac, the version must be >= 0.8.1.

Oh... Sorry, I use the 0.8.0...
Maybe I download the newest version and try again tomorrow.
If there is no problem, I will close this issue.

Oh, wait, which version of the plugin are you building? To build it on M1 Mac, the version must be >= 0.8.1.

Sorry, to interrupt. I am on the same issue now. Which plugins need to be version 0.8.1 or higher?

Oh, wait, which version of the plugin are you building? To build it on M1 Mac, the version must be >= 0.8.1.

Sorry, to interrupt. I am on the same issue now. Which plugins need to be version 0.8.1 or higher?

This MediaPipeUnityPlugin, the latest version is 0.8.2.

Oh, wait, which version of the plugin are you building? To build it on M1 Mac, the version must be >= 0.8.1.

Oh... Sorry, I use the 0.8.0... Maybe I download the newest version and try again tomorrow. If there is no problem, I will close this issue.

OK, so I download the latest version of the plugin, and follow again the Installation-Guide#m1-mac.
The build successes this time!
But When I run the Start Scene, there is other error.

The following is the content of the error.
DllNotFoundException: mediapipe_c assembly:<unknown assembly> type:<unknown type> member:(null)
Mediapipe.Glog.set_Logtostderr (System.Boolean value) (at Packages/com.github.homuler.mediapipe/Runtime/Scripts/External/Glog.cs:27)
Mediapipe.Unity.GlobalConfigManager.SetFlags () (at Assets/Mediapipe/Samples/Common/Scripts/GlobalConfigManager.cs:118)
Mediapipe.Unity.Bootstrap+<Start>d__17.MoveNext () (at Assets/Mediapipe/Samples/Common/Scripts/Bootstrap.cs:48)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

I know there are some possible reasons here , these are some steps I have tried:

Check if Native libraries are not built yet
-> I built, and succeed. libmediapipe_c.dylib and MediaPipeUnity.Framework exist, too.

rebuild
-> use --opencv cmake and success. (Of course, I check the Load on startup )

Change masOS Platform settings
-> four dll files under Packages/com.github.homuler.mediapipe/Runtime/Plugins/Protobuf
-> I change the option of CPU to Apple silicon.

But after those steps, the error still occurred.

Can you confirm you are running Apple Silicon UnityEditor (not Intel)?
https://unity3d.com/unity/whats-new/2021.2.7

Can you confirm you are running Apple Silicon UnityEditor (not Intel)? https://unity3d.com/unity/whats-new/2021.2.7

OH!
I uninstall the origin version, and install the Unity Editor (Apple silicon) version.
It runs perfectly now!
THANK YOU VERY MUCH!

I have the same error now when I have the plugin 0.8.2
OS Platform and Distribution (e.g., Linux Ubuntu 20.04, WSL2): mac OS Monterey
Target (e.g. desktop cpu, android arm64):desktop gpu
Bazel version: 4.2.2
Python version: 3.10.1
GCC/G++ version: 13.0.0
Unity version: 2020.3.23
MacBook-Pro:MediaPipeUnityPlugin $ python build.py build --desktop gpu --opencv cmake -vv
INFO (build.py): Building protobuf sources...
DEBUG (build.py): Running bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_proto_srcs
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/fc70a32ecd248dd7612d75d2177125ed14541367.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
DEBUG: /private/var/tmp/_bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/_bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: /private/var/tmp/_bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /private/var/tmp/_bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/_bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/_bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/_bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
/Users//MediaPipeUnityPlugin/WORKSPACE:84:13: in
Repository rule http_archive defined at:
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
/Users//MediaPipeUnityPlugin/WORKSPACE:41:23: in
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
INFO: Analyzed target //mediapipe_api:mediapipe_proto_srcs (1 packages loaded, 2 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_proto_srcs up-to-date:
bazel-bin/mediapipe_api/mediapipe_proto_srcs.zip
INFO: Elapsed time: 18.215s, Critical Path: 15.41s
INFO: 214 processes: 3 internal, 211 darwin-sandbox.
INFO: Build completed successfully, 214 total actions
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_proto_srcs.zip' to 'build/Scripts/Protobuf'...
INFO (build.py): Built protobuf sources
INFO (build.py): Downloading dlls...
DEBUG (build.py): Running nuget install -o .nuget -Source https://api.nuget.org/v3/index.json
Feeds used:
/Users//.nuget/packages/
https://api.nuget.org/v3/index.json
/Users//MediaPipeUnityPlugin/packages.config に含まれるすべてのパッケージは、既にインストールされています。
DEBUG (build.py): Copying '.nuget/System.Buffers.4.4.0/lib/netstandard2.0/System.Buffers.dll' to 'build/Plugins/Protobuf/System.Buffers.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Buffers.dll'...
DEBUG (build.py): Copying '.nuget/Google.Protobuf.3.19.1/lib/netstandard2.0/Google.Protobuf.dll' to 'build/Plugins/Protobuf/Google.Protobuf.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/Google.Protobuf.dll'...
DEBUG (build.py): Copying '.nuget/System.Runtime.CompilerServices.Unsafe.4.5.2/lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll' to 'build/Plugins/Protobuf/System.Runtime.CompilerServices.Unsafe.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Runtime.CompilerServices.Unsafe.dll'...
DEBUG (build.py): Copying '.nuget/System.Memory.4.5.3/lib/netstandard2.0/System.Memory.dll' to 'build/Plugins/Protobuf/System.Memory.dll'...
DEBUG (build.py): Changing the mode of 'build/Plugins/Protobuf/System.Memory.dll'...
INFO (build.py): Downloaded protobuf dlls
INFO (build.py): Building resource files
DEBUG (build.py): Running bazel build -c opt --verbose_failures //mediapipe_api:mediapipe_assets
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/fc70a32ecd248dd7612d75d2177125ed14541367.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11' because it already exists.
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
/Users//MediaPipeUnityPlugin/WORKSPACE:41:23: in
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
/Users//MediaPipeUnityPlugin/WORKSPACE:84:13: in
Repository rule http_archive defined at:
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
INFO: Analyzed target //mediapipe_api:mediapipe_assets (0 packages loaded, 29 targets configured).
INFO: Found 1 target...
Target //mediapipe_api:mediapipe_assets up-to-date:
bazel-bin/mediapipe_api/mediapipe_assets.zip
INFO: Elapsed time: 0.183s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_assets.zip' to 'build/Resources'...
DEBUG (build.py): Unarchiving 'bazel-bin/mediapipe_api/mediapipe_assets.zip' to 'Assets/StreamingAssets'...
INFO (build.py): Built resource files
INFO (build.py): Building native libraries for Desktop...
DEBUG (build.py): Running bazel build -c opt --verbose_failures --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11 --@opencv//:switch=cmake //mediapipe_api:mediapipe_desktop
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/a87782c34d667d1c1a18fe82a9a7abfc72fd345b.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/fc70a32ecd248dd7612d75d2177125ed14541367.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_absl' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_benchmark' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11_bazel' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_protobuf' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_google_googletest' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'com_github_gflags_gflags' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'rules_python' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_apple' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_rules_swift' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'build_bazel_apple_support' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'xctestrunner' because it already exists.
DEBUG: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/org_tensorflow/third_party/repo.bzl:122:14:
Warning: skipping import of repository 'pybind11' because it already exists.
INFO: Build options --@opencv//:switch and --copt have changed, discarding analysis cache.
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "3839996049629e6377abdfd04681ddeeb0cc3db13b9d2ff81bf46700cb4529f7"
DEBUG: Repository rules_cc instantiated at:
/Users//MediaPipeUnityPlugin/WORKSPACE:84:13: in
Repository rule http_archive defined at:
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1564776078 -0400"
DEBUG: Repository rules_python instantiated at:
/Users//MediaPipeUnityPlugin/WORKSPACE:41:23: in
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/rules_pkg/deps.bzl:33:10: in rules_pkg_dependencies
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe
Repository rule git_repository defined at:
/private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/0d6a1194ff36f59c79089336d7a3b446c3c6a39d.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/com_google_mediapipe/mediapipe/framework/tool/BUILD:182:24: in cc_library rule @com_google_mediapipe//mediapipe/framework/tool:field_data_cc_proto: target '@com_google_mediapipe//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/com_google_mediapipe/mediapipe/framework/BUILD:54:24: in cc_library rule @com_google_mediapipe//mediapipe/framework:calculator_cc_proto: target '@com_google_mediapipe//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //mediapipe_api:mediapipe_desktop (0 packages loaded, 21934 targets configured).
INFO: Found 1 target...
ERROR: /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/external/com_google_mediapipe/mediapipe/gpu/BUILD:639:13: Compiling mediapipe/gpu/MPPMetalHelper.mm failed: (Aborted): wrapped_clang failed: error executing command
(cd /private/var/tmp/bazel/4970e67c106780447d5d2e1b186e884f/sandbox/darwin-sandbox/5927/execroot/mediapipe_api &&
exec env -
APPLE_SDK_PLATFORM=MacOSX
APPLE_SDK_VERSION_OVERRIDE=12.1
PATH='/Users//Library/Caches/bazelisk/downloads/bazelbuild/bazel-4.2.1-darwin-arm64/bin:/Users//.pyenv/versions/3.10.1/bin:/opt/homebrew/opt/pyenv/libexec:/Users//.pyenv/plugins/python-build/bin:/opt/homebrew/opt/pyenv/plugins/python-build/bin:/usr/local/Homebrew/bin:/Users//.pyenv/shims:/bin:/usr/local/homebrew/opt/python@3.8/bin:/Users//miniforge3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin'
XCODE_VERSION_OVERRIDE=<IP_ADDRESS>C100
external/local_config_cc/wrapped_clang -arch arm64 '-stdlib=libc++' '-std=gnu++11' '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 -DNDEBUG '-DNS_BLOCK_ASSERTIONS=1' 'DEBUG_PREFIX_MAP_PWD=.' -Wshorten-64-to-32 -Wbool-conversion -Wconstant-conversion -Wduplicate-method-match -Wempty-body -Wenum-conversion -Wint-conversion -Wunreachable-code -Wmismatched-return-types -Wundeclared-selector -Wuninitialized -Wunused-function -Wunused-variable -iquote external/com_google_mediapipe -iquote bazel-out/darwin_arm64-opt/bin/external/com_google_mediapipe -iquote external/com_google_protobuf -iquote bazel-out/darwin_arm64-opt/bin/external/com_google_protobuf -iquote external/zlib -iquote bazel-out/darwin_arm64-opt/bin/external/zlib -iquote external/com_google_absl -iquote bazel-out/darwin_arm64-opt/bin/external/com_google_absl -iquote external/com_github_glog_glog -iquote bazel-out/darwin_arm64-opt/bin/external/com_github_glog_glog -iquote external/com_github_gflags_gflags -iquote bazel-out/darwin_arm64-opt/bin/external/com_github_gflags_gflags -iquote external/google_toolbox_for_mac -iquote bazel-out/darwin_arm64-opt/bin/external/google_toolbox_for_mac -Ibazel-out/darwin_arm64-opt/bin/external/com_github_glog_glog/virtual_includes/default_glog_headers -Ibazel-out/darwin_arm64-opt/bin/external/com_github_gflags_gflags/virtual_includes/gflags -Iexternal/google_toolbox_for_mac -Ibazel-out/darwin_arm64-opt/bin/external/google_toolbox_for_mac -isystem external/com_google_protobuf/src -isystem bazel-out/darwin_arm64-opt/bin/external/com_google_protobuf/src -isystem external/zlib -isystem bazel-out/darwin_arm64-opt/bin/external/zlib -MD -MF bazel-out/darwin_arm64-opt/bin/external/com_google_mediapipe/mediapipe/gpu/objs/MPPMetalHelper/arc/MPPMetalHelper.d '-DGLES_SILENCE_DEPRECATION=1' -DMEDIAPIPE_PROFILER_AVAILABLE -DOS_MACOSX -fno-autolink -isysroot BAZEL_XCODE_SDKROOT -F__BAZEL_XCODE_SDKROOT/System/Library/Frameworks -F__BAZEL_XCODE_DEVELOPER_DIR_/Platforms/MacOSX.platform/Developer/Library/Frameworks -fobjc-arc '-mmacosx-version-min=12.1' -w -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11 -Wno-shorten-64-to-32 '-std=c++17' -Os '-DNDEBUG=1' -Wno-unused-variable -Winit-self -Wno-extra -c external/com_google_mediapipe/mediapipe/gpu/MPPMetalHelper.mm -o bazel-out/darwin_arm64-opt/bin/external/com_google_mediapipe/mediapipe/gpu/_objs/MPPMetalHelper/arc/MPPMetalHelper.o)
Execution platform: @local_execution_config_platform//:platform
Use --sandbox_debug to see verbose messages from the sandbox
external/com_google_mediapipe/mediapipe/gpu/MPPMetalHelper.mm:126:45: error: no member named 'GetCVPixelBufferRef' in 'mediapipe::GpuBuffer'
CVPixelBufferRef pixel_buffer = gpuBuffer.GetCVPixelBufferRef();
~~~~~~~~~ ^
external/com_google_mediapipe/mediapipe/gpu/MPPMetalHelper.mm:173:51: error: no member named 'GetCVPixelBufferRef' in 'mediapipe::GpuBuffer'
NULL, _gpuShared.mtlTextureCache, gpuBuffer.GetCVPixelBufferRef(), NULL,
~~~~~~~~~ ^
2 errors generated.
Error in child process '/usr/bin/xcrun'. 1
Target //mediapipe_api:mediapipe_desktop failed to build
INFO: Elapsed time: 2.905s, Critical Path: 2.22s
INFO: 157 processes: 129 internal, 28 darwin-sandbox.


tinyboard integration

Tinygrad approach stage of mlperf trainings, so here is tinyboard to visualize them.
Tinyboard is a React+Flask tesorboard analogue for tinygrad. It features some chart visualization, function inspector and kernels.
Visualisation adds an API to render time series from tinygrad into tinyboard. Currently this is implemeted for hlb_cifar as example. This is as simple as tinyboard_log_graph("Train stat", "line", [[float(loss_cpu)]], graphinfo={'series_names': ['loss']}).
Function inspector adds a decorator to inspect any python function. It collects tensor operations generated by the function, mlops, lazyops (screenshot).
Tinyboard collects stat about kernels execution (the same as DEBUG>=2). Later this might be extended with some other information collected for each kernel (like uast graph).
If you think that this should not be a part of tinygrad, feel free to close this PR.

Also if tinyboard is fine with you, I also would be happy to move the tinyboard repo to tiny corp if you do not mind.

Changes made in tinygrad/:
------------------------------------------------------------
files                             insertions       deletions
------------------------------------------------------------
tinygrad/helpers.py                        1               0
tinygrad/ops.py                           10               3
tinygrad/tensor.py                         5               2
------------------------------------------------------------
total                                     16               5
------------------------------------------------------------
lines added in the tinygrad folder: 11

I agree something like this needs to exist.
flask I like, but I find react bloated and unreadable.
tinygrad should really have generic APIs to expose this sort of debugging data.

Wow this inspector looks impressive though! I've been looking for something that could tie the graph node back to the code.
I think we need to clean up and make clear what's being exported

You mean you want a kind of logging systems for tinygrad? Something like tinygrad_log(event_name, data)? So we could attach callbacks to these events (like tinyboard attached to some logging API and/or typical stdout printer like now)?
I think it's possible to replace react. @dc-dc-dc has suggested several options will see how they fits.

Going to close. I'm open to something like this, but it has to be more of a generic framework, perhaps using the caching infrastructure.


Use default FirebaseApp instance instead of initialising new one in Firebase plugin

For projects that already use Firebase initialising the Firebase app again can cause errors. Furthermore, it requires you to provide one predefined config which can cause an issue for apps that use different Firebase projects based on various app flavors.
It's better to keep firebaseOptions as an optional parameter and use the default initialised firebase project if no firebaseOptions is provided.

Hi @DebkanchanSamadder thanks for your report, we reviewed your PR.


Xamarin forms. User left rotation does'nt work initialy

Mapsui Version
4.0.0-rc.2
Mapsui Platform
Xamarin Forms
Device
Android
Describe the bug
User cannot rotate map to the left initaly. He must spin to the right otherwise, the map does not rotate even if ViewPort.Rotation indicates a number
Expected behavior
I would like the user to be able to turn in both directions initially

Duplicate #2090

I assume this is fixed with https://github.com/Mapsui/Mapsui/pull/2128. Please reopen if this is not fixed after the next release.


How to get Release Definition Environment's varables?

var connection = new VssConnection(new Uri(VstsCollectioUrl), new VssClientCredentials());
var releaseClient = connection.GetClient<ReleaseHttpClient>();
var defs = releaseClient.GetReleaseDefinitionsAsync("ProjectName", expand: ReleaseDefinitionExpands.Environments).Result;

I can get release release definitions with their environments expanded, but those environments don't have their variables expanded.
One would hope this would work:
var connection = new VssConnection(new Uri(VstsCollectioUrl), new VssClientCredentials());
var releaseClient = connection.GetClient<ReleaseHttpClient>();
var myEnv = releaseClient.GetDefinitionEnvironmentsAsync("MyProject").Result;

However, it throws an exception because the task group ID was not found (an optional param). I am having trouble locating this ID in TFS, and I cannot find any documentation on the GetDefinitionEnvironmentsAsync method.

I couldn't figure out how to do it through the C# API, but it can be done with an http request:
https://www.visualstudio.com/en-us/docs/integrate/api/rm/definitions
GET https://{instance}/{project}/_apis/release/definitions/{definitionId}?api-version={version}

What this documentation doesn't point out is that this is available only with version=3.0-preview
This will return environments expanded and everything in those environments including environmental variables.

You should get a single release definition instead of querying for N definitions and that will give you all the variables. The method name should be something like GetReleaseDefinitionAsync(...)

Thanks for the response. Feel free to close the issue. I did not test what you suggested, but it sounds like it will work. I ended up just parsing the json to get the data I wanted and it was pretty easy to do.

Closing the issue as per customer comment.


Odoo 16 build failed: 503 unavailable

Describe the bug
Odoo fails to build odoo 16 image: "ERROR: failed to solve: ghcr.io/tecnativa/doodba:16.0-onbuild: pulling from host ghcr.io failed with status code [manifests 16.0-onbuild]: 503 Service Unavailable"
To Reproduce
Affected versions:
Steps to reproduce the behavior:

Start a new odoo 16 project
Execute invoke img-build --pull
ERROR: failed to solve: ghcr.io/tecnativa/doodba:16.0-onbuild: pulling from host ghcr.io failed with status code [manifests 16.0-onbuild]: 503 Service Unavailable

Expected behavior
Odoo docker should build normally
Additional context
Docker version 23.0.1, build a5ee5b1
docker-compose version 1.29.2

GitHub is having problems: https://www.githubstatus.com/
Wait until it's resolved.

Oh, didn't know that, I submitted the issue because version 15 works fine.
Thanks!


Mp3tag.Mp3tag version 3.23

[x] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Closes #125246, because same version but with direct urls to installers