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

Gray window on PuTTY when connected via local proxy command #94

Closed
ukoloff opened this Issue Apr 7, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@ukoloff

ukoloff commented Apr 7, 2015

Normal PuTTY connections work just fine. But when I run PuTTY via local proxy command:

"ProxyMethod"=dword:00000005
"ProxyTelnetCommand"="plink root@10.220.12.1 -nc %host:%port"

Connection starts normally. But if I switch to other tab (eg Far Manager) and back to PuTTY tab, now it's totally gray (sometimes I can see a couple of lines in the bottom). Below this gray rectangle PuTTY is still working: I can type exit+Enter and tab closes. I can even run mc.

I'm not sure where is the bug - in ConEmu, in PuTTY or in Windows itself.

When running PuTTY standalone it works fine over local proxy. But there is no tab to switch away and back! ;-)

I tested different SSH servers - gray rectangle appears everywhere.

I used simple port forwarder instead of plink - nothing changes.

ConEmu v2015.3.9
PuTTY v0.64
OsVer: 6.1.7601.x64, Product: 1, SP: 1.0, Suite: 0x100, SM_SERVERR2: 0

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Apr 7, 2015

Owner
  1. Screenshots
  2. Try KiTTY
  3. PuTTY is GUI application, ConEmu don't control what it paints on it own canvas.
Owner

Maximus5 commented Apr 7, 2015

  1. Screenshots
  2. Try KiTTY
  3. PuTTY is GUI application, ConEmu don't control what it paints on it own canvas.
@ukoloff

This comment has been minimized.

Show comment
Hide comment
@ukoloff

ukoloff Apr 8, 2015

Screenshots

New PuTTY session:
0
Just after switching to Far tab and back:
1
I can type exit now and tab wil close normally.

Try KiTTY

The same result.

To tell the truth, I cannot run KiTTY thru plink (KiTTY Fatal Error: Server unexpectedly closed network connection), but using hand made port forwarder netcat shows the same gray rectangle.

PuTTY is GUI application, ConEmu don't control what it paints on it own canvas.

Yes, I also believe that root of problem is inside PuTTY or most probably in Microsoft's IPC implementation. ConEmu gives us the way to see that error.

But how ConEmu makes PuTTY/Windows know that its tab become inactive/active again? In that moment something bad happens.

ukoloff commented Apr 8, 2015

Screenshots

New PuTTY session:
0
Just after switching to Far tab and back:
1
I can type exit now and tab wil close normally.

Try KiTTY

The same result.

To tell the truth, I cannot run KiTTY thru plink (KiTTY Fatal Error: Server unexpectedly closed network connection), but using hand made port forwarder netcat shows the same gray rectangle.

PuTTY is GUI application, ConEmu don't control what it paints on it own canvas.

Yes, I also believe that root of problem is inside PuTTY or most probably in Microsoft's IPC implementation. ConEmu gives us the way to see that error.

But how ConEmu makes PuTTY/Windows know that its tab become inactive/active again? In that moment something bad happens.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Apr 8, 2015

Owner

What shall I do to reproduce the problem on my local PC?

After gray rectangle appears, press CtrlWinAltSpace. PuTTY window must appears. How it will be?

Also, I'm interested in LogFiles
http://conemu.github.io/en/LogFiles.html
Reproduce gray rectangle and send me them.

Owner

Maximus5 commented Apr 8, 2015

What shall I do to reproduce the problem on my local PC?

After gray rectangle appears, press CtrlWinAltSpace. PuTTY window must appears. How it will be?

Also, I'm interested in LogFiles
http://conemu.github.io/en/LogFiles.html
Reproduce gray rectangle and send me them.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Apr 8, 2015

Owner

When ConEmu switches tab it hides its own child windows representing that console.
PuTTY, in turn, is a child of ConEmu child window, so it hides automatically.
Show back works in the same manner.

Owner

Maximus5 commented Apr 8, 2015

When ConEmu switches tab it hides its own child windows representing that console.
PuTTY, in turn, is a child of ConEmu child window, so it hides automatically.
Show back works in the same manner.

@ukoloff

This comment has been minimized.

Show comment
Hide comment
@ukoloff

ukoloff Apr 8, 2015

What shall I do to reproduce the problem on my local PC?

  1. You need SSH server with public key auth (and working public key).
  2. Run PuTTY (in new console), enter Host Name, go to Connection / SSH / Proxy, set Proxy type to Local, Telnet command to plink root@%host -nc localhost:22 (Sample PuTTY session is included in zip below).
  3. Activate another tab and PuTTY tab back.

After gray rectangle appears, press CtrlWinAltSpace. PuTTY window must appears. How it will be?

This console is fully functional. No gray rectangles.

It seems CtrlWinAltSpace is quick-n-dirty workaround for this bug :-)

Also, I'm interested in LogFiles

Logs (/log4) are in https://yadi.sk/d/2SiQ-aC8fqsKP

And I also started KiTTY via plink (had to simply copy plink.exe next to kitty.exe). The same gray rectangle, no difference.

ukoloff commented Apr 8, 2015

What shall I do to reproduce the problem on my local PC?

  1. You need SSH server with public key auth (and working public key).
  2. Run PuTTY (in new console), enter Host Name, go to Connection / SSH / Proxy, set Proxy type to Local, Telnet command to plink root@%host -nc localhost:22 (Sample PuTTY session is included in zip below).
  3. Activate another tab and PuTTY tab back.

After gray rectangle appears, press CtrlWinAltSpace. PuTTY window must appears. How it will be?

This console is fully functional. No gray rectangles.

It seems CtrlWinAltSpace is quick-n-dirty workaround for this bug :-)

Also, I'm interested in LogFiles

Logs (/log4) are in https://yadi.sk/d/2SiQ-aC8fqsKP

And I also started KiTTY via plink (had to simply copy plink.exe next to kitty.exe). The same gray rectangle, no difference.

@Maximus5 Maximus5 added this to the Accepted milestone Nov 10, 2015

@Maximus5 Maximus5 closed this Feb 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment