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

Wainlux K6.... IOException: Port in use: COM3 #638

Open
schmiernippel opened this issue Feb 6, 2022 · 18 comments
Open

Wainlux K6.... IOException: Port in use: COM3 #638

schmiernippel opened this issue Feb 6, 2022 · 18 comments

Comments

@schmiernippel
Copy link

schmiernippel commented Feb 6, 2022

On my Wainlux K6 Laser i get this Error:

IOException: Port in use: COM3

A lot of people also get this error....

Any help or workaround??

greets

@t-oster
Copy link
Owner

t-oster commented Feb 6, 2022

Can you screenshot your device manager to confirm the Lasercutter is present on COM 3?

@t-oster
Copy link
Owner

t-oster commented Feb 6, 2022

You could also try to run visicut as admin

@schmiernippel
Copy link
Author

port_screenshot

I have also tried run as admin and different baudrates.....

thanks

@t-oster
Copy link
Owner

t-oster commented Feb 6, 2022

Is there any other program opened which uses the com Port?

@schmiernippel
Copy link
Author

No....and i also have tried an other PC....and a get the same error...

@schmiernippel
Copy link
Author

This Error i also get:

“IOException: Underlying input stream returned zero bytes”.

@schmiernippel
Copy link
Author

Is there any other program opened which uses the com Port?

I will try changing the port....

@schmiernippel
Copy link
Author

schmiernippel commented Feb 6, 2022

Changing the port will not help...

@t-oster
Copy link
Owner

t-oster commented Feb 6, 2022

Does it work with any other Software?

@schmiernippel
Copy link
Author

Yes...it works with original software....and also with differen versions of the software!

@schmiernippel
Copy link
Author

Is there anything i can do for you that you know what is not working??

@t-oster
Copy link
Owner

t-oster commented Feb 6, 2022

Hmm. Okay. Are you able to set up a development environment so we can debug step by step?https://github.com/t-oster/VisiCut/wiki/Development:-Getting-started

@mgmax
Copy link
Collaborator

mgmax commented Feb 6, 2022

Can you connect to the serial port using other software (HyperTerminal, Putty or similar)?

Can you find out which program blocks the serial port? https://www.equisys.com/Support/technotes/howto-identifying-which-process-is-using-the-serial-port

@schmiernippel
Copy link
Author

Hmm. Okay. Are you able to set up a development environment so we can debug step by step?https://github.com/t-oster/VisiCut/wiki/Development:-Getting-started

Sorry...no...thats over my knowledge :-)

@schmiernippel
Copy link
Author

Can you connect to the serial port using other software (HyperTerminal, Putty or similar)?

Can you find out which program blocks the serial port? https://www.equisys.com/Support/technotes/howto-identifying-which-process-is-using-the-serial-port

yes i can access the port with other software, checked with "serial port monitor from eltima software"
it works also with original laser software

When i open visicut and send the code to the engraver, a can not connect with other software to the Port, so visicut it is connected to the Port.

@robin-toolmaker
Copy link

robin-toolmaker commented Feb 10, 2022

Same “IOException: Underlying input stream returned zero bytes” here (Wainlux K6, VisiCut for Windows | 1.9-139).

"VisiCut --debug" sagt:


_WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/C:/Program%20Files%20(x86)/VisiCut/Visicut.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
using single-instance port: 6546
java.io.IOException: Underlying input stream returned zero bytes
at java.base/sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at java.base/sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at java.base/sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.base/java.io.InputStreamReader.read(Unknown Source)
at java.base/java.io.Reader.read(Unknown Source)
at de.thomas_oster.liblasercut.drivers.K3EngraverDriver.waitForACK(K3EngraverDriver.java:294)
at de.thomas_oster.liblasercut.drivers.K3EngraverDriver.sendLine(K3EngraverDriver.java:310)
at de.thomas_oster.liblasercut.drivers.K3EngraverDriver.send4ByteCommand(K3EngraverDriver.java:319)
at de.thomas_oster.liblasercut.drivers.K3EngraverDriver.sendConnectSequence(K3EngraverDriver.java:407)
at de.thomas_oster.liblasercut.drivers.K3EngraverDriver.sendJob(K3EngraverDriver.java:551)
at de.thomas_oster.visicut.VisicutModel.sendJob(VisicutModel.java:778)
at de.thomas_oster.visicut.gui.MainView.lambda$executeOrSaveJob$7(MainView.java:2209)
at java.base/java.lang.Thread.run(Unknown Source)

@JarrettR
Copy link

JarrettR commented Aug 11, 2022

Also getting this. Windows and K6.
Is there anything we can do to help debug? I do have a logic analyzer, if necessary, although I don't particularly want to pop the top off the unit if I don't have to.

edit: This is in regards to "Underlying input stream returned zero bytes" continuing discussion in the proper issue linked below

@mgmax
Copy link
Collaborator

mgmax commented Aug 12, 2022

I'm somewhat confused by the comments - the original poster says "IOException port in use", another one says "Underlying input stream returned zero bytes". Please only discuss the "Port in use" issue here.

For the "zero bytes issue", see t-oster/LibLaserCut#170 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants