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

Application hangs in QDashStroker::processCurrentSubpath

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.2, 5.12.2
    • Fix Version/s: 5.9.9, 5.12.4, 5.14.0 Alpha
    • Component/s: GUI: Painting
    • Labels:
      None
    • Commits:
      8f8267f00bfa0d1716e38358ecc0fafff1d9df14 (qt/qtbase/5.12) f184f8780fef920006cf71e38b1477fe975bc3b1 (qt/qtbase/5.9)

      Description

      My application hangs unreproducibly in QDashStroker::processCurrentSubpath

      I managed to capture a stacktrace and stepped through the code to dump the pattern of lines that are repeated in the code. See attachments.

      The particular backtrace was captured on a Fedora 21 system, however, I experienced similar hangs (without the possibility to debug them) on an Ubuntu 12.04 machine (with Qt 5.4 installed).

      Edit:
      As described below, I've narrowed down the problem: Drawing a Qt::DashLine with 1.5 width to a point with an "Infinity" in its coordinates causes the hang. See qt-qstroker-bug.tar.bz2 for a MWE.

        Attachments

        1. qt_stroker_backtrace.txt
          7 kB
          Andreas Stöckel
        2. qt_stroker_data_vis.png
          127 kB
          Andreas Stöckel
        3. qt_stroker_data.txt
          19 kB
          Andreas Stöckel
        4. qt_stroker_pattern.txt
          1 kB
          Andreas Stöckel
        5. qt-qstroker-bug.tar.bz2
          1 kB
          Andreas Stöckel
        For Gerrit Dashboard: QTBUG-47887
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            vgt Eirik Aavitsland
            Reporter:
            astoecke Andreas Stöckel
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes