It is currently March 28th, 2024, 8:27 pm

2.5 beta - Formula: Internal Error in keys with calculations

Report bugs with the Rainmeter application and suggest features.
User avatar
iNjUST
Posts: 117
Joined: June 20th, 2012, 12:44 am

2.5 beta - Formula: Internal Error in keys with calculations

Post by iNjUST »

Ever since the switch to VC++ 2012 in Rainmeter 2.5 beta, there are a LOT of calculation errors in my skins, primarily those using StartAngle calculations in a Roundline and Rotator meters, but also in other contexts, and as a result, many skins do not display correctly. This wasn't an issue in previous versions (2.4), or even prior to the 2.5 r1748 version when the change was made.

Example of one of the 100s of error that get spit into the log every second:

Code: Select all

Formula: Internal error in key "StartAngle" in [HourHand]
And the corresponding meter code:

Code: Select all

[sClock]
W=(#ClockRad#*2)
H=(#ClockRad#*2)
StartAngle=(-PI/2)
RotationAngle=(2*PI)
Antialias=1
DynamicVariables=1

[HourHand]
MeasureName=mTime
Meter=ROTATOR
MeterStyle=sClock
X=(#SkinRad#-#size#*#ClockRad#)
Y=(#SkinRad#-#size#*#ClockRad#)
ImageName=#@#shadow-hand-h.png
ImageTint=#color1#
OffsetX=48
OffsetY=16
ValueRemainder=43200

This also occurs with just normal calculations, for example:

Code: Select all

Formula: Internal error: (-(72*1)*0.97)
Any idea what's the issue here? I've had several other people write me comments on some of my skins uploaded to deviantArt with what sounds like the same problem, and all of them I've just told to go back to 2.4 Final.
User avatar
spx
Developer
Posts: 686
Joined: August 15th, 2009, 2:41 pm
Location: Osaka, JPN

Re: 2.5 beta - Formula: Internal Error in keys with calculat

Post by spx »

Thank you for your report.
It appears VS2012 has no relation with this issue, but some changes to MathParser about "-" handling since r1728 may cause it. I think poiru will take a look and fix it. :)
User avatar
iNjUST
Posts: 117
Joined: June 20th, 2012, 12:44 am

Re: 2.5 beta - Formula: Internal Error in keys with calculat

Post by iNjUST »

Thank you for your quick response! I guess I had assumed the change in program library which occurred in the same revision as the minus-sign modification was the cause, but that makes sense too.
User avatar
spx
Developer
Posts: 686
Joined: August 15th, 2009, 2:41 pm
Location: Osaka, JPN

Re: 2.5 beta - Formula: Internal Error in keys with calculat

Post by spx »

This will be fixed in the next beta.