Groupie

Groupie

49k Downloads

Groupie/GroupBrowser.lua:740: attempt to index field '_categoryActivities' (a nil value)

LasterOfDesaster opened this issue · 5 comments

commented

I have Groupie installed but I rarely use it cause for several weeks or even months now it does not open the Groupie window but instead throws the error

1x Groupie/GroupBrowser.lua:740: attempt to index field '_categoryActivities' (a nil value)

in BugGrabber addon. Installing different versions from Curseforge does not resolve the issue. I am using english language client if that is important.

The full stacktrace:

1x Groupie/GroupBrowser.lua:740: attempt to index field '_categoryActivities' (a nil value)
[string "@Groupie/GroupBrowser.lua"]:740: in function `GetActivitiesFor'
[string "@Groupie/GroupBrowser.lua"]:592: in function `AttachLFGToolPreset'
[string "@Groupie/Core.lua"]:1113: in function <Groupie/Core.lua:1108>
[string "@Groupie/Core.lua"]:1744: in function `OnClick'
[string "@Groupie/Libs/LibDBIconGroupie-1.0-44/LibDBIconGroupie-1.0.lua"]:144: in function <...e/Libs/LibDBIconGroupie-1.0/LibDBIconGroupie-1.0.lua:142>

Locals:
self = <table> {
 populatePresets = <function> defined @Groupie/GroupBrowser.lua:649
 _activityMap = <table> {
 }
 EnableModule = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:328
 modules = <table> {
 }
 CancelTimer = <function> defined @DataStore/libs/AceTimer-3.0/AceTimer-3.0.lua:147
 IterateEmbeds = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:438
 SecureHookScript = <function> defined @ElvUI_Libraries/Core/Ace3/AceHook-3.0/AceHook-3.0.lua:409
 _playerMapLookup = <table> {
 }
 RawHookScript = <function> defined @ElvUI_Libraries/Core/Ace3/AceHook-3.0/AceHook-3.0.lua:394
 SetDefaultModulePrototype = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:405
 clearCombatQueue = <function> defined @Groupie/GroupBrowser.lua:559
 defaultModuleState = true
 IsEnabled = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:447
 ScheduleTimer = <function> defined @DataStore/libs/AceTimer-3.0/AceTimer-3.0.lua:94
 DisableModule = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:346
 RegisterMessage = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 UnregisterMessage = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:143
 hooks = <table> {
 }
 AttachLFGToolPreset = <function> defined @Groupie/GroupBrowser.lua:583
 SetEnabledState = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:420
 Hook = <function> defined @ElvUI_Libraries/Core/Ace3/AceHook-3.0/AceHook-3.0.lua:273
 enabledState = true
 RegisterEvent = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:80
 GetResult = <function> defined @Groupie/GroupBrowser.lua:798
 IterateModules = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:433
 RawHook = <function> defined @ElvUI_Libraries/Core/Ace3/AceHook-3.0/AceHook-3.0.lua:312
 groupCombat = <function> defined @Groupie/GroupBrowser.lua:549
 Enable = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:290
 UnregisterAllEvents = <function> defined @DataStore/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:164
 LOADING_SCREEN_DISABLED = <function> defined @Groupie/GroupBrowser.lua:778
 FindInstanceData = <function> defined @Groupie/GroupBrowser.lua:684
 TimeLeft = <function> defined @DataStore/libs/AceTimer-3.0/AceTimer-3.0.lua:172
 ScheduleRepeatingTimer = <function> defined @DataStore/libs/AceTimer-3.0/AceTimer-3.0.lua:129
 CancelAllTimers = <function> defined @DataStore/libs/AceTimer-3.0/AceTimer-3.0.lua:160
 enableHardwareEvents = <function> defined @Groupie/GroupBrowser.lua:603
 GetName = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:275
 name = "Groupie_GroupieGroupBrowser"
 LFG_LIST_SEARCH_FAILED = <function> defined @Groupie/GroupBrowser.lua:783
 orderedModules = <table> {
 }
 Disable = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:310
 baseName = "Groupie"
 MapResultToListing = <function> defined @Groupie/GroupBrowser.lua:952
 Unhook = <function> defined @ElvUI_Libraries/Core/Ace3/AceHook-3.0/AceHook-3.0.lua:417
 SetDefaultModuleLibraries = <function> defined @DataStore/libs/AceAddon-3.0/AceAddon-3.0.lua:363
 Search = <function> defined @Groupie/GroupBrowser.lua:870
 _categoryMap = <table> {
 }
 Queue = <function> defined @Groupie/GroupBrowser.lua:822
 CreateMsg = <function> defined @Groupie/GroupBrowser.lua:901
 IsModule = <function> defined
commented

After Blizzard put RDF in the game, the module needs a complete rewrite.
I'm not using it as much nowadays so haven't had the motivation.

If you want it for the chat parsing capabilities you could probably comment out the GroupBrowser.lua module in the .toc and it should load without errors.

ie open Groupie.toc in a text editor and put a hash in front like this
#GroupBrowser.lua

commented

No actually it needs a couple more edits in core.lua (just tested)
core.lua line 1132 make it look like this

local GroupieGroupBrowser = Groupie:GetModule("GroupieGroupBrowser",true)

same for line 3224

And it should let you comment out or delete the GroupBrowser.lua reference from the .toc so addon works as a chat parser.

commented

Hi @Road-block!

Finally had time to test your suggestions. Sadly I have to say there did not solve my problem bc now I get a error message

Groupie/Core.lua:1133: attempt to index upvalue 'GroupieFrame' (a nil value)
cause the variable 'GroupieGroupBrowser' isn't used later and 'GroupieFrame' is never created.

When I swap out the variablename 'GroupieGroupBrowser' for 'GroupieFrame' I get this error

Groupie/Core.lua:1133: attempt to call method 'Hide' (a nil value)
image

Sidenote: You listed line 3224 as the second place where I have to make the same adjustment. This line is responsible for creating the string version of the addon version. I scrolled around and found line 3195 which would fit the context more
image

commented

I don't think you're editing the latest files. (the code I see in your screenshots is at the wrong places anyway, so there's a mismatch somewhere)

I'll try to find a little time to push the edits to the repo here so you can download an alpha.
They absolutely work if applied correctly. By work I mean remove the broken Blizzard GroupBrowser integration so Groupie can work as a chat parser collecting ads from /lookingforgroup channel etc.