{"action":"created","issue":{"url":"https://api.github.com/repos/LegendaryClient/LegendaryClient/issues/360","labels_url":"https://api.github.com/repos/LegendaryClient/LegendaryClient/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/LegendaryClient/LegendaryClient/issues/360/comments","events_url":"https://api.github.com/repos/LegendaryClient/LegendaryClient/issues/360/events","html_url":"https://github.com/LegendaryClient/LegendaryClient/issues/360","id":88378580,"number":360,"title":"Get stuck at login","user":{"login":"NitroXenon","id":7702985,"avatar_url":"https://avatars.githubusercontent.com/u/7702985?v=3","gravatar_id":"","url":"https://api.github.com/users/NitroXenon","html_url":"https://github.com/NitroXenon","followers_url":"https://api.github.com/users/NitroXenon/followers","following_url":"https://api.github.com/users/NitroXenon/following{/other_user}","gists_url":"https://api.github.com/users/NitroXenon/gists{/gist_id}","starred_url":"https://api.github.com/users/NitroXenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NitroXenon/subscriptions","organizations_url":"https://api.github.com/users/NitroXenon/orgs","repos_url":"https://api.github.com/users/NitroXenon/repos","events_url":"https://api.github.com/users/NitroXenon/events{/privacy}","received_events_url":"https://api.github.com/users/NitroXenon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LegendaryClient/LegendaryClient/labels/Crashing","name":"Crashing","color":"c7def8"},{"url":"https://api.github.com/repos/LegendaryClient/LegendaryClient/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-15T10:04:51Z","updated_at":"2015-06-20T13:02:58Z","closed_at":null,"body":"Get stuck at login (Garena TW)\r\nLog : \r\n\r\n```\r\n(6/15/2015 6:01 PM) [LOG]: LegendaryClient Started Up Successfully\r\n(6/15/2015 6:01 PM) [LOG]: Switching to the page: LegendaryClient.Windows.PatcherPage\r\n(6/15/2015 6:01 PM) [EXCEPTION]: A first chance exception was thrown\r\n(6/15/2015 6:01 PM) [EXCEPTION]: Could not load file or assembly 'mscorlib.XmlSerializers, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.\r\n(6/15/2015 6:01 PM) [EXCEPTION]:    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)\r\n(6/15/2015 6:01 PM) [LOG]: Newest DataDragon Version: 5.11.1\r\n(6/15/2015 6:01 PM) [LOG]: Current DataDragon Version: 5.11.1\r\n(6/15/2015 6:01 PM) [LOG]: DDragon Version (LOL Version) = 5.11.1\r\n(6/15/2015 6:01 PM) [LOG]: Newest Air Assets Version: 0.0.1.148\r\n(6/15/2015 6:01 PM) [LOG]: Current Air Assets Version: 0.0.1.148\r\n(6/15/2015 6:01 PM) [LOG]: Checking Theme...\r\n(6/15/2015 6:01 PM) [LOG]: Trying to detect League of Legends GameClient\r\n(6/15/2015 6:01 PM) [LOG]: League of Legends is located at: C:\\GarenaLoLTW\\GameData\\Apps\\LoLTW\\\r\n(6/15/2015 6:01 PM) [LOG]: Latest League of Legends GameClient: 0.0.1.92\r\n(6/15/2015 6:01 PM) [LOG]: Checking if League of Legends is Up-To-Date\r\n(6/15/2015 6:01 PM) [LOG]: League of Legends is Up-To-Date\r\n(6/15/2015 6:01 PM) [LOG]: LegendaryClient Has Finished Patching\r\n(6/15/2015 6:01 PM) [LOG]: Switching to the page: LegendaryClient.Windows.LoginPage\r\n(6/15/2015 6:01 PM) [LOG]: Received token, it is: ma1ACV+S4kHLkqWoj/1AomdxyEayl0hVDwZILHgiQ5k21+qINvuC0EO4k31a1XJrgWiZgaXNXSZpcjXX1xfxn6wXXbyeJ8jP4MOcsIsHNFmL7U/ajg5XIKzBRlyTBbzC6nur/ZCCv5j4ahwfRN6JWuObA807Q+/PSYHSgoB5Jbl2RYFxJbhCQkWvSN1PR+vkaugihq4w/8bf3QPbgFGY+yVXByhYs95QzxyrNIZtaBtyaYyo2IQDSC+L/20L3SzImQN4vDBivfCME0LWfP9d25pKGW2zHPMZ57VhfhllpfkOoQfRoD08CHslVTH42vDS23biY3jrA/yZbNYPjsSRFA==\r\n(6/15/2015 6:01 PM) [LOG]: rate+|+80\r\n(6/15/2015 6:01 PM) [LOG]: token+|+3vgxlv5DV53a6r7eKSwHVyRlnrVV6r5VSgAuU7nTlTuaRrw-VHzr9oPLukhtGHwQL7ayQ-Q2xl4mwd+a3xTY6w==\r\n(6/15/2015 6:01 PM) [LOG]: reason+|+login_rate\r\n(6/15/2015 6:01 PM) [LOG]: status+|+LOGIN\r\n(6/15/2015 6:01 PM) [LOG]: delay+|+5000\r\n(6/15/2015 6:01 PM) [LOG]: inGameCredentials+|+{\r\n  \"inGame\": false,\r\n  \"summonerId\": null,\r\n  \"serverIp\": null,\r\n  \"serverPort\": null,\r\n  \"encryptionKey\": null,\r\n  \"handshakeToken\": null\r\n}\r\n(6/15/2015 6:01 PM) [LOG]: user+|+163463679\r\n(6/15/2015 6:01 PM) [LOG]: gasToken+|+{\r\n  \"vouching_key_id\": \"ae226c904afe157360229b814d4e3749\",\r\n  \"gas_account_id\": \"163463679\",\r\n  \"signature\": \"ELuI12UdS8bk17fzmruVlk4coaO3Ya2HDkt/BqPL8NyEN02xV/G85Y/ratUwXJ6BiZA8inIaS29CUlSBa0WxYPi6V/bEXO6cMMU6YEzzk8EKL1spgPMLLegWzpyKgs8FoTyArY62inRv0iIe2kmg3hOFvuKEqbGA3cVxiYzbzBx4SQMZt3bG6Uh9H9CYSIphBB11M83QQEdeEiD7159qSbdeHQ+k0G2Bvvc72DRmpIDGEzAMCyvRu+4/3mEZVwofVshKdnKv/3AEfMMOkkCuPE7HumXpcwEroKV5A3v2YjMMJt5NedIBna9ehJVH7DDiIAgg98+XHboZ3AdB0De+OA==\",\r\n  \"summoner_name\": null,\r\n  \"date_time\": 1434362526998,\r\n  \"pvpnet_account_id\": 163463679\r\n}\r\n(6/15/2015 6:01 PM) [EXCEPTION]: A first chance exception was thrown\r\n(6/15/2015 6:01 PM) [EXCEPTION]: Value was either too large or too small for an Int32.\r\n(6/15/2015 6:01 PM) [EXCEPTION]:    at System.Convert.ToInt32(Double value)\r\n(6/15/2015 6:01 PM) [EXCEPTION]: A first chance exception was thrown\r\n(6/15/2015 6:01 PM) [EXCEPTION]: Thread was being aborted.\r\n(6/15/2015 6:01 PM) [EXCEPTION]:    at System.Threading.Thread.AbortInternal()\r\n   at System.Threading.Thread.Abort()\r\n(6/15/2015 6:01 PM) [EXCEPTION]: A first chance exception was thrown\r\n(6/15/2015 6:01 PM) [EXCEPTION]: A first chance exception was thrown\r\n(6/15/2015 6:01 PM) [EXCEPTION]: Thread was being aborted.\r\n(6/15/2015 6:01 PM) [EXCEPTION]: Thread was being aborted.\r\n(6/15/2015 6:01 PM) [EXCEPTION]:    at System.Threading.WaitHandle.WaitOneNative(SafeHandle waitableSafeHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)\r\n   at System.Threading.WaitHandle.InternalWaitOne(SafeHandle waitableSafeHandle, Int64 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)\r\n(6/15/2015 6:01 PM) [EXCEPTION]:    at RtmpSharp.Net.RtmpPacketReader.ReadLoop() in c:\\git\\LegendaryClient\\rtmp-sharp\\Net\\RtmpPacketReader.cs:line 104\r\n(6/15/2015 6:01 PM) [EXCEPTION]: A first chance exception was thrown\r\n(6/15/2015 6:01 PM) [EXCEPTION]: Thread was being aborted.\r\n(6/15/2015 6:01 PM) [EXCEPTION]:    at RtmpSharp.Net.RtmpPacketWriter.WriteLoop() in c:\\git\\LegendaryClient\\rtmp-sharp\\Net\\RtmpPacketWriter.cs:line 77\r\n```"},"comment":{"url":"https://api.github.com/repos/LegendaryClient/LegendaryClient/issues/comments/113762468","html_url":"https://github.com/LegendaryClient/LegendaryClient/issues/360#issuecomment-113762468","issue_url":"https://api.github.com/repos/LegendaryClient/LegendaryClient/issues/360","id":113762468,"user":{"login":"NitroXenon","id":7702985,"avatar_url":"https://avatars.githubusercontent.com/u/7702985?v=3","gravatar_id":"","url":"https://api.github.com/users/NitroXenon","html_url":"https://github.com/NitroXenon","followers_url":"https://api.github.com/users/NitroXenon/followers","following_url":"https://api.github.com/users/NitroXenon/following{/other_user}","gists_url":"https://api.github.com/users/NitroXenon/gists{/gist_id}","starred_url":"https://api.github.com/users/NitroXenon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NitroXenon/subscriptions","organizations_url":"https://api.github.com/users/NitroXenon/orgs","repos_url":"https://api.github.com/users/NitroXenon/repos","events_url":"https://api.github.com/users/NitroXenon/events{/privacy}","received_events_url":"https://api.github.com/users/NitroXenon/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T13:02:58Z","updated_at":"2015-06-20T13:02:58Z","body":"So I rewrote the ConvertObject  method to the following for testing :\r\n```\r\n        static object ConvertObject(Type sourceType, Type targetType, object value)\r\n        {\r\n            var converter = TypeDescriptor.GetConverter(sourceType);\r\n            if (converter.CanConvertTo(targetType))\r\n            {\r\n                if (targetType.Name == \"Int32\")\r\n                {\r\n                    object result = null;\r\n                    try\r\n                    {\r\n                        result = converter.ConvertTo(null, CultureInfo.InvariantCulture, value, targetType);\r\n                    }\r\n                    catch (System.OverflowException) \r\n                    {\r\n                        result = converter.ConvertTo(null, CultureInfo.InvariantCulture, value, typeof(Int64));\r\n                    }\r\n                    return result;\r\n                }\r\n                return converter.ConvertTo(null, CultureInfo.InvariantCulture, value, targetType);\r\n            }\r\n\r\n            return Convert.ChangeType(value, targetType, CultureInfo.InvariantCulture);\r\n        }\r\n```\r\n\r\nAfter that, I got another the OverflowException again...\r\n![exception5](https://cloud.githubusercontent.com/assets/7702985/8267347/ab69b21e-178f-11e5-9d7f-a2dfe6d1b61e.jpg)\r\n\r\nThe instance is {LegendaryClient.Logic.Riot.Platform.ChampionDTO}\r\nThe value is 1427631984000\r\n"}}