esbuild-wasm not working on safari on second build
softmarshmallow opened this issue · 0 comments
softmarshmallow commented
First build works, after modifying code, on second entry the esbuild program will fail with message - "Error: Go program has already exited"
Tested on..
- Chrome - Works
- Firefox - Works
- Safari - Fails
[Log] ✘ [ERROR] panic: runtime error: index out of range [13] with length 14 (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
debug.Stack (runtime/debug/stack.go:24)
helpers.PrettyPrintedStack (internal/helpers/stack.go:9)
bundler.(*linkerContext).recoverInternalError (internal/bundler/linker.go:5856)
panic (runtime/panic.go:838)
bundler.(*linkerContext).generateChunkJS (internal/bundler/linker.go:4661)
bundler.(*linkerContext).generateChunksInParallel (internal/bundler/linker.go:461)
[Log] panic: runtime error: invalid memory address or nil pointer dereference (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
[Log] [signal 0xb code=0x656eb0 addr=0x1ce904fe pc=0x0] (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
[Log] (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
[Log] goroutine 324 [running]: (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
[Log] github.com/evanw/esbuild/internal/bundler.(*linkerContext).generateChunksInParallel.func1(0x0, {{0x467220, 0x19}, 0x14bffb0, {{0x5d8268, 0x1, 0x1}}, {0x0, 0x0, 0x0}, ...}) (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
[Log] github.com/evanw/esbuild/internal/bundler/linker.go:596 +0x158 (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
[Log] created by github.com/evanw/esbuild/internal/bundler.(*linkerContext).generateChunksInParallel (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
[Log] github.com/evanw/esbuild/internal/bundler/linker.go:500 +0xaf (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 563)
[Warning] exit code: – 2 (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 180)
[Error] Error: Go program has already exited (0e61cf19-37b4-4a61-9c3a-a1314cb6a462, line 534)