maheshkumarvk / superputty

Automatically exported from code.google.com/p/superputty
MIT License
0 stars 0 forks source link

pscp multiple crashes #245

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try opening a pscp session without pscp.exe configured
2. Configure pscp and try navigating to the root directory as a regular user

What is the expected output? What do you see instead?
superputty crashes

What version of the product are you using? On what operating system?
v1.3.0.11 - beta on Windos XP Professional

Please provide any additional information below.
see below:

===================
SCP.exe not defined
===================
2012-10-11 13:01:02,943 [7672] DEBUG SuperPutty.SuperPuTTY - STATUS: Opened 
session: ConnectBar/[masked][SCP]
2012-10-11 13:01:03,037 [List Remote Directory] INFO  SuperPutty.Program - The 
system cannot find the file specified
2012-10-11 13:01:05,053 [List Remote Directory] ERROR SuperPutty.Program - 
CurrentDomain_UnhandledException: IsTerminating=True, 
ex=System.InvalidOperationException: StandardError has not been redirected.
   at System.Diagnostics.Process.BeginErrorReadLine()
   at SuperPutty.PscpTransfer.<>c__DisplayClass5.<BeginGetDirectoryListing>b__0() in E:\projects\dotnet\superputty\1.3\SuperPutty\PscpTransfer.cs:line 341
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
2012-10-11 13:01:05,053 [7672] DEBUG SuperPutty.frmSuperPutty - [856690] 
Activated
2012-10-11 13:01:07,912 [Timeout Watcher] INFO  SuperPutty.Program - Timeout 
after 5 seconds

======================
SCP.EXE CONFIGURED
======================

2012-10-11 13:04:53,718 [7248] INFO  SuperPutty.SuperPuTTY - Opening scp 
session, id=ConnectBar/XXX
2012-10-11 13:04:53,718 [7248] INFO  SuperPutty.Program - Started new File 
Transfer Session for cvgza01.virt.unix.tadnet.net
2012-10-11 13:04:53,733 [7248] INFO  SuperPutty.Program - Request directory 
listing for 'XXX/.'
2012-10-11 13:04:53,749 [List Remote Directory] INFO  SuperPutty.Program - 
Sending Command: 'pscp.exe -ls -pw XXXXX -P 22 XXX@XXX:.'
2012-10-11 13:04:53,749 [List Remote Directory] INFO  SuperPutty.Program - The 
system cannot find the file specified
2012-10-11 13:04:53,889 [7248] DEBUG SuperPutty.SuperPuTTY - STATUS: Opened 
session: ConnectBar/XXX [SCP]
2012-10-11 13:04:56,186 [List Remote Directory] ERROR SuperPutty.Program - 
CurrentDomain_UnhandledException: IsTerminating=True, 
ex=System.InvalidOperationException: StandardError has not been redirected.
   at System.Diagnostics.Process.BeginErrorReadLine()
   at SuperPutty.PscpTransfer.<>c__DisplayClass5.<BeginGetDirectoryListing>b__0() in E:\projects\dotnet\superputty\1.3\SuperPutty\PscpTransfer.cs:line 341
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
2012-10-11 13:04:56,186 [7248] DEBUG SuperPutty.frmSuperPutty - [1905280] 
Activated

======================
NEXT ERROR
======================
2012-10-11 13:11:08,607 [2312] DEBUG SuperPutty.frmSuperPutty - [1446564] 
Activated
2012-10-11 13:11:08,607 [2312] ERROR SuperPutty.Program - 
Application_ThreadException
System.InvalidOperationException: Collection was modified; enumeration 
operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at SuperPutty.RemoteFileListPanel.RefreshListView(List`1 files) in E:\projects\dotnet\superputty\1.3\SuperPutty\RemoteFileListPanel.cs:line 118
   at SuperPutty.RemoteFileListPanel.<>c__DisplayClass5.<RefreshListView>b__3() in E:\projects\dotnet\superputty\1.3\SuperPutty\RemoteFileListPanel.cs:line 109
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
2012-10-11 13:11:09,591 [2312] INFO  SuperPutty.Program - Request directory 
listing for 'XXX/./../../../../mnt'
2012-10-11 13:11:09,591 [List Remote Directory] INFO  SuperPutty.Program - 
Sending Command: 'D:\XXX\Progs\putty\pscp.exe -ls -load "XXX" -pw XXXXX -P 22 
XXX@XXX:./../../../../mnt'
2012-10-11 13:11:12,451 [2312] INFO  SuperPutty.ApplicationPanel - [1250202] 
ReFocusPuTTY - puttyTab=XXX, caller=ActiveDocumentChanged, result=True
2012-10-11 13:11:12,607 [6320] INFO  SuperPutty.Program - Remote host returned 
1 File entries
2012-10-11 13:11:12,623 [4144] INFO  SuperPutty.Program - Process Exited: 0
2012-10-11 13:11:14,232 [6320] ERROR SuperPutty.Program - 
CurrentDomain_UnhandledException: IsTerminating=True, 
ex=System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'ListView'.
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.ListView.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, Int32 lparam)
   at System.Windows.Forms.Control.EndUpdateInternal(Boolean invalidate)
   at System.Windows.Forms.ListView.EndUpdate()
   at SuperPutty.RemoteFileListPanel.RefreshListView(List`1 files) in E:\projects\dotnet\superputty\1.3\SuperPutty\RemoteFileListPanel.cs:line 132
   at SuperPutty.RemoteFileListPanel.<>c__DisplayClass1.<LoadDirectory>b__0(RequestResult result, List`1 files) in E:\projects\dotnet\superputty\1.3\SuperPutty\RemoteFileListPanel.cs:line 78
   at SuperPutty.PscpTransfer.<>c__DisplayClass5.<BeginGetDirectoryListing>b__1(Object sender, DataReceivedEventArgs e) in E:\projects\dotnet\superputty\1.3\SuperPutty\PscpTransfer.cs:line 281
   at System.Diagnostics.Process.OutputReadNotifyUser(String data)
   at System.Diagnostics.AsyncStreamReader.FlushMessageQueue()
   at System.Diagnostics.AsyncStreamReader.GetLinesFromStringBuilder()
   at System.Diagnostics.AsyncStreamReader.ReadBuffer(IAsyncResult ar)
   at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.DoAsyncCall()
   at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
2012-10-11 13:11:15,498 [2312] DEBUG SuperPutty.frmSuperPutty - [1446564] 
Activated

Original issue reported on code.google.com by gkout...@gmail.com on 11 Oct 2012 at 11:41

GoogleCodeExporter commented 9 years ago
acknowledged.  the scp module needs some work...will be focus for 1.4 soon.

Original comment by btatey...@gmail.com on 12 Oct 2012 at 1:18

GoogleCodeExporter commented 9 years ago

Original comment by btatey...@gmail.com on 20 Oct 2012 at 11:50

GoogleCodeExporter commented 9 years ago

Original comment by btatey...@gmail.com on 20 Oct 2012 at 11:55

GoogleCodeExporter commented 9 years ago
first two are from a bug that allowed you to call scp from the connect bar when 
it didn't exist.  (added a fix)

third is issue 111 (added workaround)

fourth is a refresh returning results after the window is closed.  (added a 
check)

These fixes will be in 1.4.0.0+.  Will leave issue open for a few more builds.

Original comment by btatey...@gmail.com on 25 Nov 2012 at 10:28

GoogleCodeExporter commented 9 years ago
1.4.0.4 has an overhauled File Transfer module.  Please give that a shot and 
open any bugs against that.

Original comment by btatey...@gmail.com on 22 May 2013 at 5:30