-
Notifications
You must be signed in to change notification settings - Fork 753
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: workerd inspector process doesn't die #4612
Comments
I'm also experiencing the same issue. Same wrangler version and Mac specs. |
Experiencing the same with MacOS Ventura 13.5.1, Node v20.9.0. It looks as though this may have started in Wrangler v3.20.0 with this PR to add Sentry crash reporting. Commenting out the Haven't managed to figure out exactly what's causing things to hang yet though. The Node docs say the following re calls to
So could be there's some connections from Sentry flushing events in |
My setup: Arch Linux Kernel: 6.6.7-arch1-1, NodeJs: v21.4.0 I have a similar issue but it is not new for me, when I realized the hanging processes, the wrangler version was v3.17. Now I use wrangler v3.21.0 but the issue is still there. I use wrangler for local development. Whenever I stop the My issue may be different since I've been experiencing it with older wrangler versions too. If I collect enough information I may open another issue with the information To automatically kill the zombie process, I use a script similar to the script mentioned here; #3378 (comment) |
@jjonte thanks for filing this bug. We are taking a look and will add updates as they are availaible. |
Possibly related to #4131 |
- Started using bun as package manager - Updated packages (except wrangler cloudflare/workers-sdk#4612) - Changed routes to an object-oriented approach - Improved error handling - Made uuids static for each event to hopefully prevent flickers and errors when subscribing to the calendar - Added new route to access the table with all the students and their schedules - Made better types
I am also experiencing this problem. Downgrading to Node v20.5.0 |
[EDIT: Whoops. I realise that should've read the thread more closely as the cause has already been discovered earlier in this thread by ezg27, and a PR to fix it has since been merged. But I'll leave this here anyway, as it describes the technique I used to independently debug the problem. 🤷] I think I found the cause of the problem + a hacky/temporary workaround for local dev. I just inspected the diff[1] between release tags I found this newly added call[2] of [2] packages/wrangler/src/sentry/index.ts:130 (from diff) If you install We can upgrade to This workers-sdk/packages/wrangler/src/sentry/index.ts Lines 128 to 132 in 35e8a5d
It seems that awaiting this function is not resolving when being called as part workers-sdk/packages/wrangler/src/index.ts Lines 767 to 775 in 35e8a5d
I hope this helps. For now, if you'd like to hack around the problem for local development before this is patched upstream: you may upgrade to |
Which Cloudflare product(s) does this pertain to?
Workers Runtime
What version(s) of the tool(s) are you using?
3.21.0
What version of Node are you using?
18.17.1
What operating system are you using?
MacOS, Sonoma
Describe the Bug
When shutting down a running
wrangler dev
on a basic "hello world" Worker, an extra workerd process hangs around, occupies the port, and eats CPU cycles (1 core @ ~100%). The only solution is to Force Quit the process.Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
When running
wrangler dev
it looks like this:After pressing x in the terminal window this happens:
The text was updated successfully, but these errors were encountered: