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

fatal error: all goroutines are asleep - deadlock! #48623

Closed
mts opened this issue Jul 1, 2023 · 4 comments
Closed

fatal error: all goroutines are asleep - deadlock! #48623

mts opened this issue Jul 1, 2023 · 4 comments
Labels
invalid Issues and PRs that are invalid. wrong repo Issues that should be opened in another repository.

Comments

@mts
Copy link

mts commented Jul 1, 2023

Version

v20.3.1

Platform

Darwin foo.bar 21.6.0 Darwin Kernel Version 21.6.0: Thu Jun 8 23:57:12 PDT 2023; root:xnu-8020.240.18.701.6~1/RELEASE_X86_64 x86_64

Subsystem

No response

What steps will reproduce the bug?

  • Set Node and NPM versions as follows:

    • node -v: v20.3.1
    • npm -v: v9.6.7
    • Check out globally installed NPM packages with npm list -g --depth=0:
        /usr/local/lib
        ├── [email protected]
        ├── [email protected]
        ├── [email protected]
        └── [email protected]
    
  • Clone this repo

  • After having cloned the repo run: npm run clean-up && npm run install-packages && npm run bootstrap-release

  • Following a successful completion run: npm run start-storybook-develop and check if the terminal output is something similar to this and browse Storybook at http://localhost:3003/:
    00 Screenshot 2023-07-01 at 19 38 55

  • Following a successful completion run: npm run build-storybook-develop to build the Storybook static web application

  • Check if the output is similar to the following:

> prebuild-storybook-develop
> NODE_ENV=develop npm run test:generate-output


> test:generate-output
> echo "papillonbits skipping test:generate-output" && exit 0

papillonbits skipping test:generate-output

> build-storybook-develop
> NODE_ENV=develop storybook build -c .storybook/develop -o .storybook-static-develop

@storybook/cli v7.0.24

info => Cleaning outputDir: /.storybook-static-develop
info => Loading presets
info => Building manager..
node:internal/assert:14
    throw new ERR_INTERNAL_ASSERTION(message);
    ^

Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues

    at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
    at new NodeError (node:internal/errors:405:5)
    at assert (node:internal/assert:14:11)
    at internalConnectMultiple (node:net:1106:3)
    at Timeout.internalConnectMultipleTimeout (node:net:1644:3)
    at listOnTimeout (node:internal/timers:575:11)
    at process.processTimers (node:internal/timers:514:7) {
  code: 'ERR_INTERNAL_ASSERTION'
}

Node.js v20.3.1
fatal error: all goroutines are asleep - deadlock!

goroutine 1 [chan receive]:
github.com/evanw/esbuild/internal/helpers.(*ThreadSafeWaitGroup).Wait(...)
	github.com/evanw/esbuild/internal/helpers/waitgroup.go:36
main.runService.func2()
	github.com/evanw/esbuild/cmd/esbuild/service.go:114 +0x59
main.runService(0x1)
	github.com/evanw/esbuild/cmd/esbuild/service.go:160 +0x4ed
main.main()
	github.com/evanw/esbuild/cmd/esbuild/main.go:236 +0xa29

goroutine 18 [chan receive]:
main.runService.func1()
	github.com/evanw/esbuild/cmd/esbuild/service.go:98 +0x4a
created by main.runService
	github.com/evanw/esbuild/cmd/esbuild/service.go:97 +0x1e5

goroutine 19 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc0006c7800})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.runService.func3()
	github.com/evanw/esbuild/cmd/esbuild/service.go:125 +0x39
created by main.runService
	github.com/evanw/esbuild/cmd/esbuild/service.go:122 +0x31c

goroutine 20 [chan receive]:
github.com/evanw/esbuild/internal/bundler.(*scanner).scanAllDependencies(0xc0001db400)
	github.com/evanw/esbuild/internal/bundler/bundler.go:1840 +0x232
github.com/evanw/esbuild/internal/bundler.ScanBundle({_, _, _, _, _, _}, {_, _}, _, {0xc0001fe240, ...}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:1228 +0xb3c
github.com/evanw/esbuild/pkg/api.rebuildImpl({0xc000180120, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, {0x0, 0x1, 0x2, ...}, ...}, ...)
	github.com/evanw/esbuild/pkg/api/api_impl.go:1483 +0x2ca
github.com/evanw/esbuild/pkg/api.(*internalContext).rebuild(_)
	github.com/evanw/esbuild/pkg/api/api_impl.go:1020 +0x27f
github.com/evanw/esbuild/pkg/api.(*internalContext).Rebuild(...)
	github.com/evanw/esbuild/pkg/api/api_impl.go:1081
github.com/evanw/esbuild/pkg/api.Build({0x2, 0x4, 0x0, 0xc0001860c0, 0x2, {0x0, 0x0}, 0x0, 0x0, {0xc00018c000, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api.go:378 +0xbb
main.(*serviceType).handleBuildRequest(0xc000099e60, 0x0?, 0xc000099ef0?)
	github.com/evanw/esbuild/cmd/esbuild/service.go:760 +0xed8
main.(*serviceType).handleIncomingPacket.func2()
	github.com/evanw/esbuild/cmd/esbuild/service.go:235 +0x68
created by main.(*serviceType).handleIncomingPacket
	github.com/evanw/esbuild/cmd/esbuild/service.go:233 +0x1c5

goroutine 68 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc000248000})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc0003b1950, 0x5}, {0xc000037500, 0x62}, {0x1561d91, 0x4}, {0xc000037500, 0x56}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc0003b1950, 0x5}, {0xc000037500, 0x56}, {0x0, 0x0}, {{0xc000037500, 0x62}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 71 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc00020ec60})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc00059a180, 0x16}, {0xc0005845a0, 0x5e}, {0x1561d91, 0x4}, {0xc0005845a0, 0x52}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc00059a180, 0x16}, {0xc0005845a0, 0x52}, {0x0, 0x0}, {{0xc0005845a0, 0x5e}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 25 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc00068f500})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc000028b60, 0x16}, {0xc00012ab60, 0x63}, {0x1561d91, 0x4}, {0xc00012ab60, 0x57}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc000028b60, 0x16}, {0xc00012ab60, 0x57}, {0x0, 0x0}, {{0xc00012ab60, 0x63}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 23 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc0006c61b0})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc00012c2a0, 0x16}, {0xc00033d1a0, 0x5c}, {0x1561d91, 0x4}, {0xc00033d1a0, 0x50}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc00012c2a0, 0x16}, {0xc00033d1a0, 0x50}, {0x0, 0x0}, {{0xc00033d1a0, 0x5c}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 84 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc00028ffb0})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc0006c4238, 0x5}, {0xc0005849c0, 0x5f}, {0x1561d91, 0x4}, {0xc0005849c0, 0x53}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc0006c4238, 0x5}, {0xc0005849c0, 0x53}, {0x0, 0x0}, {{0xc0005849c0, 0x5f}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 100 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc0003fa000})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc000335790, 0x5}, {0xc00033cd20, 0x5f}, {0x1561d91, 0x4}, {0xc00033cd20, 0x53}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc000335790, 0x5}, {0xc00033cd20, 0x53}, {0x0, 0x0}, {{0xc00033cd20, 0x5f}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 85 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc00020f440})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc0006c55d8, 0x5}, {0xc000588700, 0x62}, {0x1561d91, 0x4}, {0xc000588700, 0x56}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc0006c55d8, 0x5}, {0xc000588700, 0x56}, {0x0, 0x0}, {{0xc000588700, 0x62}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 129 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc000230e10})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc00026c068, 0x5}, {0xc00008cd20, 0x5e}, {0x1561d91, 0x4}, {0xc00008cd20, 0x52}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc00026c068, 0x5}, {0xc00008cd20, 0x52}, {0x0, 0x0}, {{0xc00008cd20, 0x5e}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 114 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc000231080})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc0002c8298, 0x5}, {0xc00008d3e0, 0x5e}, {0x1561d91, 0x4}, {0xc00008d3e0, 0x52}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc0002c8298, 0x5}, {0xc00008d3e0, 0x52}, {0x0, 0x0}, {{0xc00008d3e0, 0x5e}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 72 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc0004b7f80})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc000258fd0, 0x5}, {0xc000584120, 0x5f}, {0x1561d91, 0x4}, {0xc000584120, 0x53}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc000258fd0, 0x5}, {0xc000584120, 0x53}, {0x0, 0x0}, {{0xc000584120, 0x5f}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 7 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc000230840})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc00081cd90, 0x5}, {0xc00008c420, 0x5b}, {0x1561d91, 0x4}, {0xc00008c420, 0x4f}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc00081cd90, 0x5}, {0xc00008c420, 0x4f}, {0x0, 0x0}, {{0xc00008c420, 0x5b}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 24 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc0002303f0})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc0004b92c0, 0x5}, {0xc0005841e0, 0x5b}, {0x1561d91, 0x4}, {0xc0005841e0, 0x4f}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc0004b92c0, 0x5}, {0xc0005841e0, 0x4f}, {0x0, 0x0}, {{0xc0005841e0, 0x5b}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 115 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc0006c77d0})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc0002c80a0, 0x5}, {0xc00008d800, 0x5e}, {0x1561d91, 0x4}, {0xc00008d800, 0x52}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc0002c80a0, 0x5}, {0xc00008d800, 0x52}, {0x0, 0x0}, {{0xc00008d800, 0x5e}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

goroutine 73 [chan receive]:
main.(*serviceType).sendRequest(0xc000099e60, {0x14f2f80, 0xc0003f1710})
	github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xfa
main.(*serviceType).convertPlugins.func2.3({{0xc00012cb00, 0x11}, {0xc00033e700, 0x3d}, {0x1561d91, 0x4}, {0xc00033e700, 0x32}, 0x2, {0x0, ...}})
	github.com/evanw/esbuild/cmd/esbuild/service.go:966 +0x785
github.com/evanw/esbuild/pkg/api.(*pluginImpl).onResolve.func1({{0xc00012cb00, 0x11}, {0xc00033e700, 0x32}, {0x0, 0x0}, {{0xc00033e700, 0x3d}, {0x1561d91, 0x4}, ...}, ...})
	github.com/evanw/esbuild/pkg/api/api_impl.go:1948 +0x215
github.com/evanw/esbuild/internal/bundler.RunOnResolvePlugins({_, _, _}, _, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, ...)
	github.com/evanw/esbuild/internal/bundler/bundler.go:801 +0x8d5
github.com/evanw/esbuild/internal/bundler.parseFile({{0x1643cf8, 0xc000194440}, {0xc0001a1030, 0xc00018c498, 0xc00018c4b0, 0xc000194420, 0x4, 0xc000186420}, 0xc0001db800, 0xc000180120, ...})
	github.com/evanw/esbuild/internal/bundler/bundler.go:393 +0x317c
created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile
	github.com/evanw/esbuild/internal/bundler/bundler.go:1368 +0xaaa

How often does it reproduce? Is there a required condition?

This is the very first occurrence. It did work several times as expected with the following output after the exception occurred though:

> prebuild-storybook-develop
> NODE_ENV=develop npm run test:generate-output


> test:generate-output
> echo "papillonbits skipping test:generate-output" && exit 0

papillonbits skipping test:generate-output

> build-storybook-develop
> NODE_ENV=develop storybook build -c .storybook/develop -o .storybook-static-develop

@storybook/cli v7.0.24

info => Cleaning outputDir: /.storybook-static-develop
info => Loading presets
info => Building manager..
info => Manager built (933 ms)
info => Compiling preview..
info => Copying static files: /papillonbits/node_modules/@storybook/manager/static at /papillonbits/.storybook-static-develop/sb-common-assets
info Addon-docs: using MDX2
info => Using implicit CSS loaders
info => Using default Webpack5 setup
info => Preview built (51 s)
WARN DefinePlugin
WARN Conflicting values for 'process.env.NODE_ENV'
WARN asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
WARN This can impact web performance.
WARN Assets:
WARN   894.cf13361f.iframe.bundle.js (1.24 MiB)
WARN   115.1f50de0e.iframe.bundle.js (759 KiB)
WARN   463.9ba0608e.iframe.bundle.js (583 KiB)
WARN   832.b5f41b5d.iframe.bundle.js (1.65 MiB)
WARN   233.704aa940.iframe.bundle.js (1.82 MiB)
WARN entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
WARN Entrypoints:
WARN   main (1.84 MiB)
WARN       runtime~main.1f1b574f.iframe.bundle.js
WARN       233.704aa940.iframe.bundle.js
WARN       main.78b18197.iframe.bundle.js
WARN
info => Output directory: /papillonbits/.storybook-static-develop

What is the expected behavior? Why is that the expected behavior?

npm run build-storybook-develop command should have completed successfully and have build a static web application similar to this locally under the repo root .storybook-static-develop folder.

What do you see instead?

01 Screenshot 2023-07-01 at 19 28 09
02 Screenshot 2023-07-01 at 19 28 32
03 Screenshot 2023-07-01 at 19 29 06
04 Screenshot 2023-07-01 at 19 29 28
05 Screenshot 2023-07-01 at 19 29 41

Additional information

No response

@bnoordhuis
Copy link
Member

Closing - esbuild problem, not a node.js problem. Wrong bug tracker in other words.

@bnoordhuis bnoordhuis closed this as not planned Won't fix, can't repro, duplicate, stale Jul 1, 2023
@bnoordhuis bnoordhuis added invalid Issues and PRs that are invalid. wrong repo Issues that should be opened in another repository. labels Jul 1, 2023
@mts
Copy link
Author

mts commented Jul 1, 2023

@bnoordhuis Thanks for your swift response. Appreciated.

Can the following error message be improved to suggest the right bug tracker?

Error [ERR_INTERNAL_ASSERTION]: This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues

@bnoordhuis
Copy link
Member

I believe that's been fixed already (but not released yet) by #48464.

@mts
Copy link
Author

mts commented Jul 1, 2023

Awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Issues and PRs that are invalid. wrong repo Issues that should be opened in another repository.
Projects
None yet
Development

No branches or pull requests

2 participants