web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API πŸ¦€οΈ
https://rspack.dev
MIT License
10.12k stars 575 forks source link

[Bug]:using docusaurus edit mdx or md file, process crash. #8480

Closed zycgit closed 4 days ago

zycgit commented 5 days ago

System Info

System: OS: macOS 14.5 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 30.03 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node npm: 9.7.1 - ~/.nvm/versions/node/v14.21.3/bin/npm Browsers: Chrome: 130.0.6723.119 Safari: 17.5

Details

package.json

"dependencies": { "@docusaurus/core": "^3.6.2", "@docusaurus/faster": "^3.6.2", "@docusaurus/plugin-content-docs": "^3.6.2", "@docusaurus/preset-classic": "^3.6.2", "@docusaurus/theme-live-codeblock": "^3.6.2", "@easyops-cn/docusaurus-search-local": "^0.40.1", "@mdx-js/react": "^3.0.0", "clsx": "^1.2.1", "prism-react-renderer": "^2.3.1", "prismjs": "^1.25.0", "punycode": "^2.3.1", "react": "^18.2.0", "react-dom": "^18.2.0" }, "devDependencies": { "@docusaurus/module-type-aliases": "^3.6.2", "@docusaurus/types": "^3.6.2" },

when using docusaurus edit mdx or md file reprot this info and Process crash.

Reproduce link

No response

Reproduce Steps

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues Message: Chunk(ChunkUkey(Ukey(240), PhantomData)) not found in ChunkByUkey Location: crates/rspack_core/src/lib.rs:328

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1: _napi_register_module_v1 at 2: _napi_register_module_v1 at 3: _napi_register_module_v1 at 4: _napi_register_module_v1 at 5: _wasmer_vm_f64_nearest at 6: _napi_register_module_v1 at 7: _napi_register_module_v1 at 8: _napi_register_module_v1 at 9: _napi_register_module_v1 at 10: _napi_register_module_v1 at 11: __pthread_start at zsh: abort npm run start

lebalz commented 5 days ago

Same here, running on WSL 2, docusaurus@3.6.2 with @rspack/core@1.1.2

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message:  Chunk(ChunkUkey(Ukey(197), PhantomData<rspack_core::chunk::Chunk>)) not found in ChunkByUkey
Location: crates/rspack_core/src/lib.rs:328

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
<empty backtrace>
chenjiahan commented 5 days ago

Hi, can you provide an reproduction?

darrenjon commented 5 days ago

Same problem while editing .mdx or .md file. docusaurus@3.6.2 with experimental_faster

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues Message: Chunk(ChunkUkey(Ukey(118), PhantomData)) not found in ChunkByUkey Location: crates/rspack_core/src/lib.rs:328

Backtrace omitted.

Run with RUST_BACKTRACE=1 environment variable to display it. Run with RUST_BACKTRACE=full to include source snippets.  ELIFECYCLE  Command failed. Abort trap: 6