Charmed Quark Systems, Ltd. - Support Forums and Community
Template errors after upgrade to 4.8.3 - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: Installation/Configuration (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=10)
+--- Thread: Template errors after upgrade to 4.8.3 (/showthread.php?tid=9915)



Template errors after upgrade to 4.8.3 - avtexan - 08-13-2016

I upgraded to 4.8.3 tonight and I am getting this error when I try and open several of my templates in the viewer.

Interface template '\User\WHAudio\WHAudio_Base_Template' could not be loaded. Reason=The value written to variable GVar:CoolSliderValue exceeds the set variable limits

I am using this GVar in my Aprilaire 887 V1 templates. Interestingly I am not getting any errors when I open the Aprilaire template or when I use the cool slider.

I am little rusty so any help will be appreciated.

Below is how I use it.


[OnPress]
CoolSliderValueMaster::SetText(%(StdRTV:CurValue))
CoolSliderValueMaster::SetWidgetState(Normal)

[OnRelease]
GlobalVars::SetVariable(GVar:CoolSliderValueMaster, %(StdRTV:CurValue))

[OnDrag]
CoolSliderValueMaster::SetText(%(StdRTV:CurValue))

[OnSet]


Template errors after upgrade to 4.8.3 - Dean Roddey - 08-13-2016

Somewhere presumably you are doing a CreateVariable to create that cool slider value variable and setting some limits on it? Is that the case? If so, I would guess that the value in StdRTV:CurValue is outside of that range.

Bring up the action trace window and make it happen and you can see the values of all of that stuff expanded out and see what is really going on.


Template errors after upgrade to 4.8.3 - avtexan - 08-13-2016

Below is the trace. I can't find where GVar:CoolSliderValue is being created.

I am curious why I was not getting this error on 4.5.14

----------------------------------------------------------
TRC: Start Action

Global Vars=
GVar:WHAudioPartySource=
GVar:WHAudioZone=
GVar:WHAudioArea=
GVar:SourceSelected=

CMD: 001. (253356ms) - Main_Overlay::LoadOverlay
P1=\User\WHAudio\WHAudio_Base_Template

----------------------------------------------------------
TRC: Start Action

Global Vars=
GVar:WHAudioPartySource=
GVar:WHAudioZone=
GVar:WHAudioArea=
GVar:SourceSelected=

CMD: 001. (21ms) - GlobalVars::SafeCreateVariable
P1=GVar:WHAudioArea
P2=String
P3=
P4=

CMD: 003. (0us) - GlobalVars::SafeCreateVariable
P1=GVar:WHAudioZone
P2=String
P3=
P4=

CMD: 005. (0us) - GlobalVars::SafeCreateVariable
P1=GVar:WHAudioPartySource
P2=String
P3=
P4=

TRC: End Action [Result=Success]
----------------------------------------------------------
TRC: Start Action

Global Vars=
GVar:WHAudioPartySource=
GVar:WHAudioZone=
GVar:WHAudioArea=
GVar:SourceSelected=

CMD: 001. (0us) - If Not GlobalVars::Exists
P1=GVar:CoolSliderValue

CMD: 002. (0us) - GlobalVars::CreateVariable
P1=GVar:CoolSliderValue
P2=Boolean
P3=
P4=70

TRC: End Action [Result=Failure]


Template errors after upgrade to 4.8.3 - Dean Roddey - 08-13-2016

It's the very last command in the list above. You are setting the type to Boolean, but using it as a number and setting the initial value to 70. You should set it to a numeric type.

It's happening in the context of the first command which is loading an initial template into an overlay presumably on the base template.

You didn't get it before because it was an error that this incorrect usage wasn't being caught. That was later fixed so now it catches it.


Template errors after upgrade to 4.8.3 - avtexan - 08-13-2016

I found it! Thanks for the 2:00am customer service Dean!

Everything else seems OK. I had a little scare with my lighting but an on / off cycle of the Lutron processor solved the issue.

So hopefully I can make some headway changing my Aprilaire to V2.

I have had issues with the tstats locking up and then the A/C will stay in its last state (on or off) until I cycle the power for them.

Could V2 help or is this a Aprilaire issue?