Menu

#644 TitanPanelGetVar() returning nil values

Resolved
nobody
None
2011-02-05
2010-11-27
Anonymous
No

Originally created by: ascot...@gmail.com

What version of Titan Panel are you using and on what operating system?
5.0.1.40000, Win 7

What steps will reproduce the problem?
1.Log in with MoveAnything enabled.

Now, I know what you are thinking, that this is a problem with MoveAnything and not an issue with Titan, but the issue is caused by TitanPanelGetVar("Scale") returning nil. Here is the error:

1x Usage: Titan_Bar__Display_Bar2:SetScale(scale):
<in C code>: ?
<in C code>: in function `SetScale'
Titan-5.0.1.40000\TitanPanel.lua:2364: in function `TitanPanel_SetScale'
Titan-5.0.1.40000\TitanMovable.lua:422: in function `Titan_AdjustScale'
Titan-5.0.1.40000\TitanMovable.lua:401: in function <Titan\TitanMovable.lua:399>
(tail call): ?:
<in C code>: in function `Hide'
Interface\FrameXML\UIParent.lua:1451: in function `SetUIPanel':
Interface\FrameXML\UIParent.lua:1478: in function `MoveUIPanel':
Interface\FrameXML\UIParent.lua:1509: in function `HideUIPanel':
Interface\FrameXML\UIParent.lua:1202: in function r<Interface\FrameXML\UIParent.lua:1194>:
<in C code>: in function `SetAttribute'
Interface\FrameXML\UIParent.lua:1894: in function <Interface\FrameXML\UIParent.lua:1881>:
<in C code>: in function `HideUIPanel'
MoveAnything-11.4.5\MoveAnything.lua:5009: in function `ApplyPosition'
MoveAnything-11.4.5\MoveAnything.lua:4733: in function `ApplyAll'
MoveAnything-11.4.5\MoveAnything.lua:1632: in function `_IntSyncFrame'
MoveAnything-11.4.5\MoveAnything.lua:1583: in function <MoveAnything\MoveAnything.lua:1582>
<in C code>: in function `xpcall'
MoveAnything-11.4.5\MoveAnything.lua:1582: in function `SyncFrames'
MoveAnything-11.4.5\MoveAnything.lua:1545: in function `SyncAllFrames'
MoveAnything-11.4.5\MoveAnything.lua:6650: in function <MoveAnything\MoveAnything.lua:6585>

Locals:
(*temporary) = Titan_Bar__Display_Bar2 {
0 = <userdata>
}
(*temporary) = nil

When I change line 2360 to:
local scale = TitanPanelGetVar("Scale") or 1;
the first error is fixed, but I get a new error:

1x Titan-5.0.1.40000\TitanPanel.lua:1939: attempt to concatenate a nil value
Titan-5.0.1.40000\TitanMovable.lua:428: in function `Titan_AdjustScale'
Titan-5.0.1.40000\TitanMovable.lua:401: in function <Titan\TitanMovable.lua:399>
(tail call): ?:
<in C code>: in function `Hide'
Interface\FrameXML\UIParent.lua:1451: in function `SetUIPanel':
Interface\FrameXML\UIParent.lua:1478: in function `MoveUIPanel':
Interface\FrameXML\UIParent.lua:1509: in function `HideUIPanel':
Interface\FrameXML\UIParent.lua:1202: in function <Interface\FrameXML\UIParent.lua:1194>:
<in C code>: in function `SetAttribute'
Interface\FrameXML\UIParent.lua:1894: in function <Interface\FrameXML\UIParent.lua:1881>:
<in C code>: in function `HideUIPanel'
MoveAnything-11.4.5\MoveAnything.lua:5009: in function `ApplyPosition'
MoveAnything-11.4.5\MoveAnything.lua:4733: in function `ApplyAll'
MoveAnything-11.4.5\MoveAnything.lua:1632: in function `_IntSyncFrame'
MoveAnything-11.4.5\MoveAnything.lua:1583: in function <MoveAnything\MoveAnything.lua:1582>
<in C code>: in function `xpcall'
MoveAnything-11.4.5\MoveAnything.lua:1582: in function `SyncFrames'
MoveAnything-11.4.5\MoveAnything.lua:1545: in function `SyncAllFrames'
MoveAnything-11.4.5\MoveAnything.lua:6650: in function <MoveAnything\MoveAnything.lua:6585>

Locals:
(for generator) = <function> defined =[C]:-1
(for state) = <table> {
Titan_Bar__Display_Bar2 = <table> {}
Titan_Bar__Display_AuxBar2 = <table> {}
Titan_Bar__Display_AuxBar = <table> {}
Titan_Bar__Display_Bar = <table> {}
}
(for control) = "Titan_Bar__Display_Bar2"
idx = "Titan_Bar__Display_Bar2"
v = <table> {
show = <table> {}
hider = "Titan_Bar__Hider_Bar2"
name = "Bar2"
vert = "Top"
order = 2
plugin_y_offset = 1
auto_hide_plugin = "TitanPanelAutoHide_Bar2Button"
hide = <table> {}
}

Caused by TitanPanelGetVar("TexturePath") returning nil. Again, the error is triggered by a Titan function returning nil. Adding a line at 1939:
if not (TitanPanelGetVar("TexturePath")) then return end
fixes the problem with no adverse effects that I have found so far because the function is called again later with TitanPanelGetVar("TexturePath") returning correct values.

I do not have any Titan frames being modified by MoveAnything; a search of my MoveAnything saved variables for "titan" does not bring up anything.

Related

Wiki: Titan_Panel_Version_History

Discussion

  • Anonymous

    Anonymous - 2010-11-27

    Originally posted by: Honor...@gmail.com

    (No comment was entered for this change.)

    Status: Pending

     
  • Anonymous

    Anonymous - 2010-11-28

    Originally posted by: urn...@gmail.com

    What version of MoveAnything are you using?
    When does this happen? logging in? /reload?
    Did this start happening with 5.0.0?

     
  • Anonymous

    Anonymous - 2010-12-15

    Originally posted by: ichup...@gmail.com

    I can confirm this happens. Happens everytime I log in to a character (error screen pops up) or reload ui.
    I have not changed anything with MoveAnything relating to TitanPanel (don't really need to).

     
  • Anonymous

    Anonymous - 2010-12-20

    Originally posted by: urn...@gmail.com

    I do not see this issue but I am making some changes that I believe will help.

    Status: Testing

     
  • Anonymous

    Anonymous - 2011-01-31

    Originally posted by: urn...@gmail.com

    (No comment was entered for this change.)

    Status: Fixed

     
  • Anonymous

    Anonymous - 2011-02-05

    Originally posted by: Honor...@gmail.com

    Released with version 5.0.2.

    Status: Resolved

     

Log in to post a comment.