Neuron

Neuron

98.2k Downloads

Error when making new profile or switching to another if i don't reload right away

elphyne opened this issue ยท 1 comments

commented

if i create a new profile or switch to a different profile and i don't hit the restart button within a few seconds of doing so i get an error report which keeps triggering until i restart it. this happens even when i clear my wtf folder and i only had neuron and bugsack and buggrabber addons installed. this happens even if i just start with the default character-server profile and switch to the default profile with nothing yet on the bars themselves

the error message i get is

306x Neuron\Neuron-Flyouts.lua:1514: attempt to compare nil with number
Neuron\Neuron-Flyouts.lua:1514: in function `updateAnchors'
Neuron\Neuron-Flyouts.lua:78: in function <Neuron\Neuron-Flyouts.lua:78>

Locals:
self =

{
SetDefaultModuleLibraries = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:398
EnableModule = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:363
modules =
{
}
baseName = "Neuron"
IterateEmbeds = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:473
SecureHook = defined @neuron\Libs\AceHook-3.0\AceHook-3.0.lua:336
Flyout_GetBar = defined @neuron\Neuron-Flyouts.lua:1365
Anchor_RemoveChild = defined @neuron\Neuron-Flyouts.lua:1422
RawHookScript = defined @neuron\Libs\AceHook-3.0\AceHook-3.0.lua:395
linkScanOnUpdate = defined @neuron\Neuron-Flyouts.lua:1532
COMPANION_LEARNED = defined @neuron\Neuron-Flyouts.lua:236
defaultModuleState = true
IsEnabled = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:482
DisableModule = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:381
SPELLS_CHANGED = defined @neuron\Neuron-Flyouts.lua:197
RegisterMessage = defined @BugSack\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:118
UnregisterMessage = defined @BugSack\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:181
Flyout_SetData = defined @neuron\Neuron-Flyouts.lua:1223
hooks =
{
}
Flyout_GetButton = defined @neuron\Neuron-Flyouts.lua:1271
TOYS_UPDATED = defined @neuron\Neuron-Flyouts.lua:299
SetEnabledState = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:455
Hook = defined @neuron\Libs\AceHook-3.0\AceHook-3.0.lua:274
enabledState = true
RegisterEvent = defined @BugSack\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:118
updateAnchors = defined @neuron\Neuron-Flyouts.lua:1506
filter_mount = defined @neuron\Neuron-Flyouts.lua:587
IterateModules = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:468
RawHook = defined @neuron\Libs\AceHook-3.0\AceHook-3.0.lua:313
CHARACTER_POINTS_CHANGED = defined @neuron\Neuron-Flyouts.lua:210
OnInitialize = defined @neuron\Neuron-Flyouts.lua:64
UnregisterAllEvents = defined @BugSack\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:202
Flyout_RemoveButtons = defined @neuron\Neuron-Flyouts.lua:1140
GetModule = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:241
PLAYER_EQUIPMENT_CHANGED = defined @neuron\Neuron-Flyouts.lua:285
defaultModuleLibraries =
{
}
ANCHOR_DelayedUpdate = defined @neuron\Neuron-Flyouts.lua:1595
filter_pet = defined @neuron\Neuron-Flyouts.lua:701
OnEnable = defined @neuron\Neuron-Flyouts.lua:100
timerFrame_OnUpdate = defined @neuron\Neuron-Flyouts.lua:314
GetBlizzData = defined @neuron\Neuron-Flyouts.lua:811
Flyout_ReleaseBar = defined @neuron\Neuron-Flyouts.lua:1350
EQUIPMENT_SETS_CHANGED = defined @neuron\Neuron-Flyouts.lua:263
GetName = defined @neuron\Libs\AceAddon-3.0\AceAddon-3.0.lua:310
PLAYER_INVENTORY_CHANGED = defined @neuron\Neuron-Flyouts.lua:164
Flyout_ReleaseButton = defined @neuron\Neuron-Flyouts.lua:1198
SecureHookScript = defined @neuron\Libs\AceHook-3.0\AceHook-3.0.lua:410
name = "Neuron_Flyouts"
Flyout_RemoveBar = de

commented

I can't replicate this, but I added some logic to return gracefully if button doesn't exist during that in-between stage