-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Sometimes read from Pty stream hangs. Have you experienced that? What exactly can cause it?
That is a corresponding dump:
"ConnectRunnable@1796" prio=5 tid=0x13 nid=NA runnable
java.lang.Thread.State: RUNNABLE
at jtermios.linux.JTermiosImpl$Linux_C_lib_DirectMapping.read(JTermiosImpl.java:-1)
at jtermios.linux.JTermiosImpl.read(JTermiosImpl.java:557)
at jtermios.JTermios.read(JTermios.java:411)
at jpty.Pty$1.read(Pty.java:132)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
- locked <0x717> (a java.io.InputStreamReader)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
InputStreamReader here is created on Pty.getInputStream()
I experience the hang both on Ubuntu Linux and Mac OSX 10.7.5, but maybe I'm doing something wrong.
The most suspecious thing is that the problem began to appear more often - I have it in 99% on my Mac while debugging. Before(I don't know when it changed) it was not so often.
Also sometimes I get following exception
java.io.IOException: Underlying input stream returned zero bytes
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:268)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at com.jediterm.terminal.ProcessTtyConnector.read(ProcessTtyConnector.java:47)
...
Metadata
Metadata
Assignees
Labels
No labels