Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.1.1
-
None
-
Operating System: Windows 7
Platform: Intel
Description
There is a bug in MediaPortal 1.1.x with the StringWrap feature of FadeLabels. Its possible that a render exception: system.ArgumentOutOfRangeException can occur.
Now, the bug was fixed in MediaPortal 1.2 by ajp's branch merge. This bug I believe is timing related and can occur when the length of the label is less than length of the wrap string. It's mainly been seen by users with the infoservice plugin installed which uses an rss ticker on most skins home screen.
h4. Steps to Reproduce
N/A Timing related so diffulcult to have a list of reproducible steps.
h4. Additional Information
Propose that checking the length of the label is greater than or equals to the wrapstring:
if (labelControl.Label.Length - _wrapString.Length >= 0)
{
labelControl.Label = labelControl.Label.Substring(0, labelControl.Label.Length - _wrapString.Length);
}
Now, the bug was fixed in MediaPortal 1.2 by ajp's branch merge. This bug I believe is timing related and can occur when the length of the label is less than length of the wrap string. It's mainly been seen by users with the infoservice plugin installed which uses an rss ticker on most skins home screen.
h4. Steps to Reproduce
N/A Timing related so diffulcult to have a list of reproducible steps.
h4. Additional Information
Propose that checking the length of the label is greater than or equals to the wrapstring:
if (labelControl.Label.Length - _wrapString.Length >= 0)
{
labelControl.Label = labelControl.Label.Substring(0, labelControl.Label.Length - _wrapString.Length);
}