Closed neuromancerxi closed 9 years ago
Thanks for the Bug report. Unhandled exceptions should never be thrown. @neuromancerxi can you do me a favor and try to recreate this exceptions being thrown with debug enabled? Also what version of SuperPutty are you running?
Superputty 1.4.0.6
Do you have directions that I can follow to provide you with greater detail? I didn't see any options in the menus or notes on running SuperPutty with debugging enabled.
Logs:
2015-09-19 21:13:33,423 DEBUG frmSuperPutty - [263126] Activated
2015-09-19 21:13:33,429 INFO TabSwitcher - Cleaning up old strategy: Visual: Left-to-Right, Top-to-Bottom
2015-09-19 21:13:33,430 INFO TabSwitcher - Initialing new strategy: Visual: Left-to-Right, Top-to-Bottom
2015-09-19 21:13:33,432 DEBUG SuperPuTTY - STATUS: Ready
2015-09-19 21:13:33,516 INFO ApplicationPanel - [15795654] ReFocusPuTTY - puttyTab=neuro@UbuntuVM: ~, caller=SHELLHOOK, result=True
2015-09-19 21:13:37,745 DEBUG frmSuperPutty - [263126] Activated
2015-09-19 21:13:37,956 INFO SuperPuTTY - Opening putty session, id=Z_Other/Cygwin
2015-09-19 21:13:37,958 INFO PuttyStartInfo - Putty Args: '-'
2015-09-19 21:13:38,159 WARN ApplicationPanel - Unable to get handle for process on first try. Polling 10 s for handle.
2015-09-19 21:13:49,218 DEBUG frmSuperPutty - [263126] Activated
2015-09-19 21:13:49,283 ERROR Program - Application_ThreadException
2015-09-19 21:13:51,567 DEBUG frmSuperPutty - [263126] Activated
2015-09-19 21:13:51,653 INFO ApplicationPanel - [15795654] ReFocusPuTTY - puttyTab=neuro@UbuntuVM: ~, caller=SHELLHOOK, result=True
2015-09-19 21:13:54,020 DEBUG frmSuperPutty - [263126] Activated
@neuromancerxi Are you compiling from Source or using precombiled Binaries?
Pre-compiled binaries for both.
@neuromancerxi will you grab the latest build from here https://ci.appveyor.com/api/buildjobs/c5p29ikv73i3xca3/artifacts/SuperPuttyInstaller/bin/Debug/SuperPuttySetup.msi It has debugging information enabled so an exception should provide better details of where this is ocurring.
Going to Bump this until 1.4.0.8 since it does not appear to affect the bulk of the userbase.
With the debug build and now mintty 2.1.5 (x86_64-pc-cygwin):
@neuromancerxi can you provide steps to reproduce? Thanks!
I can provide more logs if required just let me know. I still can reproduce this problem everytime:
1) unzip SupperPutty 2) start SupperPutty 3) configure putty, pscp,mintty,... references & Submit 4) i get the first error without Stacktrace ( just process exited) 5) close SupperPutty 6) start SupperPutty again 7) start minty based console ==> Error message and the mintty windows get undocked from SupperPutty main window ( i can close superputty but mintty remains running )
$ mintty.exe --version Ignoring malformed option ':'. mintty 2.1.5 (x86_64-pc-cygwin) (C) 2013/2015 Andy Koppe / Thomas Wolff License GPLv3+: GNU GPL version 3 or later There is no warranty, to the extent permitted by law.
tried "reinstalling" re unzipping more than 4 times ( even after cygwin reinstall)
still get the same problem ( see screenshot )
@neuromancerxi Thanks for the update. I'll work on this when I am back from travels. Around October 15th.
You can work around this in the meantime if you set up cygwin with sshd.
I also had this issue, but was able to do some troubleshooting this evening. The issue is caused by the current version of mintty.exe distributed with cygwin. In the new version, if mintty thinks that it wasn't started from a terminal, it will fork itself and then exit. Since superputty doesn't notice this, it tries to wait on the initial mintty process, which has already exited.
Fortunately, there is a mintty config setting to disable this behavior. Just add "daemonize=false" to the .minttyrc file in your cygwin home dir.
@dklawson Thank you, your workaround solved my issue for the short term.
The Exception being thrown I believe has been fixed. The handling of mintty will need to be addressed in documentation unless there is a commandline option that can be passed to mintty to "fix" the daemonizing behavior.
I think --nodaemon should work as a command line option.
@dklawson does that affect previous versions of mintty if --nodaemon is passed on the command line?
Looks like the default for the 'daemon' feature was changed from off (enabled via --daemon) to on (disabled via --nodaemon), starting in v2.1.4 of mintty (commit 4e68399). It will return an error for invalid options, so there would need to be some version checking added.
It appears you set options with -o
Mintty 2.1.4 (x86_64-pc-cygwin) Error on launch (but spawns separate window): Invalid Operation Error - Process has exited, so the requested information is not available.