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. with v 0.5.6 on Windows #5897

Closed
pushkargupta9807 opened this issue Mar 8, 2024 · 5 comments
Closed

[Bug]: Panic occurred at runtime. with v 0.5.6 on Windows #5897

pushkargupta9807 opened this issue Mar 8, 2024 · 5 comments
Assignees
Labels
awaiting more feedback bug Something isn't working

Comments

@pushkargupta9807
Copy link

pushkargupta9807 commented Mar 8, 2024

System Info

System:
OS: Windows 10 10.0.22631
CPU: (40) x64 Intel(R) Xeon(R) Silver 4210R CPU @ 2.40GHz
Memory: 43.98 GB / 63.66 GB
Binaries:
Node: 20.11.1 - ~.nvm\versions\node\v20.11.1\bin\node.EXE
Yarn: 1.23.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 10.2.4 - ~.nvm\versions\node\v20.11.1\bin\npm.CMD
Browsers:
Edge: Chromium (121.0.2277.128)
Internet Explorer: 11.0.22621.1
npmPackages:
@rspack/cli: 0.5.6 => 0.5.6
@rspack/core: 0.5.6 => 0.5.6

Details

It seems that the previously filed bug is not fixed with the latest oxc_resolver (#5592)
I am running into that issue on windows machine as below:

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message: internal error: entered unreachable code: Path "D:\source\services-io-sharepoint-share" Subpath "/inde
x.ts"
Location: C:\Users\ContainerAdministrator.cargo\registry\src\index.crates.io-6f17d22bba15001f\oxc_resolver-1.5.4\src\path.rs:74

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
● ━━━━━━━━━━━━━━━━━━━━━━━━━ (63%) building builtin:swc-loader??ruleSet[1].rules[13].use[0]!D:\source\reponame\packages\services\io\services-some-service
2: napi_register_module_v1
at
3: napi_register_module_v1
at
4: napi_register_module_v1
at
5: napi_register_module_v1
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: napi_register_module_v1
at
12: napi_register_module_v1
at
13: napi_register_module_v1
at
14: napi_register_module_v1
at
15: napi_register_module_v1
at
16: napi_register_module_v1
at
17: napi_register_module_v1
at
18: napi_register_module_v1
at
19: napi_register_module_v1
at
20: napi_register_module_v1
● ━━━━━━━━━━━━━━━━━━━━━━━━━ (63%) building D:\source\node_modules@metaos\hub-sdk\dist\Hosts\use-create-app-host-sdk.js
at
21: napi_register_module_v1
at
22: napi_register_module_v1
at
23: napi_register_module_v1
at
24: napi_register_module_v1
at
25: BaseThreadInitThunk
at
26: RtlUserThreadStart
at
Done in 57.89s. Peak memory usage 30.40MB.

Reproduce link

No response

Reproduce Steps

Try starting an app (serve) with rspack v0.5.6

@pushkargupta9807 pushkargupta9807 added bug Something isn't working pending triage The issue/PR is currently untouched. labels Mar 8, 2024
@pushkargupta9807
Copy link
Author

@Boshen @hardfist FYI

@Boshen Boshen self-assigned this Mar 8, 2024
@Boshen
Copy link
Contributor

Boshen commented Mar 8, 2024

@pushkargupta9807 Can you post your rspack config (mainly the resolve part), there's probably something not handled with path aliases, it would be great if you can show me their values.

entered unreachable code: Path "D:\source\services-io-sharepoint-share" Subpath "/inde
x.ts"

I'm interested in where "/index.ts" is coming from.

@xc2 xc2 added awaiting more feedback and removed pending triage The issue/PR is currently untouched. labels Mar 13, 2024
@Tenodec
Copy link

Tenodec commented Mar 17, 2024

Please check if the project path contains Chinese characters,i got right work by change to all english path

@Boshen
Copy link
Contributor

Boshen commented Mar 29, 2024

Closing due to lack of reproduction.

@Boshen Boshen closed this as not planned Won't fix, can't repro, duplicate, stale Mar 29, 2024
@kbzowski
Copy link

kbzowski commented Jul 9, 2024

I got the same error with yarn v4 and rsbuild v1.0.0-alpha.6, setting nodeLinker: node-modules in .yarnrc.yml solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting more feedback bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants