GetOverlappedResult: Operation Aborted
on some Windows 10/11 machines
#2571
Unanswered
cerilloderek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on an electron app to communicate with multiple UART devices. Some remote users on Windows 10 and 11 machines have had a js error popup with this error:
This popup doesn't seem to adversely impact users ability to interact with devices but it does popup whenever trying to write to the port the device is connected to. So it's rather annoying. I've been unable to reproduce it myself on any computer/device combination available to me.
I saw this post: #2405 and a couple issues in github but they didn't seem to be directly related.
I've changed our code a little bit to obfuscate business logic, but this is the gist of it
We don't limit or throttle writing to ports, so that's one area we could try to improve if that would affect reducing overlapped writes. We also don't
drain
orflush
the port at any point. Additionally, it doesn't seem we are using an error callback for ourwrite
calls to the ports, though I don't think the JS error above would be caught by that in the first place... Additionally, the UART devices don't have any flow control enabled at all, so could this be related to that?Happy to give any more context or code (that I'm allowed to share).
Thanks for the great product, been working great for our uses!
Versions
OS: Windows 10, 11
Node: 14.18.3
Typescript: 4.5.4
electron: 16.2.8
serialport: 9.2.8
Beta Was this translation helpful? Give feedback.
All reactions