Farming Bar

Farming Bar

63.7k Downloads

Error running FarmingBar (no bars, lots of errors)

ryuzoku opened this issue ยท 9 comments

commented

[1] Latest update [FarmingBar-v3.6.2-beta-wrath] started giving me these errors on log in.
[2] I only get the first anchor and nothing else.
[3] If I mouseover it I get more errors and a message saying that my game is experiencing a large amount of errors.
I included the first 3 new errors.
[4] Addons I've attempted to disable to find the problem:

  • Accountant Classic
  • Bartender 4
  • BartrubySummonPet
  • Details
  • ExtendedCharacterStats
  • *FarmingBar

I had no more LUA errors when I turned off FarmingBar.

[1]

Message: Interface\AddOns\FarmingBar\Database\Database-v5.lua:36: bad argument #1 to 'pairs' (table expected, got nil)
Time: Mon Oct 24 18:32:35 2022
Count: 1
Stack: Interface\AddOns\FarmingBar\Database\Database-v5.lua:36: bad argument #1 to 'pairs' (table expected, got nil)
[string "=[C]"]: in function `pairs'
[string "@Interface\AddOns\FarmingBar\Database\Database-v5.lua"]:36: in function `ConvertDB_V5'
[string "@Interface\AddOns\FarmingBar\Database\Database.lua"]:640: in function `InitializeDatabase'
[string "@Interface\AddOns\FarmingBar\FarmingBar.lua"]:33: in function <Interface\AddOns\FarmingBar\FarmingBar.lua:31>
[string "=[C]"]: ?
[string "@Interface\AddOns\Accountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:70: in function <...ccountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@Interface\AddOns\Accountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:498: in function `InitializeAddon'
[string "@Interface\AddOns\Accountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:623: in function <...ccountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua:615>

Locals: <none>
Message: Interface\AddOns\FarmingBar\Widgets\Bar.lua:290: attempt to index field 'ObjectiveFrame' (a nil value)
Time: Mon Oct 24 18:32:46 2022
Count: 1
Stack: Interface\AddOns\FarmingBar\Widgets\Bar.lua:290: attempt to index field 'ObjectiveFrame' (a nil value)
[string "=(tail call)"]: ?
[string "@Interface\AddOns\FarmingBar\Widgets\Bar.lua"]:290: in function `SetMouseover'
[string "@Interface\AddOns\FarmingBar\Widgets\Bar.lua"]:377: in function `Update'
[string "@Interface\AddOns\FarmingBar\Widgets\Bar.lua"]:284: in function `SetID'
[string "@Interface\AddOns\FarmingBar\Modules\Bars.lua"]:92: in function `InitializeBars'
[string "@Interface\AddOns\FarmingBar\FarmingBar.lua"]:20: in function <Interface\AddOns\FarmingBar\FarmingBar.lua:14>
[string "=[C]"]: ?
[string "@Interface\AddOns\Accountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:70: in function <...ccountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@Interface\AddOns\Accountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:527: in function `EnableAddon'
[string "@Interface\AddOns\Accountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua"]:630: in function <...ccountant_Classic\Libs\AceAddon-3.0\AceAddon-3.0.lua:615>

Locals: <none>

[2]

image

[3]

Message: Interface\AddOns\FarmingBar\Widgets\Button.lua:228: attempt to index local 'bar' (a nil value)
Time: Mon Oct 24 18:35:04 2022
Count: 12
Stack: Interface\AddOns\FarmingBar\Widgets\Button.lua:228: attempt to index local 'bar' (a nil value)
[string "=[C]"]: ?
[string "@Interface\AddOns\FarmingBar\Widgets\Button.lua"]:228: in function <Interface\AddOns\FarmingBar\Widgets\Button.lua:219>

Locals: 

This one has a quick stacking count

Message: ...face\AddOns\FarmingBar\Modules\Tooltips/Tooltips.lua:51: attempt to index local 'tooltip' (a nil value)
Time: Mon Oct 24 18:41:34 2022
Count: 30582
Stack: ...face\AddOns\FarmingBar\Modules\Tooltips/Tooltips.lua:51: attempt to index local 'tooltip' (a nil value)
[string "=[C]"]: ?
[string "@Interface\AddOns\FarmingBar\Modules\Tooltips/Tooltips.lua"]:51: in function `LoadTooltip'
[string "@Interface\AddOns\FarmingBar\Widgets\Button.lua"]:222: in function <Interface\AddOns\FarmingBar\Widgets\Button.lua:221>
[string "@Interface\AddOns\Accountant_Classic\Libs\AceHook-3.0\AceHook-3.0.lua"]:92: in function <...\Accountant_Classic\Libs\AceHook-3.0\AceHook-3.0.lua:87>

Locals: 
Message: ...face\AddOns\FarmingBar\Modules\Tooltips/Tooltips.lua:7: attempt to index local 'tooltip' (a nil value)
Time: Mon Oct 24 18:35:04 2022
Count: 12
Stack: ...face\AddOns\FarmingBar\Modules\Tooltips/Tooltips.lua:7: attempt to index local 'tooltip' (a nil value)
[string "=[C]"]: ?
[string "@Interface\AddOns\FarmingBar\Modules\Tooltips/Tooltips.lua"]:7: in function `ClearTooltip'
[string "@Interface\AddOns\FarmingBar\Widgets\Button.lua"]:242: in function <Interface\AddOns\FarmingBar\Widgets\Button.lua:241>

Locals: 
commented

Yessirreebob's Saved Variables.FarmingBar.lua.txt

I had to send it as a txt file to get it on here. Just remove the txt extension. Hope this helps.

commented

Try v3.6.3 and let me know if this solves the problem.

commented

alrighty ...

commented

Ok, the errors have stopped and I see totals now on the tooltip. Let me run some tests and see how it goes.

commented

Ok, here's what changes I would make. I see in the tooltip you have:

a (b/c) [d]

I'd like a = total tracker goals completed, b = total items in my inventory, c = tracker goal. For me, d isn't necessary. What you have above for 'count' and 'goal' takes care of the overall goal that's listed in the top left of the button. So putting it a (b/c) per tracker as I have it listed in my preferences would be perfect.

commented

Try v3.6.3 and let me know if this solves the problem.

Seems to have done the trick, thank you! <3

commented

Well, seems like it still has an issue.
It doesnt error, but it wont leave the item I put on the bar. If I put some Frostweave cloth or a useable item like a Core of Malice on a bar, it immediately picks it back up.

image

commented

Yea the only way I can put an item in is to click the mouse's 4th button to release it.

commented

This is a side effect of an error from Dragonflight beta. I've reverted the change that's causing the issue in the latest release.