-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
Comments
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 |
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 Can we at least have someone triage this bug ? Thanks. |
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 Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering. |
The context is quite limited. We need more information to proceed. Please provide a repro. |
@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 |
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. |
I believe that I encountered essentially the same panic error as @pushkargupta9807. Can't really reproduce it though as it happens only once. |
@h-a-n-a @jerrykingxyz 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? |
@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. |
Since the issue was labeled with |
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.
The text was updated successfully, but these errors were encountered: