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

QMacStyle crashes on Yosemite for sliders with minimum==maximum

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.4.0
    • QPA
    • None
    • OS X 10.10 Yosemite
    • macOS

    Description

      For example: Create new widget form in Qt Designer or Qt Creator, add a slider, set minimum and maximum value to 0.

      Exception Type:        EXC_ARITHMETIC (SIGFPE)
      Exception Codes:       EXC_I386_DIV (divide by zero)
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   org.qt-project.QtWidgets      	0x000000010353417c QMacStylePrivate::getSliderInfo(QStyle::ComplexControl, QStyleOptionSlider const*, HIThemeTrackDrawInfo*, QWidget const*) const + 460
      1   org.qt-project.QtWidgets      	0x0000000103545073 QMacStyle::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const + 403
      2   org.qt-project.QtWidgets      	0x00000001036d9a98 QSlider::paintEvent(QPaintEvent*) + 344
      3   org.qt-project.QtWidgets      	0x000000010359a4bb QWidget::event(QEvent*) + 2123
      4   org.qt-project.QtWidgets      	0x00000001036d9c18 QSlider::event(QEvent*) + 344
      5   org.qt-project.QtWidgets      	0x000000010355adbb QApplicationPrivate::notify_helper(QObject*, QEvent*) + 251
      6   org.qt-project.QtWidgets      	0x000000010355e110 QApplication::notify(QObject*, QEvent*) + 8192
      ...
      

      Clearly there is a division by (maximum-minimum) in that code for OS X 10.10 Yosemite

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              con Eike Ziller
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes