-
Notifications
You must be signed in to change notification settings - Fork 47.7k
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
[DevTools Bug]: Error in event handler: Error: Attempting to use a disconnected port object #24417
Comments
Hey! Thanks for reporting. This is a known Chrome issue that is targeted to be fixed in v102. Check out #24093 for a list of potential workarounds. Closing this because it's a duplicate. |
@lunaruan The bug still exists with Chrome 115 and devTool 4.28.0. |
I still have the issue in Chrome Version 120.0.6099.225 (Official Build) (64-bit). |
I still have the issue in Chrome Version120.0.6099.234(正式版本) (arm64) . |
Still exists with Chrome 121 and devTool 5.0.0 |
+1 |
I still have the issue in |
I am still having the same issue, for one moment I thought something was wrong with my app. How to fix this or any update on this? Version 123.0.6312.86 (Official Build) (64-bit) with Angular 16+ |
Unfortunately, I also have this issue. Details:
|
Still occurring:
|
I get this error message on each hot reload: ![]() ![]() browser: DevTools version: |
I am getting this error a lot and have yet to actually nail down what triggers it because it seems to happen so randomly. I'll occasionally leave my devtools open to go for lunch and come back to hundreds of console errors, of which 95% are this error (and the other 5% are my garbage code) Stack for reference Version 125.0.6422.114 (Official Build) (64-bit) |
any ideas for a fix/work around? |
I am facing this issue too. This especially starts arising when i open dev tools and while debugging in source tab |
+1 |
Chrome Version 127.0.6533.89 (Official Build) (64-bit)
|
It appears that many developers are encountering this issue, but there hasn't been any response from the Chrome team. Are they aware of the problem? How can we bring it to their attention? |
Hey fellas, I have disabled React Developer Tools extension and so far no uncaught error during debugging. |
it's still alive :( |
+1 |
2 similar comments
+1 |
+1 |
Experienced when doing hot refresh of the components. Uncaught Error: Attempting to use a disconnected port object Uncaught Error: Attempting to use a disconnected port object |
+1 |
Still experiencing this with latest devtools |
still facing the issue with google chrome 129. |
It will still be called. |
This makes debugging such a huge pain in the ass. God forbid you pause the script to debug for a minute - the whole page practically becomes unusable unless you skip all breakpoints - and adding a "Never pause here" does nothing. This really needs to be addressed. |
@poteto @sebmarkbage I'm sorry to ping but this issue is very old, closed, and an absolute plague. Can someone please comment on the potential to truly resolve this? |
Hey, thanks for flagging this. As I understand, you are getting this error in the console while you are paused in debugger? Can you please share steps how I can reproduce this? Is hitting a breakpoint and waiting until extension port becomes dead enough? For context, it is pretty old issue and probably stale, I've landed some changes to port management logic since this issue was opened. Some stable reproducible example should be enough for me to get this triaged and hopefully fixed soon. |
Thanks very much for your reply @hoxyq!
Yep, that's all it takes. I'm not sure how long you have to wait, but maybe 30-60 seconds. Specifically we're seeing this in Electron (which I'm not sure is relevant) but it's the only environment I'm working in so I can't attest to the behavior elsewhere with certainty. I am way overloaded at the moment, but when time allows I'd be happy to throw together a repro case. Short of that, I assume loading up electron-react-boilerplate would be sufficient since it auto-installs React-Devtools last I checked, though it is quite outdated now. Thanks again for the reply! |
I can confirm I am experiencing the same problem in my vita-react project. Just hitting a breakpoint and wait |
Website or app
https://codesandbox.io/s/blissful-raman-2on7k2
Repro steps
.env.development
file in root.Components
tab but in large application it does not show theComponents
tab. If it shows the tab the error message is sent to dev tools every second.How often does this bug happen?
Every time
DevTools package (automated)
No response
DevTools version (automated)
4.24.3 (3/30/2022)
Error message (automated)
Error in event handler: Error: Attempting to use a disconnected port object
Error call stack (automated)
build/background.js:139 (lOne)
Error component stack (automated)
No response
GitHub query string (automated)
No response
The text was updated successfully, but these errors were encountered: