Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 3.4.2
-
None
-
Windows 10 x64
Qt Creator from msys2 (mingw-w64 x86_64) Based on Qt 5.5.0 (GCC 5.1.0, 64 bit)
Description
There are different ways to reproduce this bug, this seems to be the most simple.
1. Open a project and a source file
3. Try to minimize/maximize the window a few times
4. Segmentation fault
I attached the full backtrace (gdb.txt). Here is main thread where segfault occurs:
#0 0x0000000001438560 in QRasterPaintEngine::penChanged() () from e:\msys64\mingw64\bin\Qt5Gui.dll #1 0x000000000144c9e7 in QPainter::setPen(QColor const&) () from e:\msys64\mingw64\bin\Qt5Gui.dll #2 0x0000000000d8aaa3 in QCommonStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const () from e:\msys64\mingw64\bin\Qt5Widgets.dll #3 0x0000000000de6b0d in QProxyStyle::layoutSpacing(QSizePolicy::ControlType, QSizePolicy::ControlType, Qt::Orientation, QStyleOption const*, QWidget const*) const () from e:\msys64\mingw64\bin\Qt5Widgets.dll #4 0x0000000000dda02d in QProxyStyle::layoutSpacing(QSizePolicy::ControlType, QSizePolicy::ControlType, Qt::Orientation, QStyleOption const*, QWidget const*) const () from e:\msys64\mingw64\bin\Qt5Widgets.dll #5 0x0000000000dca913 in QProxyStyle::layoutSpacing(QSizePolicy::ControlType, QSizePolicy::ControlType, Qt::Orientation, QStyleOption const*, QWidget const*) const () from e:\msys64\mingw64\bin\Qt5Widgets.dll #6 0x000000006d8b2d1b in ManhattanStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const () from E:\msys64\mingw64\lib\qtcreator\plugins\Core.dll #7 0x0000000000fbda54 in QStyledItemDelegate::paint(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () from e:\msys64\mingw64\bin\Qt5Widgets.dll #8 0x0000000000f67e8c in QListView::paintEvent(QPaintEvent*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #9 0x0000000000d5b2e8 in QWidget::event(QEvent*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #10 0x0000000000e431be in QFrame::event(QEvent*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #11 0x0000000000f50351 in QAbstractItemView::viewportEvent(QEvent*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #12 0x00000000668ca1b0 in QCoreApplicationPrivate::createEventDispatcher() () from e:\msys64\mingw64\bin\Qt5Core.dll #13 0x0000000000d1aa58 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #14 0x0000000000d1fcf0 in QApplication::notify(QObject*, QEvent*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #15 0x00000000668caaac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from e:\msys64\mingw64\bin\Qt5Core.dll #16 0x0000000000d539fc in QWidgetPrivate::sendPaintEvent(QRegion const&) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #17 0x0000000000d53f3d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #18 0x0000000000d54cc6 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #19 0x0000000000d53b65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #20 0x0000000000d54cc6 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #21 0x0000000000d54bba in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #22 0x0000000000d53b65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #23 0x0000000000d54cc6 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #24 0x0000000000d53b65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #25 0x0000000000d54cc6 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #26 0x0000000000d54bba in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #27 0x0000000000d53b65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #28 0x0000000000d54cc6 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #29 0x0000000000d53b65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #30 0x0000000000d54cc6 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #31 0x0000000000d54bba in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #32 0x0000000000d53b65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #33 0x0000000000d54cc6 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #34 0x0000000000d53b65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #35 0x0000000000d54cc6 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #36 0x0000000000d54bba in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #37 0x0000000000d53b65 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #38 0x0000000000d269a7 in QWidgetPrivate::repaint_sys(QRegion const&) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #39 0x0000000000d26b85 in QWidgetPrivate::repaint_sys(QRegion const&) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #40 0x0000000000d431d4 in QWidgetPrivate::syncBackingStore() () from e:\msys64\mingw64\bin\Qt5Widgets.dll #41 0x0000000000d71e80 in QDesktopWidget::qt_metacall(QMetaObject::Call, int, void**) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #42 0x0000000000d74c80 in QDesktopWidget::qt_metacall(QMetaObject::Call, int, void**) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #43 0x0000000000d1aa7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #44 0x0000000000d1fcf0 in QApplication::notify(QObject*, QEvent*) () from e:\msys64\mingw64\bin\Qt5Widgets.dll #45 0x00000000668caaac in QCoreApplication::notifyInternal(QObject*, QEvent*) () from e:\msys64\mingw64\bin\Qt5Core.dll #46 0x00000000012bd89e in QGuiApplicationPrivate::processGeometryChangeEvent(QWindowSystemInterfacePrivate::GeometryChangeEvent*) () from e:\msys64\mingw64\bin\Qt5Gui.dll #47 0x00000000012c29a5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from e:\msys64\mingw64\bin\Qt5Gui.dll #48 0x00000000012adb27 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from e:\msys64\mingw64\bin\Qt5Gui.dll #49 0x0000000066913c27 in QEventDispatcherWin32Private::sendTimerEvent(int) () from e:\msys64\mingw64\bin\Qt5Core.dll #50 0x00007ffee70600dc in USER32!DispatchMessageW () from C:\Windows\system32\user32.dll #51 0x00007ffee705fc07 in USER32!DispatchMessageW () from C:\Windows\system32\user32.dll #52 0x0000000066913594 in QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from e:\msys64\mingw64\bin\Qt5Core.dll #53 0x000000006dce5ebf in ?? () from E:\msys64\mingw64\share\qt5\plugins\platforms\qwindows.dll #54 0x00000000668c9ce1 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from e:\msys64\mingw64\bin\Qt5Core.dll #55 0x00000000668cffd7 in QCoreApplication::exec() () from e:\msys64\mingw64\bin\Qt5Core.dll #56 0x00000000004080e2 in ?? () #57 0x000000000040a226 in ?? () #58 0x00000000004013ed in ?? () #59 0x00000000004014fb in ?? () #60 0x00007ffee6b82d92 in KERNEL32!BaseThreadInitThunk () from C:\Windows\system32\kernel32.dll #61 0x00007ffee8fc9f64 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll #62 0x0000000000000000 in ?? ()
- FIle system view
- Happens with all styles
- Unrelated to WelcomeScreen/QQuickWidget
- Happens only with source file, not for plain text (seems to involve 2 item views)
Attachments
Issue Links
- duplicates
-
QTBUG-48823 Windows: tst_qfiledialog crash (completer_up())/widgets based dialog.
- Closed
For Gerrit Dashboard: QTCREATORBUG-14888 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
149682,3 | QRasterPaintEngine::penChanged(): Assert on painter state. | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
149683,1 | QWidgetEffectSourcePrivate::pixmap(): Check on QPaintDevice. | 5.6 | qt/qtbase | Status: ABANDONED | 0 | 0 |
149868,3 | Windows QPA: Bail out message proc in calls to SHGetFileInfo(). | 5.6 | qt/qtbase | Status: ABANDONED | +1 | 0 |
149900,11 | QWindowsTheme: Run SHGetFileInfo() in a thread. | 5.6 | qt/qtbase | Status: MERGED | -2 | 0 |