encratite / RiotControl

An elaborate statistics tracking system for League of Legends. It used to be a centralised PostgreSQL based system but now it's a stand-alone SQLite application. It was written in C# and makes use of the LibOfLegends RTMP library. It is licensed under the terms of the GPLv3. Unfortunately I stopped working on it in 2013-08. Check out the website for a longer explanation.
http://riot.cont.ro.lt/
GNU General Public License v3.0
33 stars 15 forks source link

Clicking "view games" generates an exception with Mono #41

Closed encratite closed 12 years ago

encratite commented 12 years ago

From Uhkis on Arch Linux with RiotShield. Appears to happen consistently.

An exception of type System.InvalidCastException occurred at RiotGear: Unable to cast object of type 'System.Int64' to type 'System.String'.                    
RiotGear.DatabaseReader.String () [0x00028] in e:\Code\C#\RiotControl\RiotGear\Database\DatabaseReader.cs:72     
RiotGear.Player..ctor (RiotGear.DatabaseReader reader) [0x000d4] in e:\Code\C#\RiotControl\RiotGear\Database\Player.cs:201
RiotGear.ExtendedPlayer..ctor (RiotGear.DatabaseReader reader) [0x00000] in e:\Code\C#\RiotControl\RiotGear\Database\ExtendedPlayer.cs:36
RiotGear.WebService.GetSummonerGames (RiotGear.Summoner summoner, System.Data.Common.DbConnection connection) [0x00045] in e:\Code\C#\RiotControl\RiotGear\WebService\Database.cs:147
RiotGear.WebService.ApiSummonerGames (Blighttp.Request request) [0x0005d] in e:\Code\C#\RiotControl\RiotGear\WebService\Handler.cs:129
Blighttp.Handler.ProcessRequest (Blighttp.Request request) [0x00000] in :0                    
Blighttp.Handler.RouteRequest (Blighttp.Request request, System.Collections.Generic.List1 remainingPath) [0x00000] in :0      
Blighttp.Handler.RouteRequest (Blighttp.Request request, System.Collections.Generic.List1 remainingPath) [0x00000] in :0          
Blighttp.WebServer.HandleRequest (Blighttp.Request request) [0x00000] in :0

This is caused by a difference in SQLite drivers. Mono's SQLite driver does currently not support arrays.

encratite commented 12 years ago

Fixed in https://github.com/epicvrvs/RiotControl/commit/87c18d9ba5788f7552ad181310442423af3866f8