Exception Encountered
See original GitHub issue[01:23:30] (ERROR) Error: System.InvalidCastException: Unable to cast object of type 'LiteDB.EmptyPage' to type 'LiteDB.HeaderPage'. at LiteDB.PageService.GetPage[T](UInt32 pageID, Boolean setDirty) at LiteDB.TransactionService.Save() at LiteDB.TransactionService.Complete(LiteTransaction trans) at LiteDB.LiteTransaction.Commit() at LiteDB.DbEngine.WriteTransaction[T](String colName, Boolean addIfNotExists, Func2 action) at LiteDB.LiteCollection1.Delete(Query query) at PoGo.NecroBot.Logic.State.SessionStats.CleanOutExpiredStats() in C:\Users\VAPORSS\Documents\NecroBot\PoGo.NecroBot.Logic\State\SessionStats.cs:line 198 at PoGo.NecroBot.Logic.State.SessionStats.CatchThresholdExceeds(ISession session, Boolean printMessage) in C:\Users\VAPORSS\Documents\NecroBot\PoGo.NecroBot.Logic\State\SessionStats.cs:line 84 at PoGo.NecroBot.Logic.Tasks.MSniperServiceTask.CheckSnipeConditions(ISession session) in C:\Users\VAPORSS\Documents\NecroBot\PoGo.NecroBot.Logic\Tasks\MSniperServiceTask.cs:line 298 at PoGo.NecroBot.Logic.Tasks.MSniperServiceTask.d__42.MoveNext() in C:\Users\VAPORSS\Documents\NecroBot\PoGo.NecroBot.Logic\Tasks\MSniperServiceTask.cs:line 786
NecroBot-Private/NecroBot#1390
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top GitHub Comments
Hi @EuanKirkhope, it´s a know bug in concurrency environment. I´m fixing this in current v3.5 dev branch… I’m releasing in beta version soon
Hi @Lord-Haji, this bugs was found in another version but seams back in lasts version. It’s occurs in some cases only when running in concurrency. It’s on my plans made more tests to catch this.