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

uespLog addon v2.90: uespLogPerformanceMeter.xml element mismatch #3

Open
draeath opened this issue Nov 17, 2021 · 0 comments
Open

Comments

@draeath
Copy link

draeath commented Nov 17, 2021

While digging into an unrelated issue with an addon, I noticed this in my interface logs:

Error loading XML[uespLogPerformanceMeter.xml(line 7)]: Error=XML_ERROR_MISMATCHED_ELEMENT ErrorID=14 (0xe) Line number=7: XMLElement name=Controls

There doesn't seem to be a closing tag for the <Controls> tag on line 7. However, inserting one at line 42 (between </OnInitialized> and </TopLevelControl> results in subsequent Lua errors:

Lua Error: Load[uespLogPerformanceMeter.xml(30)]: Invalid element [OnMoveStop].
Lua Error: Load[uespLogPerformanceMeter.xml(30)]: Invalid element [OnInitialized].
Lua Error: Load[uespLogPerformanceMeter.xml(13)] (Control): Illegal virtual control inside non-virtual control.

Putting it instead at 34 (between </Control> and <OnMoveStop>) results in the following instead:

Lua Error: Load[uespLogPerformanceMeter.xml(13)] (Control): Illegal virtual control inside non-virtual control.
Lua Error: /EsoUI/Libraries/Globals/GlobalVars.lua:47: attempt to index a nil value
  stack traceback:
  /EsoUI/Libraries/Globals/GlobalVars.lua:47: in function 'GetControl'
  <Locals> suffix = "Label" </Locals>
  /EsoUI/Ingame/Performance/PerformanceMeter.lua:33: in function 'PerformanceMeters:Initialize'
  <Locals> self = [table:1]{}, control = ud </Locals>
  /EsoUI/Ingame/Performance/PerformanceMeter.lua:26: in function 'PerformanceMeters:New'
  <Locals> self = [table:2]{__isAbstractClass = F}, container = [table:1] </Locals>
  /EsoUI/Ingame/Performance/PerformanceMeter.lua:183: in function 'ZO_PerformanceMeters_OnInitialized'
  <Locals> control = ud </Locals>
  UESP_PerformanceMeters_Initialized:3: in function '(main chunk)'
  <Locals> self = ud </Locals>

I believe this element mismatch was masking other problems, but I'm not familiar enough (read: at all) with ESO addon development beyond savedvariables.

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

No branches or pull requests

1 participant