EDIT: I had tried to open the saved variable file before to see what was in it, why it was getting so large but notepad++ always crashed. I got lucky this time & was able to open it & see what was getting saved in the scripts table.
Which now knowing what was in there I was able to find the problem.
This function calls ZO_ScrollList_CreateDataEntry
Lua Code:
function Click4Info:UpdateScrollList(sourceTable)
...
-- which calls:
local entry = ZO_ScrollList_CreateDataEntry(ROW_TYPE_ID, rowData, 1)
...
end
Which causes some recursion here copying data into itself, data.dataEntry.data = data
Which I guess is ok for items in the game
? not sure why or what the purpose of that is ? but since the data object I was passing in was a table inside the saved variable file it was doing that recursion in the saved variable file saving data inside its self infinitely.
Lua Code:
function ZO_ScrollList_CreateDataEntry(typeId, data, categoryId)
local entry =
{
typeId = typeId,
categoryId = categoryId,
data = data,
}
data.dataEntry = entry
return entry
end
Saved Variable file scripts table: