-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
After upgrading from 0.24.0 to 0.24.1: panic: runtime error: index out of range [222] with length 222 #4011
Comments
I'm having a similar issue with the 0.24.1 version: runtime error: index out of range [7331] with length 7331
goroutine 80 [running]:
github.com/evanw/esbuild/internal/sourcemap.DecodeVLQ({0xc000604489, 0x1ca3, 0x1?}, 0xc00047c200?)
github.com/evanw/esbuild/internal/sourcemap/sourcemap.go:126 +0x110
github.com/evanw/esbuild/internal/sourcemap.SourceMapPieces.Finalize({{0xc000600000, 0x4489, 0x649f}, {0xc000604489, 0x1ca3, 0x2016}, {0xc00060612c, 0x373, 0x373}}, {0xc0002b6000, ...})
github.com/evanw/esbuild/internal/sourcemap/sourcemap.go:320 +0x474
github.com/evanw/esbuild/internal/linker.(*linkerContext).generateChunksInParallel.func1(_, {{0xc000338680, 0x19}, 0xc0004caa80, {{0xc0004034e9, 0x1, 0x1}}, {0xc000012b70, 0x1, 0x1}, ...})
github.com/evanw/esbuild/internal/linker/linker.go:714 +0xa55
created by github.com/evanw/esbuild/internal/linker.(*linkerContext).generateChunksInParallel in goroutine 1
github.com/evanw/esbuild/internal/linker/linker.go:658 +0x878 |
same with [email protected] |
Bumped into this in an Astro project dev server (Astro 5.0.9 and 5.1.0). Spend quite a bit time to find the culprit as the project doesn't have esbuild as a direct dependency 😅 When I install 0.24.0 as a dev dep, the devserver works fine again. |
Same with 0.24.1:
|
We're experiencing the same issue with |
Adding the |
We are also getting this error. I am not getting this error on 0.24.0 |
@evanw I understand but I'm not sure on how to help. I'm building a pretty big TypeScript code base with about 1m loc. |
@evanw Just noticed that it only happens when generating source map ( |
I just published version 0.24.2 with a potential fix based on the line number in the stack trace. You can try updating esbuild again and see if your problem is fixed. A reproduction could still be helpful if it's not fixed. And even if it is fixed, it would be ideal to have test coverage for this so that it doesn't regress again. |
Wow this was quick and it seems (at least for my build) to be fixed. |
I did some testing with smaller projects or examples using esbuild but the problem only seems to happen with "larger" code bases making it very difficult to extract a test case. |
In my case, it is solved with the new version. Thanks! |
After upgrading from 0.24.0 to 0.24.1 without any other change I get the following go runtime error:
Unfortunately I currently see now way to create a reproducible example as it happens (only) when doing a complete build in a very lange codebase. If there is anything else I can do to help please let me know.
The text was updated successfully, but these errors were encountered: