Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-1717

StringWrap feature for FadeLabels can cause a Render Exception

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.2.0 Beta
    • 1.1.1
    • Skin Engine
    • 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);
      }

      Attachments

        Activity

          People

            SilentException Mitja Skuver (Inactive)
            ltfearme ltfearme (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: