Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix attempt to call method 'SetPoint' (a nil value) on load #16

Closed
SabreValkyrn opened this issue Dec 25, 2021 · 2 comments
Closed

Fix attempt to call method 'SetPoint' (a nil value) on load #16

SabreValkyrn opened this issue Dec 25, 2021 · 2 comments

Comments

@SabreValkyrn
Copy link
Member

Message: Interface\FrameXML\PlayerFrame.lua:330: attempt to call method 'SetPoint' (a nil value)
Time: Sat Dec 25 14:34:31 2021
Count: 1
Stack: Interface\FrameXML\PlayerFrame.lua:330: attempt to call method 'SetPoint' (a nil value)
[string "@Interface\FrameXML\PlayerFrame.lua"]:330: in function `PlayerFrame_ToPlayerArt'
[string "@Interface\FrameXML\PlayerFrame.lua"]:152: in function <Interface\FrameXML\PlayerFrame.lua:134>

Locals: self = PlayerFrame {
 0 = <userdata>
 statusCounter = 0
 portrait = PlayerPortrait {
 }
 manabar = PlayerFrameManaBar {
 }
 statusSign = -1
 unit = "player"
 inSequence = false
 state = "player"
 name = PlayerName {
 }
 feedbackText = PlayerHitIndicator {
 }
 isAnimatedOut = false
 menu = <function> defined @Interface\FrameXML\PlayerFrame.lua:47
 feedbackFontHeight = 30
 healthbar = PlayerFrameHealthBar {
 }
}
(temporary) = nil
(temporary) = "REDACT"
(temporary) = "CENTER"
(temporary) = 50
(temporary) = 19
(temporary) = "attempt to call method 'SetPoint' (a nil value)"
@SabreValkyrn
Copy link
Member Author

Removing GUI related Ace options didn't change this behavior.

I locally removed AceComm lib and logic as well, still erroring.

@SabreValkyrn
Copy link
Member Author

Somehow this was caused by PlayerGUID and PlayerName being global variables. 17d9c61#diff-8e12ced70ffe478a33e70f3b9109b65d33e2835d1a9895cad7b99734411a36c7L6-L7

Moved to class variables and error went away. 17d9c61#diff-8e12ced70ffe478a33e70f3b9109b65d33e2835d1a9895cad7b99734411a36c7R30-R31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant