I have managed to reproduced "too many anchors processed" error with this code:
Lua Code:
local LAM = LibStub("LibAddonMenu-1.0")
StressTest = {}
local TotalRun = 470
local DROPDOWN_OPTIONS = {
"Option 1", "Option 2", "Option 3", "Option 4", "Option 5", "Option 6", "Option 7", "Option 8", "Option 9"
}
function StressTest.Init(eventCode, addOnName)
if (addOnName ~= "StressTest") then return end
local panel = LAM:CreateControlPanel( "_stresstest", "Stress Test")
for count = 1, TotalRun, 1 do
local headerName = "header" .. tostring(count)
local headerTitle = "Header " .. tostring(count)
local chkboxName = "checkbox" .. tostring(count)
local chkboxTitle = "Check Box " .. tostring(count)
local sliderName = "slider" .. tostring(count)
local sliderTitle = "Slider " .. tostring(count)
local dropdownName = "dropdown" .. tostring(count)
local dropdownTitle = "Drop Down " .. tostring(count)
LAM:AddHeader(panel, headerName, headerTitle)
LAM:AddCheckbox(panel, chkboxName, chkboxTitle, "", function() return true end, function() local value = true end)
LAM:AddSlider(panel, sliderName, sliderTitle, "", 0, 100, 1, function() return 50 end, function(value) local bin = value end)
LAM:AddDropdown(panel, dropdownName, dropdownTitle, "", DROPDOWN_OPTIONS, function() return 1 end, function(value) local bin = value end)
end
end
EVENT_MANAGER:RegisterForEvent("StressTest", EVENT_ADD_ON_LOADED, StressTest.Init)
TotalRun under 450 does not created the error. There's no other AddOns enable when I run this Stress Test. I'm not sure if LibAddonMenu is causing it, or could there be some kind of limit set by the game client? As there're more people using lots of AddOns at the same time, this error prone to happen, and should be some advise or some work around if they want to keep install the AddOns that ever exist.