floh22 / LeagueBroadcast

League of Legends Spectate Overlay Tools
MIT License
220 stars 45 forks source link

[BUG] The given key 'Turret_[...]' was not present in the dictionary #301

Closed frafticekcz closed 1 year ago

frafticekcz commented 1 year ago

--- LeagueBroadcast Crash Report --- Still more stable than the League Client

Time: 2023.10.28-19:07 Description: The given key 'Turret_T2_L_03_A' was not present in the dictionary.

Stacktrace: at System.Collections.Generic.Dictionary2.get_Item(TKey key) at LeagueBroadcast.Ingame.Data.Provider.LiveEventsDataProvider.OnDamageDealt(LiveEvent e) in F:\Repos\LeagueOfLegends\LeagueBroadcast2\LeagueBroadcast\Ingame\Data\Provider\LiveEventsDataProvider.cs:line 267 at LeagueBroadcast.Ingame.Data.Provider.LiveEventsDataProvider.ReceiveLiveEvent(Object sender, LiveEvent e) in F:\Repos\LeagueOfLegends\LeagueBroadcast2\LeagueBroadcast\Ingame\Data\Provider\LiveEventsDataProvider.cs:line 233 at LeagueBroadcast.Trinket.LiveEventConnector.<Connect>b__9_0() in F:\Repos\LeagueOfLegends\LeagueBroadcast2\LeagueBroadcast.Trinket\LiveEventConnector.cs:line 87 at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state) at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi) at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action1 callback, TState& state) at System.Threading.QueueUserWorkItemCallback.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback()

-- System Details -- League Broadcast Version: 1.7.22.0 OS: Win 10 2009

sdomi4 commented 1 year ago

Seems to be related to turret plates; happens with different keys, presumably all turrets are affected:

sdomi4 commented 1 year ago

Correction, it's actually related to the OnDamageGiven Event (here); removing it from LiveEvents.ini should fix this; although there have been some reports that it still occurs afterwards.

@frafticekcz do you have OnDamageGiven in your LiveEvents.ini (located in the Config folder in your League folder)? If yes, does removing the line fix the issue?

neeemo commented 1 year ago

I removed ondamagegiven in the liveevents-ini and i still got a crash, even with the new offsets that you added 2 hours ago. Seems to be somewhat solved though, restarting the app with replay on seems to be working now.

Will report back if it further crashes during tonights tournament casts.