WeakAuras

WeakAuras

200M Downloads

Crash on login

ikamikaz3 opened this issue ยท 4 comments

commented

Is there an existing issue for this?

  • I have searched the existing open and closed issues.

Description

The Addon instantly crashs on login

Here is my savedVariables file :
https://filetransfer.io/data-package/dAJHtIUY#link

WeakAuras Version

WeakAuras 5.13.2

World of Warcraft Flavor

Classic Era

World of Warcraft Region

EU

Tested with only WeakAuras

I got this issue with only WeakAuras enabled

Lua Error

5x WeakAuras/GenericTrigger.lua:3289: attempt to compare number with nil
[string "@WeakAuras/GenericTrigger.lua"]:3289: in function `WatchItemCooldown'
[string "@WeakAuras/Prototypes.lua"]:5733: in function `loadFunc'
[string "@WeakAuras/GenericTrigger.lua"]:1330: in function <WeakAuras/GenericTrigger.lua:1289>
[string "@WeakAuras/GenericTrigger.lua"]:1383: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:2023: in function `LoadDisplays'
[string "@WeakAuras/WeakAuras.lua"]:1805: in function <WeakAuras/WeakAuras.lua:1649>
[string "@WeakAuras/WeakAuras.lua"]:2000: in function `Resume'
[string "@WeakAuras/WeakAuras.lua"]:1273: in function <WeakAuras/WeakAuras.lua:1232>

[string "@WeakAuras/WeakAuras.lua"]:1391: in function <WeakAuras/WeakAuras.lua:1339>

Locals:
self = Frame {
 0 = <userdata>
}
event = "PLAYER_LOGIN"
addon = nil
dbIsValid = true
takeNewSnapshots = nil
ADDON_NAME = "WeakAuras"
db = <table> {
 dynamicIconCache = <table> {
 }
 editor_tab_spaces = 4
 displays = <table> {
 }
 registered = <table> {
 }
 editor_font_size = 12
 lastArchiveClear = 1694366849
 minimap = <table> {
 }
 lastUpgrade = 1712771389
 dbVersion = 73
 migrationCutoff = 730
 features = <table> {
 }
 login_squelch_time = 10
 historyCutoff = 730
 editor_theme = "Monokai"
}
Private = <table> {
 HandleGlowAction = <function> defined @WeakAuras/WeakAuras.lua:3621
 frame_strata_types = <table> {
 }
 DisplayToString = <function> defined @WeakAuras/Transmission.lua:357
 combat_event_type = <table> {
 }
 regions = <table> {
 }
 frameLevels = <table> {
 }
 CheckItemSlotCooldowns = <function> defined @WeakAuras/GenericTrigger.lua:3105
 InitializeEncounterAndZoneLists = <function> defined @WeakAuras/Types_Vanilla.lua:12
 IsEnvironmentInitialized = <function> defined @WeakAuras/AuraEnvironment.lua:200
 form_types = <table> {
 }
 CleanArchive = <function> defined @WeakAuras/History.lua:25
 UpdateProgressFrom = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:567
 RunConditions = <function> defined @WeakAuras/Conditions.lua:841
 tooltip_count = <table> {
 }
 SmoothStatusBarMixin = <table> {
 }
 pet_spec_types = <table> {
 }
 regionOptions = <table> {
 }
 get_zoneId_list = <function> defined @WeakAuras/Types_Vanilla.lua:164
 checkForSingleLoadCondition = <function> defined @WeakAuras/Prototypes.lua:1242
 author_option_classes = <table> {
 }
 grid_types = <table> {
 }
 regionTypes = <table> {
 }
 absorb_modes = <table> {
 }
 combatlog_spell_school_types_for_ui = <table> {
 }
 miss_types = <table> {
 }
 CancelDelayedTrigger = <function> defined @WeakAuras/GenericTrigger.lua:923
 centered_types_h = <table> {
 }
 ensurePRDFrame = <function> defined @WeakAuras/WeakAuras.lua:5430
 talent_types = <table> {
 }
 LoadFunction = <function> defined @WeakAuras/AuraEnvironment.lua:652
 reset_swing_spells = <table> {
 }
 spec_types_all = <table> {
 }
 player_target_events = <table> {
 }
 FinishLoadUnload = <function> defined @WeakAuras/WeakAuras.lua:2069
 subRegionTypes = <table> {
 }
 UnregisterAllEveryFrameUpdate = <function> defined @WeakAuras/GenericTrigger.lua:1850
 array_entry_name_types = <table> {
 }
 combatlog_spell_school_types = <table> {
 }
 StringToTable = <function> defined @WeakAuras/Transmission.lua:301
 RegisterLoadEvents = <function> defined @WeakAuras/WeakAuras.lua:1915
 GetReputationsSorted = <function> defined @WeakAuras/Types.lua:1672
 blend_types = <table> {
 }
 text_automatic_width = <table> {
 }
 EnforceSubregionExists = <function> defined @WeakAuras/RegionTypes/RegionPrototype.lua:1125
 CheckSpellCooldown = <function> defined @WeakAuras/GenericTrigger.lua:2973
 custom_trigger_types = <table> {
 }
 group_types = <table> {
 }
 subRegionOptions = <table> {
 }
 GetProgressValueConstant = <function> defined @WeakAuras/WeakAuras.lua:3932
 text_rotate_types = <table> {
 }
 spec_types = <table> {
 }
 anim_ease_types = <table> {
 }
 item_slot_types = <table> {
 }
 multiUnitUnits = <table> {
 }
 anim_color_types = <table> {
 }
 loaded = <table> {
 }
 Convert = <function> defined @WeakAuras/WeakAuras.lua:2286
 sound_channel_types = <table> {
 }
 CheckCooldownReady = <function> defined @WeakAuras/GenericTrigger.lua:3163
 event_prototypes = <table> {
 }
 NeedToRepairDatabase = <function> defined @WeakAuras/WeakAuras.lua:2363
 AtlasList = <table> {
 }
 StopProfileSystem = <function> defined @WeakAuras/Init.lua:563
 classification_types = <table> {
 }
 GetReputationsHeaders = <function> d

Reproduction Steps

  1. Login
  2. See error
  3. Cannot open config with /wa
  4. Some of my auras are partially loaded

Last Good Version

No response

Screenshots

image

Export String

No response

Bisector Report

No response

commented

Need response from reporter.

commented

Gonna test when I come home,

I purged my savedVariables and re-imported most of my auras, for now I don't have the issue either.

Thank you for your time.

commented

I tried reproduce the error on my mage on SoD using your data but i don't get any error

Error in WeakAuras.WatchItemCooldown means either duration is nil, or WeakAuras.gcdDuration() is nil

I tried this with your data but nothing show

for id, data in pairs(WeakAurasSaved.displays) do
   if data.triggers then
      for _, trigger in ipairs(data.triggers) do
         local t = trigger.trigger
         if t and t.event == "Cooldown Progress (Item)" then
            local start, duration, enabled = C_Container.GetItemCooldown(t.itemName)
            if duration == nil then
               print(id, duration)
            end
         end
      end
   end
end

WeakAuras.gcdDuration can't return nil

Could you replace WeakAuras/GenericTrigger.lua with the file in this archive, then report what is printed in chat?
It should show "DURATION IS NIL xxxxx" or "gcdDuration IS NIL xxxxx"

GenericTrigger.zip

commented

I also can't reproduce any error on simply logging on.