You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panicked at 'The global thread pool has not been initialized.: ThreadPoolBuildError { kind: IOError(Error { kind: Unsupported, message: "operation not supported on this platform" }) }', /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-core-1.9.2/src/registry.rs:170:10
Stack:
Error
at module.exports.__wbg_new_693216e109162396 (/Users/nlawson/workspace/repro-swc-wasm/node_modules/@swc/wasm/wasm.js:243:15)
at console_error_panic_hook::hook::hb383505b44a300d4 (wasm://wasm/0514c836:wasm-function[4804]:0xd14ca1)
at core::ops::function::Fn::call::ha056b037f91ead27 (wasm://wasm/0514c836:wasm-function[13634]:0xfdea81)
at std::panicking::rust_panic_with_hook::h4cda35b38c02aa07 (wasm://wasm/0514c836:wasm-function[10826]:0xfa1b6f)
at std::panicking::begin_panic_handler::{{closure}}::h49403edc6ccf77a1 (wasm://wasm/0514c836:wasm-function[11372]:0xfba332)
at std::sys_common::backtrace::__rust_end_short_backtrace::heced27ce30abe76d (wasm://wasm/0514c836:wasm-function[13394]:0xfddd62)
at rust_begin_unwind (wasm://wasm/0514c836:wasm-function[13026]:0xfdbb44)
at core::panicking::panic_fmt::h9c0d7b6c636b07b0 (wasm://wasm/0514c836:wasm-function[12447]:0xfd6291)
at core::result::unwrap_failed::h4573fd463ec3c95b (wasm://wasm/0514c836:wasm-function[11701]:0xfc582d)
at rayon_core::registry::global_registry::hd1f64ffc964182d0 (wasm://wasm/0514c836:wasm-function[10555]:0xf93389)
wasm://wasm/0514c836:1
RuntimeError: unreachable
at rust_panic (wasm://wasm/0514c836:wasm-function[13679]:0xfdec11)
at std::panicking::rust_panic_with_hook::h4cda35b38c02aa07 (wasm://wasm/0514c836:wasm-function[10826]:0xfa1b98)
at std::panicking::begin_panic_handler::{{closure}}::h49403edc6ccf77a1 (wasm://wasm/0514c836:wasm-function[11372]:0xfba332)
at std::sys_common::backtrace::__rust_end_short_backtrace::heced27ce30abe76d (wasm://wasm/0514c836:wasm-function[13394]:0xfddd62)
at rust_begin_unwind (wasm://wasm/0514c836:wasm-function[13026]:0xfdbb44)
at core::panicking::panic_fmt::h9c0d7b6c636b07b0 (wasm://wasm/0514c836:wasm-function[12447]:0xfd6291)
at core::result::unwrap_failed::h4573fd463ec3c95b (wasm://wasm/0514c836:wasm-function[11701]:0xfc582d)
at rayon_core::registry::global_registry::hd1f64ffc964182d0 (wasm://wasm/0514c836:wasm-function[10555]:0xf93389)
at <swc_ecma_minifier::pass::precompress::PrecompressOptimizer as swc_ecma_visit::VisitMut>::visit_mut_stmts::he60f1380c98d37bd (wasm://wasm/0514c836:wasm-function[1260]:0x884b33)
at swc_ecma_visit::visit_mut_function::h2d83ee43fa47519d (wasm://wasm/0514c836:wasm-function[7846]:0xeba46f)
Node.js v18.6.0
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
Here is a minimal repro. The repro is using
minifySync
to minify the latestjquery.js
:Input code
Config
None
Playground link
No response
Expected behavior
No error, the code is minified.
Actual behavior
The code exits with error code 1 and this output:
Version
1.2.218
Additional context
Apparently (image-rs/image#1496 (comment)) the error is caused by the
rayon
Rust crate.Also my environment (macOS, Intel, 2020 13-inch MacBook Pro) may be relevant here:
The text was updated successfully, but these errors were encountered: