Closed madness800 closed 8 months ago
I will have a test on this issue, and get back to you asap. Sorry for causing the crash.
Hi,
Sort of on the similar error as above it looks like the plugin is throwing unhandled exception when the key doesn't exists as it tries to track an item/currency that's not been selected?
Also, its always the 2 same key id are being thrown
2023-12-25 09:21:14.979 +00:00 [ERR] [AddonLifecycle] Exception in OnAddonFinalize during PreFinalize invoke.
System.Collections.Generic.KeyNotFoundException: The given key '35823' was not present in the dictionary.
at CurrencyTracker.Manager.Infos.CurrencyInfo.GetCurrencyAmount(UInt32 currencyID, TransactionFileCategory category, UInt64 ID) in /work/repo/CurrencyTracker/Manager/Infos/CurrencyInfo.cs:line 47
at CurrencyTracker.Manager.Trackers.Tracker.CheckCurrency(UInt32 currencyID, String locationName, String noteContent, RecordChangeType recordChangeType, UInt32 source, TransactionFileCategory category, UInt64 ID) in /work/repo/CurrencyTracker/Manager/Trackers/Tracker.cs:line 89
at CurrencyTracker.Manager.Trackers.Tracker.CheckCurrencies(IEnumerable`1 currencies, String locationName, String noteContent, RecordChangeType recordChangeType, UInt32 source, TransactionFileCategory category, UInt64 ID) in /work/repo/CurrencyTracker/Manager/Trackers/Tracker.cs:line 145
at CurrencyTracker.Manager.Trackers.Components.PremiumSaddleBag.OnPremiumSaddleBag(AddonEvent type, AddonArgs args) in /work/repo/CurrencyTracker/Manager/Trackers/Components/PremiumSaddleBag.cs:line 38
at Dalamud.Game.Addon.Lifecycle.AddonLifecycle.InvokeListenersSafely(AddonEvent eventType, AddonArgs args, String blame) in C:\goatsoft\companysecrets\dalamud\Game\Addon\Lifecycle\AddonLifecycle.cs:line 193
2023-12-25 09:21:14.987 +00:00 [INF] LASTEXCEPTION:eyJXaGVuIjoiMjAyMy0xMi0yNVQwOToyMToxNC45ODc0MDQrMDA6MDAiLCJJbmZvIjoiU3lzdGVtLkNvbGxlY3Rpb25zLkdlbmVyaWMuS2V5Tm90Rm91bmRFeGNlcHRpb246IFRoZSBnaXZlbiBrZXkgJzIwJyB3YXMgbm90IHByZXNlbnQ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xuICAgYXQgQ3VycmVuY3lUcmFja2VyLk1hbmFnZXIuVHJhY2tlcnMuQ29tcG9uZW50cy5TYWRkbGVCYWcuT25TYWRkbGVCYWcoQWRkb25FdmVudCB0eXBlLCBBZGRvbkFyZ3MgYXJncykgaW4gL3dvcmsvcmVwby9DdXJyZW5jeVRyYWNrZXIvTWFuYWdlci9UcmFja2Vycy9Db21wb25lbnRzL1NhZGRsZUJhZy5jczpsaW5lIDM5XHJcbiAgIGF0IERhbGFtdWQuR2FtZS5BZGRvbi5MaWZlY3ljbGUuQWRkb25MaWZlY3ljbGUuSW52b2tlTGlzdGVuZXJzU2FmZWx5KEFkZG9uRXZlbnQgZXZlbnRUeXBlLCBBZGRvbkFyZ3MgYXJncywgU3RyaW5nIGJsYW1lKSBpbiBDOlxcZ29hdHNvZnRcXGNvbXBhbnlzZWNyZXRzXFxkYWxhbXVkXFxHYW1lXFxBZGRvblxcTGlmZWN5Y2xlXFxBZGRvbkxpZmVjeWNsZS5jczpsaW5lIDE5MyIsIkNvbnRleHQiOiJbQWRkb25MaWZlY3ljbGVdIEV4Y2VwdGlvbiBpbiBPbkFkZG9uRmluYWxpemUgZHVyaW5nIFByZUZpbmFsaXplIGludm9rZS4ifQ==
2023-12-25 09:21:14.987 +00:00 [ERR] [AddonLifecycle] Exception in OnAddonFinalize during PreFinalize invoke.
System.Collections.Generic.KeyNotFoundException: The given key '20' was not present in the dictionary.
at CurrencyTracker.Manager.Infos.CurrencyInfo.GetCurrencyAmount(UInt32 currencyID, TransactionFileCategory category, UInt64 ID) in /work/repo/CurrencyTracker/Manager/Infos/CurrencyInfo.cs:line 47
at CurrencyTracker.Manager.Trackers.Tracker.CheckCurrency(UInt32 currencyID, String locationName, String noteContent, RecordChangeType recordChangeType, UInt32 source, TransactionFileCategory category, UInt64 ID) in /work/repo/CurrencyTracker/Manager/Trackers/Tracker.cs:line 89
at CurrencyTracker.Manager.Trackers.Tracker.CheckCurrencies(IEnumerable`1 currencies, String locationName, String noteContent, RecordChangeType recordChangeType, UInt32 source, TransactionFileCategory category, UInt64 ID) in /work/repo/CurrencyTracker/Manager/Trackers/Tracker.cs:line 145
at CurrencyTracker.Manager.Trackers.Components.SaddleBag.OnSaddleBag(AddonEvent type, AddonArgs args) in /work/repo/CurrencyTracker/Manager/Trackers/Components/SaddleBag.cs:line 39
at Dalamud.Game.Addon.Lifecycle.AddonLifecycle.InvokeListenersSafely(AddonEvent eventType, AddonArgs args, String blame) in C:\goatsoft\companysecrets\dalamud\Game\Addon\Lifecycle\AddonLifecycle.cs:line 193
The two issues you report will be fixed in the next update. Both of them resulted from the new service IGameInventory the plugin introduced not working in some specific cases in the last update.
Issue is appeared fixed with recent update
Hi,
Trading of any items will result in the plugin throwing unhandled exception in particularly if you are trading stacks of 999 with all the trade slot filled. This would renders the game to hang and ultimately dalamud just crash entirely.
The exception below is what written out into the log file, with the sheer number null reference exception is being thrown I guess the plugin is parsing each item (per stack) it see over the trade transaction?