Attempt to find 'this' in non-framescript object?
I'm getting a really funky error with ncHoverBind when attempting to use it with a particular compilation (already notified the person who made it), and wondering if the compatibility issue is with ncHoverBind, or possibly theirs.
I'm well aware that 'this' was removed as a global variable a while back, and ncHoverBind doesn't even use 'this' to begin with. Here's the error... Code:
Message: Interface\AddOns\ncHoverBind\ncHoverBind.lua:247: Attempt to find 'this' in non-framescript object (246-257) Code:
local function register(val) Code:
local val = EnumerateFrames() |
That error is caused by non-frame tables whose metatable __index is a frame. You can fix it by making your frame check more robust:
Code:
if val.IsProtected |
Thanks for that, but still a no go. It just throws an error at the second code snippet I pasted in above.
Code:
Message: Interface\AddOns\ncHoverBind\ncHoverBind.lua:262: EnumerateFrames: Couldn't find 'this' in current object |
You need to also make sure you don't pass non-frame values back into EnumerateFrames. This is probably the easiest way to do it:
Code:
local function register(val) Code:
local val = EnumerateFrames() |
Even worse yet. Those changes cause the game client to crash.
|
Quote:
Try this with Phanx's other modification to register(): Code:
local val = EnumerateFrames() |
You just made friends with Blizzard's broken taintLog tracking, say "hi" :p
/console taintLog 0 and see if the error disappears. Edit: If you verify that the broken taint log mechanism is at fault you can workaround it by going through both your addons and finding any global frames that are unassigned local references and make sure they're assigned to a local variable. |
That mostly works. No errors, and the binding confirmation pops up. Though, the issue now, after testing it, is binding no longer works with any of these changes.
I've reverted all these changes, and I guess I'll just use a different bar mod rather than trying to get it to play nicely with SnailUI for now. |
Well, the best solution to the problem would really be to figure out which addon is screwing with frame metatables and get its author to fix the problem.
|
Quote:
Thanks for the help, and even though it didn't amount to a whole lot in the end run, you guys still rock. :) |
All times are GMT -6. The time now is 03:19 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI