ghostx2 / superputty

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

Crash after a while #242

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.This crash is random, I am not sure if it can be solidly reproduced
2.Open a number of tabs 10-15
3.Work on some of the tabs

What is the expected output? What do you see instead?
SuperPutty will crash after a while giving no error message. Nothing is logged 
under windows logs and there is no log file for superputty itself.

What version of the product are you using? On what operating system?
v1.3.0.9 - beta on windows xp professional with latest patches.

Please provide any additional information below.

Original issue reported on code.google.com by gkout...@gmail.com on 4 Oct 2012 at 8:18

GoogleCodeExporter commented 9 years ago
log file should be %TEMP%.

can you check if there's anything there?

Original comment by btatey...@gmail.com on 5 Oct 2012 at 2:30

GoogleCodeExporter commented 9 years ago
It is a managed workstation, with AD policies. I can not access windows/temp

Original comment by gkout...@gmail.com on 5 Oct 2012 at 7:02

GoogleCodeExporter commented 9 years ago
%TEMP% should take you to somewhere like C:/Document Settings/<user>/Local 
Settings/Temp or C:/Users/<user>/AppData/Local.

If that's inaccessible, you can change where superputty logs to by editing the 
SuperPutty.exe.config file...change "${TEMP}/Super..." below somewhere you have 
access to.

    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <file type="log4net.Util.PatternString" value="${TEMP}/SuperPuTTY.%date{yyyyMMdd_HHmmss}.log" />
      <!-- <file value="${TEMP}/SuperPuTTY.log"/> -->
      <appendToFile value="true"/>
      <rollingStyle value="Size"/>
      <maxSizeRollBackups value="10"/>
      <maximumFileSize value="1000KB"/>
      <staticLogFileName value="true"/>
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %-5level %logger - %message%newline"/>
      </layout>
    </appender>

The log file will be helpful to debug this.

Original comment by btatey...@gmail.com on 7 Oct 2012 at 5:47

GoogleCodeExporter commented 9 years ago
Ok got it.

I got two crashes:

2012-10-02 15:53:55,104 [5564] DEBUG SuperPutty.frmSuperPutty - [2165238] 
Activated
2012-10-02 15:53:55,104 [5564] INFO  SuperPutty.ApplicationPanel - [4720632] 
ReFocusPuTTY - puttyTab=[ommited], caller=WinEventProc-FG, AltTab=False, 
result=True
2012-10-02 16:22:06,200 [5564] INFO  SuperPutty.Utils.KeyEventWindowActivator - 
[0] Activating Main Window - current=(C:\Program Files\Microsoft Application 
Virtualization Client\sfttray.exe)
2012-10-02 16:22:06,232 [5564] DEBUG SuperPutty.frmSuperPutty - [2165238] 
Activated
2012-10-02 16:22:11,654 [5564] ERROR SuperPutty.Program - Error in Main
System.NullReferenceException: Object reference not set to an instance of an 
object.
   at SuperPutty.ApplicationPanel.WinEventProc(IntPtr hWinEventHook, UInt32 eventType, IntPtr hwnd, Int32 idObject, Int32 idChild, UInt32 dwEventThread, UInt32 dwmsEventTime) in E:\projects\dotnet\superputty\1.3\SuperPutty\ctlApplicationPanel.cs:line 223
   at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at SuperPutty.Program.Main(String[] args) in E:\projects\dotnet\superputty\1.3\SuperPutty\Program.cs:line 92
2012-10-02 16:22:12,248 [5564] INFO  SuperPutty.Program - Shutdown

================================================================================
===

2012-10-04 08:41:12,093 [6732] WARN  SuperPutty.ctlPuttyPanel - Unable to 
SetFocusToChildApplication, [ommited]
2012-10-04 08:41:12,093 [6732] DEBUG SuperPutty.SuperPuTTY - STATUS: Opened 
session: ImportedFromPuTTY/[ommited][SSH]
2012-10-04 08:41:12,124 [6732] INFO  SuperPutty.Utils.KeyEventWindowActivator - 
[2100238] Activating Main Window - current=(C:\Program Files\Microsoft 
Application Virtualization Client\sfttray.exe)
2012-10-04 08:41:12,124 [6732] DEBUG SuperPutty.frmSuperPutty - [10946182] 
Activated
2012-10-04 08:41:12,124 [6732] INFO  SuperPutty.ApplicationPanel - [2100238] 
ReFocusPuTTY - puttyTab=[ommited], caller=WinEventProc-FG, AltTab=False, 
result=True
2012-10-04 08:41:12,156 [6732] DEBUG SuperPutty.frmSuperPutty - [10946182] 
Activated
2012-10-04 08:41:12,546 [6732] WARN  SuperPutty.ctlPuttyPanel - Unable to 
SetFocusToChildApplication, [ommited]
2012-10-04 08:41:14,421 [6732] INFO  SuperPutty.ApplicationPanel - [2362524] 
ReFocusPuTTY - puttyTab=[ommited], caller=ActiveDocumentChanged, result=True
2012-10-04 08:41:14,437 [6732] DEBUG SuperPutty.frmSuperPutty - [10946182] 
Activated
2012-10-04 08:41:33,735 [6732] INFO  SuperPutty.Utils.KeyEventWindowActivator - 
[0] Activating Main Window - current=(C:\Program Files\Microsoft Application 
Virtualization Client\sfttray.exe)
2012-10-04 08:41:37,407 [6732] ERROR SuperPutty.Program - Error in Main
System.NullReferenceException: Object reference not set to an instance of an 
object.
   at SuperPutty.ApplicationPanel.WinEventProc(IntPtr hWinEventHook, UInt32 eventType, IntPtr hwnd, Int32 idObject, Int32 idChild, UInt32 dwEventThread, UInt32 dwmsEventTime) in E:\projects\dotnet\superputty\1.3\SuperPutty\ctlApplicationPanel.cs:line 223
   at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at SuperPutty.Program.Main(String[] args) in E:\projects\dotnet\superputty\1.3\SuperPutty\Program.cs:line 92
2012-10-04 08:41:37,485 [6732] INFO  SuperPutty.Program - Shutdown

Original comment by gkout...@gmail.com on 8 Oct 2012 at 6:53

GoogleCodeExporter commented 9 years ago
Adding extra null checks...will be 1.3.0.11.

Not sure why it's happening though...this might just be symptom of a larger 
problem.

Original comment by btatey...@gmail.com on 10 Oct 2012 at 11:38

GoogleCodeExporter commented 9 years ago
If that might be of help, I recall this crash happening when the workstation is 
running low on memory and starts paging.

Original comment by gkout...@gmail.com on 11 Oct 2012 at 6:47

GoogleCodeExporter commented 9 years ago
oh, maybe an out of memory situation.

let me know if you still have the problem.

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

GoogleCodeExporter commented 9 years ago
It happened again.

2012-10-04 08:41:33,735 [6732] INFO  SuperPutty.Utils.KeyEventWindowActivator - 
[0] Activating Main Window - current=(C:\Program Files\Microsoft Application 
Virtualization Client\sfttray.exe)
2012-10-04 08:41:37,407 [6732] ERROR SuperPutty.Program - Error in Main
System.NullReferenceException: Object reference not set to an instance of an 
object.
   at SuperPutty.ApplicationPanel.WinEventProc(IntPtr hWinEventHook, UInt32 eventType, IntPtr hwnd, Int32 idObject, Int32 idChild, UInt32 dwEventThread, UInt32 dwmsEventTime) in E:\projects\dotnet\superputty\1.3\SuperPutty\ctlApplicationPanel.cs:line 223
   at System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG& msg, HandleRef hwnd, Int32 msgMin, Int32 msgMax, Int32 remove)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at SuperPutty.Program.Main(String[] args) in E:\projects\dotnet\superputty\1.3\SuperPutty\Program.cs:line 92
2012-10-04 08:41:37,485 [6732] INFO  SuperPutty.Program - Shutdown

Original comment by gkout...@gmail.com on 31 Oct 2012 at 8:22