question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RJCP.IO.Ports SerialPortsStream System.IO.IOException - Invalid configuration (BreakState, Length, Position)

See original GitHub issue

Hi guys, (again)

Due to the lack of answers in SOVF, I am echoing my question posted in there regarding this issue that has been bugging me for a while where a System.IO.IOException refers to an Invalid configuration (BreakState, Length, Position) (according to the Watch utility)

When working on my home PC, I simply cannot use the RJCP SerialPortStream package since I ALWAYS run into the same issue.

After attempting to configure the SerialPortStream object (through a push button) in the form:

USBPort = new SerialPortStream(Controller.PortCOM, _DefaultBaudrate); // where Controller.PortCOM is a string "COM6" and _DefaultBaudrate is 115200;

Visual Studio throws the following error:

image

Inspecting my SerialPortStream USBPort object with the Watch utility, this is what I get:

image

It should be noted that this issue ONLY occurs on my PC at home (Ryzen 9 3900X, Windows 10 21H1, Build 19043.1288, Visual Studio 2019 16.11.5) while the SAME code works fine (not showing the same issue, at least) in other two computers with similar platforms (two Intel laptops)

What could be happening here?

What do these errors mean?

In case I am missing some details on my development platforms, please let me know.

Thank you (once again)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jcurlcommented, Dec 31, 2021

Closing this issue, as there has been no activity or updates to identify the root cause. Please see the new release 2.4.0 which may contain potential fixes.

0reactions
dzalfcommented, Jan 12, 2022

Dear Jason

My apologies for the later reply. I basically came back from a long 2 month holiday period.

That’s alright. I can confirm that the issue did not occur again on my work’s computer. However, I have not been able to test it again. Within the following days, I will ‘dust’ my project and continue where I left it back in late November.

Happy New Year and thanks once again for your continuous support!

Cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

RJCP.IO.Ports SerialPortsStream System.IO.IOException
The Length and Position property are not defined, that the CanSeek property is false in this particular implementation. Does the RJCP dll ...
Read more >
SerialPortStream.cs
SerialPortStream is an independent implementation of System.IO.Ports.SerialPort and SerialStream for better reliability and maintainability.
Read more >
An invalid or incomplete configuration was used while ...
IO.Ports SerialPortsStream System.IO.IOException - Invalid configuration (BreakState, Length, Position) · Creating Azure VM via C# Throws Error While ...
Read more >
Untitled
IO.Ports SerialPortsStream System.IO.IOException STM32 microcontroller GPIO ... IO.IOException - Invalid configuration (BreakState, Length, Position) #129.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found