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

ERR_INTERNAL_ASSERTION in internalConnectMultiple #48763

Closed
hp8wvvvgnj6asjm7 opened this issue Jul 14, 2023 · 8 comments · Fixed by #51045
Closed

ERR_INTERNAL_ASSERTION in internalConnectMultiple #48763

hp8wvvvgnj6asjm7 opened this issue Jul 14, 2023 · 8 comments · Fixed by #51045
Labels
confirmed-bug Issues with confirmed bugs. net Issues and PRs related to the net subsystem.

Comments

@hp8wvvvgnj6asjm7
Copy link

hp8wvvvgnj6asjm7 commented Jul 14, 2023

Version

v20.4.0

Platform

Microsoft Windows NT 10.0.19044.0 x64

Subsystem

No response

What steps will reproduce the bug?

I'm running a worker thread(s) which runs an openWebsocket and passes messages to the main thread via postmessage.
I don't get any messages and after a few minutes, I get this error:

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

No response

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

No response

What do you see instead?

Error: 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 new NodeError (node:internal/errors:405:5)
    at assert (node:internal/assert:14:11)
    at internalConnectMultiple (node:net:1115:3)
    at Timeout.internalConnectMultipleTimeout (node:net:1683:3)
    at listOnTimeout (node:internal/timers:575:11)
    at processTimers (node:internal/timers:514:7) {
  code: 'ERR_INTERNAL_ASSERTION'
}
Trace:
    at error (C:\Users\_\Desktop\sys\core.ts:3963:25)
    at Worker.<anonymous> (C:\Users\_\Desktop\sys\core.ts:3894:95)
    at Worker.emit (node:events:512:28)
    at Worker.[kOnErrorMessage] (node:internal/worker:326:10)
    at Worker.[kOnMessage] (node:internal/worker:337:37)
    at MessagePort.<anonymous> (node:internal/worker:232:57)
    at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:778:20)
    at MessagePort.exports.emitMessage (node:internal/per_context/messageport:23:28)

Additional information

No response

@debadree25
Copy link
Member

Could you provide any sample code to reproduce? preferably without any dependencies!

@tniessen
Copy link
Member

Possibly related to #47644? It might not be a duplicate because #47644 was allegedly fixed (more than once). cc @ShogunPanda

@ShogunPanda
Copy link
Contributor

I can't really do anything without at least a repro code. Will standby this.

@tniessen
Copy link
Member

According to @Rand0mF's #47644 (comment), this also happens without using worker threads or web sockets.

@ShogunPanda
Copy link
Contributor

ShogunPanda commented Sep 11, 2023

If the bug is related to my changes (which most likely is), it's unrelated to either worker threads or websocket as we're talking about a bug in the connection handling. But I need the exact scenario to reproduce it, unfortunately.

@tniessen
Copy link
Member

@hp8wvvvgnj6asjm7 Has the issue been resolved?

@tniessen tniessen added the net Issues and PRs related to the net subsystem. label Nov 22, 2023
@hp8wvvvgnj6asjm7
Copy link
Author

@hp8wvvvgnj6asjm7 Has the issue been resolved?

no, but I can't make a small reproducible example and its so random that it's hard to tell what is going on.

@ShogunPanda
Copy link
Contributor

This should have been fixed in #51045. Once it gets in 21.x or 20.x please let me know if you have additional problems.

RafaelGSS pushed a commit that referenced this issue Jan 2, 2024
PR-URL: #51045
Fixes: #48763
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
joshlarson added a commit to mbta/skate that referenced this issue Feb 14, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 15, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
joshlarson added a commit to mbta/skate that referenced this issue Feb 21, 2024
This fixes an issue where running individual tests sometimes fails
with this error:

node:internal/assert:14 throw new ERR_INTERNAL_ASSERTION(message);

More info here: nodejs/node#48763
And here: nodejs/node#50383
richardlau pushed a commit that referenced this issue Mar 25, 2024
PR-URL: #51045
Fixes: #48763
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Marco Ippolito <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed-bug Issues with confirmed bugs. net Issues and PRs related to the net subsystem.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants