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

QParallelAnimationGroup crash on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • 5.3.0 RC1
    • 5.2.1
    • QPA
    • None
    • Google Nexus 10, Android 4.2.2, QT Creator 3.0.1 on Windows 7 32bit, QT 5.2.1
    • Android

    Description

      Creating a QParallelAnimationGroup like the following in a QMainWindow:

      QDesktopWidget desktop;
      int horSpaceAvailable=desktop.geometry().width();
      int verSpaceAvailable=desktop.geometry().height();

      m_splashAnimation = new QPropertyAnimation(ui->splashWidget, "geometry");
      m_splashAnimation->setDuration(500);
      m_splashAnimation->setStartValue(QRect(0, 0, horSpaceAvailable, verSpaceAvailable));
      m_splashAnimation->setEndValue(QRect(horSpaceAvailable * (-1), 0, horSpaceAvailable, verSpaceAvailable));
      ui->splashWidget->setGeometry(QRect(0, 0, horSpaceAvailable, verSpaceAvailable));

      m_mainWidgetAnimation = new QPropertyAnimation(ui->mainWidget, "geometry");
      m_mainWidgetAnimation->setDuration(500);
      m_mainWidgetAnimation->setStartValue(QRect(horSpaceAvailable, 0, horSpaceAvailable, verSpaceAvailable));
      m_mainWidgetAnimation->setEndValue(QRect(0, 0, horSpaceAvailable, verSpaceAvailable));
      ui->mainWidget->setGeometry(QRect(horSpaceAvailable, 0, horSpaceAvailable, verSpaceAvailable));

      m_animationGroup = new QParallelAnimationGroup;
      m_animationGroup->addAnimation(m_splashAnimation);
      m_animationGroup->addAnimation(m_mainWidgetAnimation);

      results in most case (not always) in a app crash at startup. Attached you can find the Android Debug Monitor backtrace log.txt

      ui->splashWidget and ui->mainWidget are just two QWidget on the QMainWindow. The code snippet above is in my QMainWindow constructor

      Attachments

        1. CrashApp.zip
          7 kB
        2. log.txt
          24 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            andrea.bergamini Andrea Bergamini
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes