lzh0379 / superputty

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

Crash on startup #220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After "upgrading" from 1.3.0.6 to 1.3.0.7 supperputty does not start anymore.

System is Windows 7 64Bit.

2012-09-05 09:31:51,923 [4724] ERROR SuperPutty.Program - Error in Main
System.ArgumentException: Die Action_CloseTab_Shortcut-Eigenschaft konnte nicht 
aus ihrem Standardwert erstellt werden. Fehlermeldung: Der angeforderte Wert 
"Ctrl" konnte nicht gefunden werden.
   bei System.Configuration.SettingsPropertyValue.Deserialize()
   bei System.Configuration.SettingsPropertyValue.get_PropertyValue()
   bei System.Configuration.SettingsBase.get_Item(String propertyName)
   bei System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
   bei SuperPutty.Properties.Settings.LoadShortcuts() in E:\projects\dotnet\superputty\1.3\SuperPutty\Settings.cs:Zeile 87.
   bei SuperPutty.dlgFindPutty..ctor() in E:\projects\dotnet\superputty\1.3\SuperPutty\dlgFindPutty.cs:Zeile 187.
   bei SuperPutty.dlgFindPutty.PuttyCheck() in E:\projects\dotnet\superputty\1.3\SuperPutty\dlgFindPutty.cs:Zeile 371.
   bei SuperPutty.frmSuperPutty..ctor() in E:\projects\dotnet\superputty\1.3\SuperPutty\frmSuperPutty.cs:Zeile 85.
   bei SuperPutty.Program.Main(String[] args) in E:\projects\dotnet\superputty\1.3\SuperPutty\Program.cs:Zeile 89.
2012-09-05 09:31:51,938 [4724] INFO  SuperPutty.Program - Shutdown

Original issue reported on code.google.com by slowhand...@googlemail.com on 5 Sep 2012 at 7:35

GoogleCodeExporter commented 9 years ago
same here on Windows 7 32bit; reverting back to 1.3.0.6 for the moment

Original comment by patrick....@googlemail.com on 5 Sep 2012 at 9:26

GoogleCodeExporter commented 9 years ago
can you post your settings file?  It looks like Ctrl is not a valid key in 
german dotnet.

I suspect a possible workaround is the following:

1) Close superputty
2) Remove the Action_*_Shortcut parts of the settings file
3) Open 1.3.0.7
4) Set all shortcuts from Options, Shortcuts
5) Save settings, Close SuperPutty

Or manually edit your settings file and make Action_*_shortcuts all have value 
"None".

I'll add an exception handler to help do this automatically in the next build. 

Original comment by btatey...@gmail.com on 5 Sep 2012 at 10:51

GoogleCodeExporter commented 9 years ago
Here is the original settings file there is no Action* entry.

Tried to start without settings file, same problem.

<?xml version="1.0" encoding="utf-8"?>
<Settings>
  <PuttyExe>C:\Program Files (x86)\PuTTY\putty.exe</PuttyExe>
  <SettingsFolder>C:\Users\asg\Documents\SuperPuTTY</SettingsFolder>
  <ShowToolBarCommands>True</ShowToolBarCommands>
  <RestoreWindowLocation>True</RestoreWindowLocation>
  <ExitConfirmation>True</ExitConfirmation>
  <PscpExe>C:\Program Files (x86)\PuTTY\pscp.exe</PscpExe>
  <DefaultLayoutName>
  </DefaultLayoutName>
  <SingleInstanceMode>False</SingleInstanceMode>
  <ShowToolBarConnections>True</ShowToolBarConnections>
  <WindowState>Maximized</WindowState>
  <ShowStatusBar>True</ShowStatusBar>
  <ApplicationVersion>
  </ApplicationVersion>
  <WindowPosition>0, 0, 0, 0</WindowPosition>
  <RestrictContentToDocumentTabs>False</RestrictContentToDocumentTabs>
  <ExpandSessionsTreeOnStartup>False</ExpandSessionsTreeOnStartup>
  <MinimizeToTray>False</MinimizeToTray>
  <MinttyExe>
  </MinttyExe>
  <TabTextBehavior>Static</TabTextBehavior>
  <TabSwitcher>SuperPutty.Utils.VisualOrderTabSwitchStrategy</TabSwitcher>
  <SessionsTreeFont>Segoe UI, 9pt</SessionsTreeFont>
  <SessionsTreeShowLines>False</SessionsTreeShowLines>
  <WindowActivator>SuperPutty.Utils.KeyEventWindowActivator</WindowActivator>
  <SendCommandsToVisibleOnly>False</SendCommandsToVisibleOnly>
</Settings>

Original comment by slowhand...@googlemail.com on 5 Sep 2012 at 11:48

GoogleCodeExporter commented 9 years ago
Same problem here on German Windows 7 x64. 

Removing Action_*_Shortcut parts or setting the values to "None" in the .config 
file doesn't help either. 

Original comment by phil....@gmail.com on 7 Sep 2012 at 3:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Added some error handling for this case.

Turns out in German .NET Ctrl (Control) can't be converted back.  Ctrl-F4, 
Ctrl-Home, Ctrl-End are all set as defaults so it causes SuperPutty to fail 
when loading.  

What's more crazy is Strg (Control on german keybaord) can't converted back in 
English .NET.  

Let me know if 1.3.0.8 fixes this.  

Original comment by btatey...@gmail.com on 9 Sep 2012 at 12:56

GoogleCodeExporter commented 9 years ago
Yes, 1.3.0.8 fixes the startup problem!

Thanks

Original comment by slowhand...@googlemail.com on 17 Sep 2012 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by btatey...@gmail.com on 18 Sep 2012 at 12:00

GoogleCodeExporter commented 9 years ago
The error still occurs in 1.3.0.8-2 when Clicking OK in Options dialog. The 
error occurs in UpdateFromShortcuts in Settings.cs

Original comment by breker.c...@gmail.com on 27 Sep 2012 at 12:35

GoogleCodeExporter commented 9 years ago
Almost the same behaviour was reported in issue #236.

Original comment by breker.c...@gmail.com on 27 Sep 2012 at 12:38