web-infra-dev / rspress

🦀💨 A fast Rspack-based static site generator.
https://rspress.dev
MIT License
1.19k stars 108 forks source link

[Bug]: Error "called `Option::unwrap()` on a `None` value" #1183

Closed markmssd closed 1 week ago

markmssd commented 1 week ago

Version

RSPack v0.7.4-canary-8ea6579-20240613100825

Details

Unfortunately I couldn't reproduce this issue in rspack-repro, but I'm hoping the stacktrace would be enough in this case 🤞🏼

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message:  called `Option::unwrap()` on a `None` value
Location: /Users/webinfra/ec2-macos-ci-0/_work/rspack/rspack/crates/rspack_napi/src/external_takable.rs:45

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 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: _napi_register_module_v1
    at <unknown source file>
 6: _wasmer_vm_imported_memory32_atomic_notify
    at <unknown source file>
 7: _wasmer_vm_imported_memory32_atomic_notify
    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: _napi_register_module_v1
    at <unknown source file>
17: _napi_register_module_v1
    at <unknown source file>
18: _napi_register_module_v1
    at <unknown source file>
19: _napi_register_module_v1
    at <unknown source file>
20: _napi_register_module_v1
    at <unknown source file>
21: _napi_register_module_v1
    at <unknown source file>
22: __pthread_joiner_wake
    at <unknown source file>

This is using v0.7.4-canary-8ea6579-20240613100825. (with 0.7.3, ~there is no error, but the build hangs. I will try to see if that is somehow related and update this issue~ the same error happens intermittently too, otherwise it just hangs).

Reproduce link

-

Reproduce Steps

-

Timeless0911 commented 1 week ago

May be you should create an issue in rspack repo to better track it?

markmssd commented 1 week ago

Ha! Sorry didn't notice I was in the wrong repo :P Closing in favour of https://github.com/web-infra-dev/rspack/issues/6802