jceddy / DailyArenaDeckAdvisor

A Deck Advisor companion App for Magic Arena.
GNU General Public License v3.0
18 stars 7 forks source link

Unhandled Exception in loadTask (Window_Loaded - Main Application) #252

Closed jceddy closed 3 years ago

jceddy commented 3 years ago

An unhandled exception was detected.

Exception:

System.AggregateException: One or more errors occurred. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary2.get_Item(TKey key) at DailyArena.Common.Core.Database.Card.CreateCard(Int32 arenaId, String name, String setName, String collectorNumber, String rarity, String colors, Int32 rank, String type, String cost, Int32 cmc, String scryfallId) at DailyArena.Common.Core.Database.CardDatabase.UpdateCardDatabase() at DailyArena.Common.Core.Database.CardDatabase.Initialize(Boolean useProtectedData) at DailyArena.DeckAdvisor.MainWindow.<Window_Loaded>b__94_0() at System.Threading.Tasks.Task.Execute() --- End of inner exception stack trace --- ---> (Inner Exception #0) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary2.get_Item(TKey key) at DailyArena.Common.Core.Database.Card.CreateCard(Int32 arenaId, String name, String setName, String collectorNumber, String rarity, String colors, Int32 rank, String type, String cost, Int32 cmc, String scryfallId) at DailyArena.Common.Core.Database.CardDatabase.UpdateCardDatabase() at DailyArena.Common.Core.Database.CardDatabase.Initialize(Boolean useProtectedData) at DailyArena.DeckAdvisor.MainWindow.b__94_0() at System.Threading.Tasks.Task.Execute()<---

log2021042320.txt

Player.log

gustanappo commented 3 years ago

Hey Joseph......how to solve it??

Please help!

KatieA414 commented 3 years ago

Is this just a very buggy app or is it Arena that is the buggy app. Got this error message when exploring the app and tapped rotation agnostic. Also not getting anything with Arena Standard selected. What gives? Please fix this. Kay

gustanappo commented 3 years ago

Is this just a very buggy app or is it Arena that is the buggy app. Got this error message when exploring the app and tapped rotation agnostic. Also not getting anything with Arena Standard selected. What gives? Please fix this. Kay

Hi Katie...same on me....got this bug after tapping Agnostic and also nothing on Arena Standard...

KatieA414 commented 3 years ago

Still broken Katie

dmb7000 commented 3 years ago

Is there a way to restore to an earlier version that doesn't trigger the exception?

jceddy commented 3 years ago

FYI: I am looking at this today and there seems to be an issue with the Arena Standard deck source causing this. Hopefully I can have a fix soon (though if I have to switch to a different source, this might take a while).

If the issue you are running into is the same one I found while debugging against the log files attached above, you can get it working by deleting the files in this location and restarting the application (though if you go to the Arena Standard tab with the Rotation Proof toggle on it will start crashing again): C:\Users\{User}\AppData\LocalLow\DailyArena\DailyArenaDeckAdvisor

jceddy commented 3 years ago

I made a server-side change that should fix this without requiring a new version of the application...can folks let me know whether it is working for them now?

jceddy commented 3 years ago

Closing for now.