Hi,
In recent fresh installs of Cygwin & Terminator, I've found that Terminator runs fine under the latest Cygwin, and I don't need to roll back to the "last known good" Cygwin documented on the website.
However, on a new laptop using latest Cygwin and Terminator, I've been experiencing an annoying issue, which manifests in 2 ways:
1. After launching Terminator and exiting the program, java-launcher.exe fails to exit, and hangs around in the process table.
2. Subsequent launches of Terminator (UNLESS I have manually killed any stray java-launcher.exe processes first) cause two windows to open - apparently, two instances of Terminator are starting.
After launching such a "N+1" Terminator, I see that two separate "terminator-N.log" files have been edited. Here are the contents of both of them:
######################## First Log File #############################################################
2013-04-22T10:34:01.252-0700 Terminator: Java 1.7.0_21 (VM 23.21-b01, runtime 1.7.0_21-b11)
2013-04-22T10:34:01.253-0700 Terminator: Windows 7 6.1/x86 x8
2013-04-22T10:34:01.253-0700 Terminator: CYGWIN_NT-6.1-WOW64 version 1.7.17(0.262/5/3) (
cor...@calimero.vinschen.de) (gcc version 4.5.3 20110428 (Fedora Cygwin 4.5.3-4) (GCC) ) 2012-10-19 14:39
2013-04-22T10:34:01.253-0700 Terminator: Revision 1640 (3261)
2013-04-22T10:34:01.254-0700 Terminator: Built 2011-10-25T09:22:02-07:00
2013-04-22T10:34:01.590-0700 Terminator: Created PtyProcess[pid=7912,fd=3,pty="/dev/pty2"] and logging to C:\cygwin\home\jlerman\.terminator\logs\2013-04-22T103401.539-0700-%2Fbin%2Ftcsh.txt
2013-04-22T10:34:01.949-0700 Terminator: echo localhost:61678 > C:\cygwin\home\jlerman\.terminator\terminator-server-port
2013-04-22T10:34:07.75-0700 Terminator: Problem reading output from PtyProcess[pid=7912,fd=3,pty="/dev/pty2"]
Associated exception:
java.io.IOException: Underlying input stream returned zero bytes
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at terminator.terminal.TerminalControl$ReaderRunnable.run(TerminalControl.java:152)
at java.lang.Thread.run(Unknown Source)
2013-04-22T10:34:07.75-0700 Terminator: calling waitFor on PtyProcess[pid=7912,fd=3,pty="/dev/pty2"]
2013-04-22T10:34:07.77-0700 Terminator: waitFor returned on PtyProcess[pid=7912,fd=-1,pty="/dev/pty2",didExitNormally,exitValue=0]
2013-04-22T10:45:55.160-0700 Terminator: Created PtyProcess[pid=5756,fd=3,pty="/dev/pty2"] and logging to C:\cygwin\home\jlerman\.terminator\logs\2013-04-22T104555.010-0700-%2Fbin%2Ftcsh.txt
######################## End of First Log File #############################################################
(Above, note the last line of the file - that is where the first new Terminator window is apparently created).
About 5 seconds pass, then another window opens:
######################## Second Log File #############################################################
2013-04-22T10:46:02.415-0700 Terminator: Java 1.7.0_21 (VM 23.21-b01, runtime 1.7.0_21-b11)
2013-04-22T10:46:02.416-0700 Terminator: Windows 7 6.1/x86 x8
2013-04-22T10:46:02.416-0700 Terminator: CYGWIN_NT-6.1-WOW64 version 1.7.17(0.262/5/3) (
cor...@calimero.vinschen.de) (gcc version 4.5.3 20110428 (Fedora Cygwin 4.5.3-4) (GCC) ) 2012-10-19 14:39
2013-04-22T10:46:02.417-0700 Terminator: Revision 1640 (3261)
2013-04-22T10:46:02.417-0700 Terminator: Built 2011-10-25T09:22:02-07:00
2013-04-22T10:46:02.714-0700 Terminator: Created PtyProcess[pid=7616,fd=3,pty="/dev/pty3"] and logging to C:\cygwin\home\jlerman\.terminator\logs\2013-04-22T104602.664-0700-%2Fbin%2Ftcsh.txt
2013-04-22T10:46:03.168-0700 Terminator: echo localhost:61886 > C:\cygwin\home\jlerman\.terminator\terminator-server-port
######################## End of Second Log File #############################################################
...after exiting (via "exit" in the Cygwin shell) all of the open Terminator windows, the 2nd log file (actually, all of the log files) contains some additional lines:
2013-04-22T10:55:51.397-0700 Terminator: Problem reading output from PtyProcess[pid=7616,fd=3,pty="/dev/pty3"]
Associated exception:
java.io.IOException: Underlying input stream returned zero bytes
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at terminator.terminal.TerminalControl$ReaderRunnable.run(TerminalControl.java:152)
at java.lang.Thread.run(Unknown Source)
2013-04-22T10:55:51.397-0700 Terminator: calling waitFor on PtyProcess[pid=7616,fd=3,pty="/dev/pty3"]
2013-04-22T10:55:51.399-0700 Terminator: waitFor returned on PtyProcess[pid=7616,fd=-1,pty="/dev/pty3",didExitNormally,exitValue=0]
...by now I am left with a bunch of java-launcher.exe instances hanging around. I kill all of them and launch a new Terminator, wait a few seconds, and "exit" from the shell:
2013-04-22T11:02:47.109-0700 Terminator: Java 1.7.0_21 (VM 23.21-b01, runtime 1.7.0_21-b11)
2013-04-22T11:02:47.110-0700 Terminator: Windows 7 6.1/x86 x8
2013-04-22T11:02:47.111-0700 Terminator: CYGWIN_NT-6.1-WOW64 version 1.7.17(0.262/5/3) (
cor...@calimero.vinschen.de) (gcc version 4.5.3 20110428 (Fedora Cygwin 4.5.3-4) (GCC) ) 2012-10-19 14:39
2013-04-22T11:02:47.111-0700 Terminator: Revision 1640 (3261)
2013-04-22T11:02:47.111-0700 Terminator: Built 2011-10-25T09:22:02-07:00
2013-04-22T11:02:47.415-0700 Terminator: Created PtyProcess[pid=6048,fd=3,pty="/dev/pty1"] and logging to C:\cygwin\home\jlerman\.terminator\logs\2013-04-22T110247.358-0700-%2Fbin%2Ftcsh.txt
2013-04-22T11:02:47.667-0700 Terminator: echo localhost:61960 > C:\cygwin\home\jlerman\.terminator\terminator-server-port
2013-04-22T11:03:01.420-0700 Terminator: Problem reading output from PtyProcess[pid=6048,fd=3,pty="/dev/pty1"]
Associated exception:
java.io.IOException: Underlying input stream returned zero bytes
at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at terminator.terminal.TerminalControl$ReaderRunnable.run(TerminalControl.java:152)
at java.lang.Thread.run(Unknown Source)
2013-04-22T11:03:01.421-0700 Terminator: calling waitFor on PtyProcess[pid=6048,fd=3,pty="/dev/pty1"]
2013-04-22T11:03:01.427-0700 Terminator: waitFor returned on PtyProcess[pid=6048,fd=-1,pty="/dev/pty1",didExitNormally,exitValue=0]
...once again the java-launcher.exe is still hanging around.
Any ideas??
Thanks,
--Jeff