View Single Post
08-25-18, 09:40 AM   #19
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Originally Posted by MuffinManKen View Post
AutoBar doesn't use LibAbacus, so I'm not sure what's going on. I want to remove all of the Ace2 stuff anyway, but it'll be a big job. I have removed a fair bit.
There's nothing wrong with AutoBar here. I mentioned it because it was mentioned in Skillet's tickets. I made the AceLibrary connection from the LibAbacus code.

This is the offending code block in LibAbacus-3.0.lua causing the error between Skillet and Bagnon:

Lua Code:
  1. local function compat()
  2.     local Abacus20 = setmetatable({}, {__index = function(self, key) -- line 527
  3.         if type(Abacus[key]) == "function" then
  4.             self[key] = function(self, ...)
  5.                 return Abacus[key](Abacus, ...)
  6.             end
  7.         else
  8.             self[key] = Abacus[key]
  9.         end
  10.         return self[key] -- line 535
  11.     end})
  12.     AceLibrary:Register(Abacus20, "Abacus-2.0", MINOR_VERSION*1000)
  13. end
  14. if AceLibrary then
  15.     compat()
  16. elseif Rock then
  17.     function Abacus:OnLibraryLoad(major, instance)
  18.         if major == "AceLibrary" then
  19.             compat()
  20.         end
  21.     end
  22. end

AceLibrary just existing is what triggers the code, but we don't know why Bagnon causes the C stack overflow loop.

I have noted two lines with the original line numbers. The loop is between these two according to posted errors.

Last edited by Kanegasi : 08-25-18 at 11:14 AM.
  Reply With Quote