fatal error: too many writes on closed pipe
Describe the bug
I continue to receive the following error on startup, 'fatal error: too many writes on closed pipe'. I can't repeat the error b/c it doesn't happen all the time.
The remainder of the error is below.
In this instance, I refreshed the browser (Chrome Version 137.0.7151.120 (Official Build) (x86_64)), and it went away.
goroutine 6 [running]: runtime.throw({0xa2669, 0x1e}) runtime/panic.go:1047 +0x3 fp=0x83aed8 sp=0x83aeb0 pc=0x12250003 os.sigpipe() runtime/os_js.go:144 +0x2 fp=0x83aef0 sp=0x83aed8 pc=0x13b70002 os.epipecheck(...) os/file_unix.go:224 os.(*File).Write(0x80c020, {0x86d500, 0x21, 0x40}) os/file.go:183 +0x2d fp=0x83af78 sp=0x83aef0 pc=0x160f002d main.runService.func1() github.com/evanw/esbuild/cmd/esbuild/service.go:99 +0x7 fp=0x83afe0 sp=0x83af78 pc=0x1ff30007 runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0x83afe8 sp=0x83afe0 pc=0x14070001 created by main.runService github.com/evanw/esbuild/cmd/esbuild/service.go:97 +0x1e
goroutine 1 [chan receive]: runtime.gopark(0xbbfa8, 0x834178, 0xe, 0x17, 0x2) runtime/proc.go:381 +0x28 fp=0x897bd8 sp=0x897bb0 pc=0x124c0028 runtime.chanrecv(0x834120, 0x0, 0x1) runtime/chan.go:583 +0x7f fp=0x897c60 sp=0x897bd8 pc=0x106d007f runtime.chanrecv1(0x834120, 0x0) runtime/chan.go:442 +0x2 fp=0x897c88 sp=0x897c60 pc=0x106b0002 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 +0x8 fp=0x897ca8 sp=0x897c88 pc=0x1ff20008 main.runService(0x1) github.com/evanw/esbuild/cmd/esbuild/service.go:160 +0x5c fp=0x897df0 sp=0x897ca8 pc=0x1ff0005c main.main() github.com/evanw/esbuild/cmd/esbuild/main.go:241 +0xa0 fp=0x897f88 sp=0x897df0 pc=0x1fe900a0 runtime.main() runtime/proc.go:250 +0x32 fp=0x897fe0 sp=0x897f88 pc=0x12460032 runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0x897fe8 sp=0x897fe0 pc=0x14070001
goroutine 2 [force gc (idle)]: runtime.gopark(0xbc140, 0x3ef840, 0x11, 0x14, 0x1) runtime/proc.go:381 +0x28 fp=0x828fb8 sp=0x828f90 pc=0x124c0028 runtime.goparkunlock(...) runtime/proc.go:387 runtime.forcegchelper() runtime/proc.go:305 +0x1f fp=0x828fe0 sp=0x828fb8 pc=0x1249001f runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0x828fe8 sp=0x828fe0 pc=0x14070001 created by runtime.init.5 runtime/proc.go:293 +0x2
goroutine 3 [GC sweep wait]: runtime.gopark(0xbc140, 0x3efbc0, 0xc, 0x14, 0x1) runtime/proc.go:381 +0x28 fp=0x829798 sp=0x829770 pc=0x124c0028 runtime.goparkunlock(...) runtime/proc.go:387 runtime.bgsweep(0x82e000) runtime/mgcsweep.go:278 +0xf fp=0x8297d0 sp=0x829798 pc=0x1179000f runtime.gcenable.func1() runtime/mgc.go:178 +0x2 fp=0x8297e0 sp=0x8297d0 pc=0x110d0002 runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0x8297e8 sp=0x8297e0 pc=0x14070001 created by runtime.gcenable runtime/mgc.go:178 +0x8
goroutine 4 [GC scavenge wait]: runtime.gopark(0xbc140, 0x3efe00, 0xd, 0x14, 0x2) runtime/proc.go:381 +0x28 fp=0x829f80 sp=0x829f58 pc=0x124c0028 runtime.goparkunlock(...) runtime/proc.go:387 runtime.(*scavengerState).park(0x3efe00) runtime/mgcscavenge.go:400 +0xd fp=0x829fa8 sp=0x829f80 pc=0x1160000d runtime.bgscavenge(0x82e000) runtime/mgcscavenge.go:628 +0x4 fp=0x829fd0 sp=0x829fa8 pc=0x11650004 runtime.gcenable.func2() runtime/mgc.go:179 +0x2 fp=0x829fe0 sp=0x829fd0 pc=0x110c0002 runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0x829fe8 sp=0x829fe0 pc=0x14070001 created by runtime.gcenable runtime/mgc.go:179 +0xe
goroutine 5 [finalizer wait]: runtime.gopark(0xbbfe0, 0x40cab0, 0x10, 0x14, 0x1) runtime/proc.go:381 +0x28 fp=0x828738 sp=0x828710 pc=0x124c0028 runtime.runfinq() runtime/mfinal.go:193 +0x1f fp=0x8287e0 sp=0x828738 pc=0x1104001f runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0x8287e8 sp=0x8287e0 pc=0x14070001 created by runtime.createfing runtime/mfinal.go:163 +0xd
goroutine 7 [waiting]: runtime.gopark(0x0, 0x0, 0x0, 0x0, 0x1) runtime/proc.go:381 +0x28 fp=0x82af90 sp=0x82af68 pc=0x124c0028 runtime.handleEvent() runtime/lock_js.go:257 +0x1b fp=0x82afe0 sp=0x82af90 pc=0x10a3001b runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0x82afe8 sp=0x82afe0 pc=0x14070001 created by runtime.beforeIdle runtime/lock_js.go:207 +0x1a
goroutine 8 [chan receive]: runtime.gopark(0xbbfa8, 0x835a38, 0xe, 0x17, 0x2) runtime/proc.go:381 +0x28 fp=0x83bea0 sp=0x83be78 pc=0x124c0028 runtime.chanrecv(0x8359e0, 0x83bf88, 0x1) runtime/chan.go:583 +0x7f fp=0x83bf28 sp=0x83bea0 pc=0x106d007f runtime.chanrecv1(0x8359e0, 0x83bf88) runtime/chan.go:442 +0x2 fp=0x83bf50 sp=0x83bf28 pc=0x106b0002 main.(*serviceType).sendRequest(0x8c00c0, {0x48840, 0xac31a0}) github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xb fp=0x83bfa0 sp=0x83bf50 pc=0x1ff5000b main.runService.func3() github.com/evanw/esbuild/cmd/esbuild/service.go:125 +0x3 fp=0x83bfe0 sp=0x83bfa0 pc=0x1ff10003 runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0x83bfe8 sp=0x83bfe0 pc=0x14070001 created by main.runService github.com/evanw/esbuild/cmd/esbuild/service.go:122 +0x41
goroutine 33 [chan receive]: runtime.gopark(0xbbfa8, 0x835078, 0xe, 0x17, 0x2) runtime/proc.go:381 +0x28 fp=0xa583e8 sp=0xa583c0 pc=0x124c0028 runtime.chanrecv(0x835020, 0xa58878, 0x1) runtime/chan.go:583 +0x7f fp=0xa58470 sp=0xa583e8 pc=0x106d007f runtime.chanrecv1(0x835020, 0xa58878) runtime/chan.go:442 +0x2 fp=0xa58498 sp=0xa58470 pc=0x106b0002 github.com/evanw/esbuild/internal/bundler.(*scanner).scanAllDependencies(0x9d7200) github.com/evanw/esbuild/internal/bundler/bundler.go:2024 +0x24 fp=0xa589b0 sp=0xa58498 pc=0x1e690024 github.com/evanw/esbuild/internal/bundler.ScanBundle(0x0, {0xa33e30, 0xa24348, 0xa24360, 0x9ecae0, 0x6, 0x9f1080}, {0x13a3a8, 0x9ecc80}, 0x9dde00, ...) github.com/evanw/esbuild/internal/bundler/bundler.go:1371 +0x84 fp=0xa59078 sp=0xa589b0 pc=0x1e540084 github.com/evanw/esbuild/pkg/api.rebuildImpl({0x9dde00, {0xa24258, 0x1, 0x1}, {0x0, 0x0, 0x0}, {0x0, 0x1, 0x2, ...}, ...}, ...) github.com/evanw/esbuild/pkg/api/api_impl.go:1458 +0x11 fp=0xa5a1e0 sp=0xa59078 pc=0x1f950011 github.com/evanw/esbuild/pkg/api.(*internalContext).rebuild(0xa2d400) github.com/evanw/esbuild/pkg/api/api_impl.go:977 +0xe fp=0xa5b6a0 sp=0xa5a1e0 pc=0x1f89000e github.com/evanw/esbuild/pkg/api.(*internalContext).Rebuild(0xa2d400) github.com/evanw/esbuild/pkg/api/api_impl.go:1038 +0x2 fp=0xa5beb0 sp=0xa5b6a0 pc=0x1f8b0002 main.(*serviceType).handleIncomingPacket.func5() github.com/evanw/esbuild/cmd/esbuild/service.go:293 +0x8 fp=0xa5bfe0 sp=0xa5beb0 pc=0x200b0008 runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0xa5bfe8 sp=0xa5bfe0 pc=0x14070001 created by main.(*serviceType).handleIncomingPacket github.com/evanw/esbuild/cmd/esbuild/service.go:290 +0x14f
goroutine 38 [chan receive]: runtime.gopark(0xbbfa8, 0x835978, 0xe, 0x17, 0x2) runtime/proc.go:381 +0x28 fp=0xadc020 sp=0xadbff8 pc=0x124c0028 runtime.chanrecv(0x835920, 0xadc108, 0x1) runtime/chan.go:583 +0x7f fp=0xadc0a8 sp=0xadc020 pc=0x106d007f runtime.chanrecv1(0x835920, 0xadc108) runtime/chan.go:442 +0x2 fp=0xadc0d0 sp=0xadc0a8 pc=0x106b0002 main.(*serviceType).sendRequest(0x8c00c0, {0x48840, 0xac3020}) github.com/evanw/esbuild/cmd/esbuild/service.go:192 +0xb fp=0xadc120 sp=0xadc0d0 pc=0x1ff5000b main.(*serviceType).convertPlugins.func2.4({{0xa6c990, 0x2e}, {0xad6020, 0x4}, {0x0, 0x0}, {0x0, 0x0}, 0x0}) github.com/evanw/esbuild/cmd/esbuild/service.go:1076 +0x64 fp=0xadc418 sp=0xadc120 pc=0x20200064 github.com/evanw/esbuild/pkg/api.(*pluginImpl).onLoad.func1({{0x0, 0x0}, {{0xa6c990, 0x2e}, {0xad6020, 0x4}, {0x0, 0x0}, {{0x0, 0x0}}, ...}}) github.com/evanw/esbuild/pkg/api/api_impl.go:1944 +0x5 fp=0xadc708 sp=0xadc418 pc=0x1fa20005 github.com/evanw/esbuild/internal/bundler.runOnLoadPlugins({0x8746e0, 0x2, 0x2}, {0x13a3a8, 0x9ecc80}, 0x9dde00, {0xa33e30, 0xa24348, 0xa24360, 0x9ecae0, ...}, ...) github.com/evanw/esbuild/internal/bundler/bundler.go:1054 +0x5d fp=0xadcbd0 sp=0xadc708 pc=0x1e50005d github.com/evanw/esbuild/internal/bundler.parseFile({{0x13a3a8, 0x9ecc80}, {0xa33e30, 0xa24348, 0xa24360, 0x9ecae0, 0x6, 0x9f1080}, 0x9d6d80, 0x9dde00, ...}) github.com/evanw/esbuild/internal/bundler/bundler.go:144 +0x9 fp=0xadfb38 sp=0xadcbd0 pc=0x1e480009 github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile.func1() github.com/evanw/esbuild/internal/bundler/bundler.go:1494 +0x2 fp=0xadffe0 sp=0xadfb38 pc=0x1e5a0002 runtime.goexit() runtime/asm_wasm.s:399 +0x1 fp=0xadffe8 sp=0xadffe0 pc=0x14070001 created by github.com/evanw/esbuild/internal/bundler.(*scanner).maybeParseFile github.com/evanw/esbuild/internal/bundler/bundler.go:1494 +0x97
Link to the blitz that caused the error
https://stackblitz.com/edit/vitejs-vite-oqkkffod?file=README.md
Steps to reproduce
- Click on project in dashboard
- Wait for boot up and installation of dependencies
- Expected: Project loads and preview is available
- Actual: Error message displays
Expected behavior
- Click on project in dashboard
- Wait for boot up and installation of dependencies
- Expected: Project loads and preview is available
Parity with Local
- [x] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
No response
Platform
Browser name = Chrome
Version 137.0.7151.120 (Official Build) (x86_64)
Additional context
package.json
{ "name": "vite-react-typescript-starter", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview" }, "dependencies": { "@headlessui/react": "^1.7.17", "@heroicons/react": "^2.0.18", "@supabase/supabase-js": "^2.39.0", "clsx": "^2.1.1", "react": "^18.2.0", "react-day-picker": "^8.10.0", "react-dom": "^18.2.0", "react-router-dom": "^6.20.1", "tailwindcss": "^3.3.5", "zustand": "^4.4.7" }, "devDependencies": { "@eslint/js": "^9.27.0", "@types/node": "^22.15.30", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.0", "@vitejs/plugin-react": "^4.3.1", "autoprefixer": "^10.4.16", "eslint": "^9.27.0", "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.20", "globals": "^16.2.0", "postcss": "^8.4.32", "typescript": "~5.8.3", "typescript-eslint": "^8.32.1", "vite": "^5.4.10" } }
We noticed that the project you shared is not public. Please change the visibility of the project to either secret or public.
Project has been updated to secret.
On Jun 24, 2025 at 4:14 PM, "github-actions[bot]" @.***> wrote: github-actions[bot] left a comment (stackblitz/webcontainer-core#1915)
We noticed that the project you shared is not public. Please change the visibility of the project to either secret or public. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>