Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Panic occurred at runtime - should receiver success: RecvError(()) #8179

Open
jantimon opened this issue Oct 21, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@jantimon
Copy link

jantimon commented Oct 21, 2024

System Info

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 515.48 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
Binaries:
    Node: 20.11.1 - ~/.nvs/node/20.11.1/arm64/bin/node
    Yarn: 1.22.22 - ~/.nvs/node/20.11.1/arm64/bin/yarn
    npm: 10.2.4 - ~/.nvs/node/20.11.1/arm64/bin/npm
    pnpm: 9.6.0 - ~/Library/pnpm/pnpm
    bun: 1.1.1 - ~/.bun/bin/bun
    Watchman: 2024.07.08.00 - /opt/homebrew/bin/watchman
 Browsers:
    Brave Browser: 129.1.70.126
    Chrome: 130.0.6723.58
    Chrome Canary: 132.0.6789.0
    Firefox Nightly: 129.0a1
    Safari: 17.6
    Safari Technology Preview: 18.0
npmPackages:
    @rspack/cli: ^1.0.13 => 1.0.13 

Details

I tried to run an this.loadModule webpack issue with rspack for comparison but saw only:

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message:  should receiver success: RecvError(())
Location: ./crates/rspack_core/src/compiler/module_executor/mod.rs:210

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 1: _napi_register_module_v1
    at <unknown source file>
 2: _napi_register_module_v1
    at <unknown source file>
 3: _napi_register_module_v1
    at <unknown source file>
 4: _napi_register_module_v1
    at <unknown source file>
 5: _wasmer_vm_f64_nearest
    at <unknown source file>
 6: _wasmer_vm_f64_nearest
    at <unknown source file>
 7: _napi_register_module_v1
    at <unknown source file>
 8: _napi_register_module_v1
    at <unknown source file>
 9: _napi_register_module_v1
    at <unknown source file>
10: _napi_register_module_v1
    at <unknown source file>
11: _napi_register_module_v1
    at <unknown source file>
12: _napi_register_module_v1
    at <unknown source file>
13: _napi_register_module_v1
    at <unknown source file>
14: _napi_register_module_v1
    at <unknown source file>
15: _napi_register_module_v1
    at <unknown source file>
16: __pthread_joiner_wake
    at <unknown source file>
[1]    33635 abort      RUST_BACKTRACE=full npx rspack build

Reproduce link

No response

Reproduce Steps

Repro.zip

loader:

module.exports = function (source) {
    const callback = this.async();
    this.importModule('./banner.js', {
        layer: "banner-loader"
    }, function (err, result) {

        if (err) return callback(err);

        console.log({
            result
        })

        callback(null, (result?.banner || "") + source);
    });

}

Unpack the reproduction

Run:

  • npm install
  • RUST_BACKTRACE=full npx rspack build
@jantimon jantimon added bug Something isn't working pending triage The issue/PR is currently untouched. labels Oct 21, 2024
@jerrykingxyz jerrykingxyz self-assigned this Oct 22, 2024
@jerrykingxyz jerrykingxyz removed the pending triage The issue/PR is currently untouched. label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants