{"action":"created","issue":{"url":"https://api.github.com/repos/shadowsocks/shadowsocks-windows/issues/359","labels_url":"https://api.github.com/repos/shadowsocks/shadowsocks-windows/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/shadowsocks/shadowsocks-windows/issues/359/comments","events_url":"https://api.github.com/repos/shadowsocks/shadowsocks-windows/issues/359/events","html_url":"https://github.com/shadowsocks/shadowsocks-windows/issues/359","id":112136837,"number":359,"title":"Bug Report JIT Crashing","user":{"login":"ShadyNinja","id":9124786,"avatar_url":"https://avatars.githubusercontent.com/u/9124786?v=3","gravatar_id":"","url":"https://api.github.com/users/ShadyNinja","html_url":"https://github.com/ShadyNinja","followers_url":"https://api.github.com/users/ShadyNinja/followers","following_url":"https://api.github.com/users/ShadyNinja/following{/other_user}","gists_url":"https://api.github.com/users/ShadyNinja/gists{/gist_id}","starred_url":"https://api.github.com/users/ShadyNinja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShadyNinja/subscriptions","organizations_url":"https://api.github.com/users/ShadyNinja/orgs","repos_url":"https://api.github.com/users/ShadyNinja/repos","events_url":"https://api.github.com/users/ShadyNinja/events{/privacy}","received_events_url":"https://api.github.com/users/ShadyNinja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-19T12:45:55Z","updated_at":"2015-10-19T13:09:58Z","closed_at":null,"body":"\r\n![ss bug](https://cloud.githubusercontent.com/assets/9124786/10577974/bee26f7c-76a1-11e5-89f4-7cf41770325e.PNG)\r\n\r\n\r\n有关调用实时(JIT)调试而不是此对话框的详细信息，\r\n请参见此消息的结尾。\r\n\r\n************** 异常文本 **************\r\nSystem.ArgumentOutOfRangeException: 索引超出范围。必须为非负值并小于集合大小。\r\n参数名: index\r\n   在 System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)\r\n   在 Shadowsocks.View.ConfigForm.ServersListBox_SelectedIndexChanged(Object sender, EventArgs e)\r\n   在 System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)\r\n   在 System.Windows.Forms.ListBox.set_SelectedIndex(Int32 value)\r\n   在 Shadowsocks.View.ConfigForm.AddButton_Click(Object sender, EventArgs e)\r\n   在 System.Windows.Forms.Control.OnClick(EventArgs e)\r\n   在 System.Windows.Forms.Button.OnClick(EventArgs e)\r\n   在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)\r\n   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)\r\n   在 System.Windows.Forms.Control.WndProc(Message& m)\r\n   在 System.Windows.Forms.ButtonBase.WndProc(Message& m)\r\n   在 System.Windows.Forms.Button.WndProc(Message& m)\r\n   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)\r\n   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)\r\n   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n\r\n\r\n************** 已加载的程序集 **************\r\nmscorlib\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.106.0 built by: NETFXREL2STAGE\r\n 基本代码:file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll\r\n----------------------------------------\r\nShadowsocks\r\n    程序集版本:2.5.8.0\r\n    Win32 版本:2.5.8.0\r\n 基本代码:file:///D:/Program%20Files/Shadowsocks/Shadowsocks.exe\r\n----------------------------------------\r\nSystem.Windows.Forms\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.79.0 built by: NETFXREL2\r\n 基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\r\n----------------------------------------\r\nSystem\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.79.0 built by: NETFXREL2\r\n    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll\r\n----------------------------------------\r\nSystem.Drawing\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.93.0 built by: NETFXREL2STAGE\r\n    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\r\n----------------------------------------\r\nSystem.Core\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.79.0 built by: NETFXREL2\r\n    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll\r\n----------------------------------------\r\nSystem.Configuration\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.79.0 built by: NETFXREL2\r\n    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\r\n----------------------------------------\r\nSystem.Xml\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.79.0 built by: NETFXREL2\r\n    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll\r\n----------------------------------------\r\nmscorlib.resources\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.79.0 built by: NETFXREL2\r\n    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll\r\n----------------------------------------\r\nSystem.Windows.Forms.resources\r\n    程序集版本:4.0.0.0\r\n    Win32 版本:4.6.79.0 built by: NETFXREL2\r\n    基本代码:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll\r\n----------------------------------------\r\n\r\n************** JIT 调试 **************\r\n要启用实时(JIT)调试，\r\n该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置\r\njitDebugging 值。\r\n编译应用程序时还必须启用\r\n调试。\r\n\r\n例如:\r\n\r\n<configuration>\r\n    <system.windows.forms jitDebugging=\"true\" />\r\n</configuration>\r\n\r\n启用 JIT 调试后，任何未经处理的异常\r\n都将被发送到在此计算机上注册的 JIT 调试器，\r\n而不是由此对话框处理。\r\n\r\n\r\n=================================我是分割线==============================\r\n\r\n复现步骤：\r\n1. 删除当前所有服务器节点至左边服务器列表List为空\r\n2. 点击“添加”按钮\r\n\r\n\r\n备注：虽说不是致命BUG……但这个应该很好测到吧……囧……要是你的源码还开放的话我就帮你改好了……点击添加的时候做一下 SelectedIndex 的判断哟~~\r\n"},"comment":{"url":"https://api.github.com/repos/shadowsocks/shadowsocks-windows/issues/comments/149208290","html_url":"https://github.com/shadowsocks/shadowsocks-windows/issues/359#issuecomment-149208290","issue_url":"https://api.github.com/repos/shadowsocks/shadowsocks-windows/issues/359","id":149208290,"user":{"login":"everyx","id":1665522,"avatar_url":"https://avatars.githubusercontent.com/u/1665522?v=3","gravatar_id":"","url":"https://api.github.com/users/everyx","html_url":"https://github.com/everyx","followers_url":"https://api.github.com/users/everyx/followers","following_url":"https://api.github.com/users/everyx/following{/other_user}","gists_url":"https://api.github.com/users/everyx/gists{/gist_id}","starred_url":"https://api.github.com/users/everyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everyx/subscriptions","organizations_url":"https://api.github.com/users/everyx/orgs","repos_url":"https://api.github.com/users/everyx/repos","events_url":"https://api.github.com/users/everyx/events{/privacy}","received_events_url":"https://api.github.com/users/everyx/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T13:09:58Z","updated_at":"2015-10-19T13:09:58Z","body":"master 分支已经修复了，具体请看 #345 "}}