Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-53937

AnimatedSprite source change causes infinite loop in QQuickSpriteEngine::assembledImage()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.1
    • Fix Version/s: 5.6.2
    • Labels:
      None
    • Commits:
      b61c774ce58d15bfc26a2a75b55e3f5eefbcdcc2

      Description

      Steps to reproduce the issue:

      • Extract the attached file (animatedSpriteInfiniteLoop.zip) and run it with "qmlscene animatedSpriteInfiniteLoop.qml"
      • Click on it.

      Outcome:
      The process enters into an infinited loop inside QQuickSpriteEngine::assembledImage(). More speficically inside "while (framesLeft > 0)

      {...}

      " as framesLeft is never decremented because "copied/frameWidth" in the expression "framesLeft -= copied/frameWidth;" always resolves to zero because copied < frameWidth.

      Comments:
      Got a simple fix in the works.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              dandrader Daniel d'Andrada
              Reporter:
              dandrader Daniel d'Andrada
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes