Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-2048

QtQuick Application using Video element and movie from QRC crashes or causes mutex dead lock.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.2.x
    • Multimedia
    • None
    • Mac OS X 10.5/10.6/10.7.
      Qt 4.7.x/4.8.x.

      Scenario.
      There is a number of videos embedded in resources (QRC). Playing the first movie works fine. Switching to the next movie causes a crash. From the crash report you can see this is after trying to access a method of QResource. Having investigated the issue, it turned out that in the sources of the qt7 plugin the 'resource' object is deleted, by the pointer is not reset to 0.

      Resetting the pointer to 0 helped to solve the crash. However switching to the next movie causes the application to 'freeze'. Having it run in gdb, you can see that there is a dead lock. Investigating the issue and using google led me to the 'setMovie: nil' message. Calling this in certain places might cause problems like the one described. Commenting out the line with this message solves the problem.

      A patch is attached.

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

            Unassigned Unassigned
            adrian5632 Adrian Lubik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes