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 recompile in serve and watch mode with rspack 0.7.1 #6742

Closed
pushkargupta9807 opened this issue Jun 5, 2024 · 10 comments
Assignees
Labels
bug Something isn't working need reproduction pending triage The issue/PR is currently untouched.

Comments

@pushkargupta9807
Copy link

System Info

System:
OS: Linux 6.5 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (32) x64 Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz
Memory: 109.50 GB / 125.78 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 20.11.0 - /usr/local/share/nvm/versions/node/v20.11.0/bin/node
Yarn: 1.23.19 - /usr/bin/yarn
npm: 10.2.4 - /usr/local/share/nvm/versions/node/v20.11.0/bin/npm
Watchman: 20240317.093234.0 - /usr/local/bin/watchman
Browsers:
Chrome: 125.0.6422.76

Details

[Bug]: Panic occurred at recompile in serve and watch mode with rspack 0.7.1

Started the app in serve mode using rspack 0.7.1 and while saving a GUI change in one of the files ran into the below panic:

━━━━━━━━━━━━━━━━━━━━━━━━━ (70%) sealing chunk ids Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message: index out of bounds: the len is 279 but the index is 281
Location: /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.6/src/map/core.rs:45

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
● ━━━━━━━━━━━━━━━━━━━━━━━━━ (70%) sealing asset processing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
at
2: _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE
at
3: _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEENS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EEPmi
at
4: _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
at
5: Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit
at
Done in 157.00s. Peak memory usage 30.66MB.

Reproduce link

No response

Reproduce Steps

Please refer to the details section.

Copy link
Contributor

github-actions bot commented Jun 6, 2024

Hello @pushkargupta9807, sorry we can't investigate the problem further without reproduction demo, please provide a repro demo by forking rspack-repro, or provide a minimal GitHub repository by yourself. Issues labeled by need reproduction will be closed if no activities in 14 days.

@pushkargupta9807
Copy link
Author

I think the below error panic message is pretty informative, not sure if needs a repro.

Message: index out of bounds: the len is 279 but the index is 281
Location: /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.6/src/map/core.rs:45

Can we at least have someone triage this bug ? Thanks.

@pushkargupta9807
Copy link
Author

Got another instance of the above Panic with recompile:

Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
Message: index out of bounds: the len is 272 but the index is 280
Location: /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.6/src/map/core.rs:45

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
● ━━━━━━━━━━━━━━━━━━━━━━━━━ (70%) sealing asset processing ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
at
2: _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE
at
3: _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEENS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EEPmi
at
4: _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
at
5: Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit
at

@jerrykingxyz jerrykingxyz removed the pending triage The issue/PR is currently untouched. label Jun 11, 2024
@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Jun 13, 2024

The context is quite limited. We need more information to proceed. Please provide a repro.

@h-a-n-a h-a-n-a added the pending triage The issue/PR is currently untouched. label Jun 13, 2024
@pushkargupta9807
Copy link
Author

@h-a-n-a I am trying for the past few days to create a repro repo to share but i cannot so far. Looking at the file and error message below, does it give any sort of hint ?

Message: index out of bounds: the len is 272 but the index is 280
Location: /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.6/src/map/core.rs:45.

Here is another instance of the same panic,:
image

@h-a-n-a
Copy link
Collaborator

h-a-n-a commented Jun 18, 2024

@h-a-n-a I am trying for the past few days to create a repro repo to share but i cannot so far. Looking at the file and error message below, does it give any sort of hint ?

Message: index out of bounds: the len is 272 but the index is 280 Location: /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.6/src/map/core.rs:45.

Here is another instance of the same panic,: image

It would be more helpful if you could provide the reproduction. Otherwise it's too much hard for us to get into the real issue.

@MuTsunTsai
Copy link

I believe that I encountered essentially the same panic error as @pushkargupta9807.

image

Can't really reproduce it though as it happens only once.

@pushkargupta9807
Copy link
Author

@h-a-n-a @jerrykingxyz
I am trying to create a repro repo , but not getting success there. In the meanwhile many developers in my org are running into this issue and reporting the same. The size of our repo/ app is huge so it is not straightforward to replicate everything in a smaller repro repo.

As such I was wondering, from the error code, file and the line number - can we derive some insights as what can lead to this index out of bounds panic?

@MuTsunTsai do you see a pattern with your dev flow when you run into this panic?

@MuTsunTsai
Copy link

@pushkargupta9807 I have only seen the error once more since my last comment, so I can't really say I noticed any pattern. I can only make a reasonable guess that, since it happens so rarely and unpredictably, chances are that it has something to do with threading, where execution ordering of threads occasionally mess things up. But it's just a guess. Since the stacktrace didn't really print out anything meaningful, it could be hard to get further insights.

Copy link
Contributor

Since the issue was labeled with need reproduction, but no response in 14 days. This issue will be closed. Feel free to comment and reopen it if you have any further questions.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 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 need reproduction pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

4 participants