Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.0
-
None
-
f2d647aa0a203e3598b37abcd69c65aec0d3ef21
Description
Tried running Qt-4.7.0/examples/widgets/styles/styles -graphicssystem opengl.
Styles starts up fine. You can choose between different styles work as expected. Pressing "Disable widgets" buttons work fine for every style except "Norwegian Wood". When this style is active, pressing the "Disable Widgets" button gives results in:
QGLShader::compile[ "Fragment shader: main=MainFragmentShader_M, srcPixel=TextureBrushSrcFragmentShader, composition=NoCompositionModeFragmentShader, mask=MaskFragmentShader" ]: "(18) : error C1038: declaration of "textureCoords" conflicts with previous declaration at (12)
"
Warning: "Fragment shader: main=MainFragmentShader_M, srcPixel=TextureBrushSrcFragmentShader, composition=NoCompositionModeFragmentShader, mask=MaskFragmentShader" failed to compile!
Program received signal SIGSEGV, Segmentation fault.
#0 0x422aa7f0 in QGLEngineShaderManager::useCorrectShaderProg (this=0x22d5d8) at gl2paintengineex/qglengineshadermanager.cpp:780
#1 0x422b79c4 in QGL2PaintEngineExPrivate::prepareForDraw (this=0x1c6680, srcPixelsAreOpaque=false) at gl2paintengineex/qpaintengineex_opengl2.cpp:1046
#2 0x422bb470 in QGL2PaintEngineExPrivate::drawCachedGlyphs (this=0x1c6680, glyphType=QFontEngineGlyphCache::Raster_A8, staticTextItem=0x8ed40a68, includeMatrixInCache=false) at gl2paintengineex/qpaintengineex_opengl2.cpp:1635
#3 0x422bb940 in QGL2PaintEngineEx::drawTextItem (this=0x1f62e8, p=..., textItem=...) at gl2paintengineex/qpaintengineex_opengl2.cpp:1397
#4 0x403f69ec in QPainter::drawTextItem (this=0x8ed46c90, p=..., _ti=...) at painting/qpainter.cpp:6444
#5 0x4059a198 in drawMenuText (p=0x8ed46c90, x=..., y=..., si=..., gf=..., eng=0x8ed41680, start=1, glyph_start=0) at text/qtextlayout.cpp:2022
#6 0x405a19c4 in QTextLine::draw (this=0x8ed43fa4, p=0x8ed46c90, pos=..., selection=0x0) at text/qtextlayout.cpp:2207
#7 0x403eac08 in qt_format_text (fnt=..., _r=..., tf=134217873, option=0x0, str=..., brect=0x0, tabstops=0, tabarraylen=0, painter=0x8ed46c90) at painting/qpainter.cpp:8003
#8 0x403eb45c in QPainter::drawText (this=0x8ed46c90, r=..., flags=129, str=..., br=0x0) at painting/qpainter.cpp:5995
#9 0x40689a88 in QStyle::drawItemText (this=0x197208, painter=0x8ed46c90, rect=..., alignment=129, pal=..., enabled=false, text=..., textRole=QPalette::ButtonText) at styles/qstyle.cpp:540
#10 0x406c020c in QCommonStyle::drawControl (this=0x197208, element=QStyle::CE_HeaderLabel, opt=0x8ed458ac, p=0x8ed46c90, widget=0x65760) at styles/qcommonstyle.cpp:1558
#11 0x407b3c94 in QMotifStyle::drawControl (this=0x197208, element=QStyle::CE_HeaderLabel, opt=0x8ed458ac, p=0x8ed46c90, widget=0x65760) at styles/qmotifstyle.cpp:1372
#12 0x0000df00 in NorwegianWoodStyle::drawControl (this=0x197208, element=QStyle::CE_HeaderLabel, option=0x8ed458ac, painter=0x8ed46c90, widget=0x65760) at norwegianwoodstyle.cpp:292
#13 0x406c4cc4 in QCommonStyle::drawControl (this=0x197208, element=QStyle::CE_Header, opt=0x8ed46ac8, p=0x8ed46c90, widget=0x65760) at styles/qcommonstyle.cpp:2062
#14 0x407b3c94 in QMotifStyle::drawControl (this=0x197208, element=QStyle::CE_Header, opt=0x8ed46ac8, p=0x8ed46c90, widget=0x65760) at styles/qmotifstyle.cpp:1372
#15 0x0000df00 in NorwegianWoodStyle::drawControl (this=0x197208, element=QStyle::CE_Header, option=0x8ed46ac8, painter=0x8ed46c90, widget=0x65760) at norwegianwoodstyle.cpp:292
#16 0x40a22d1c in QHeaderView::paintSection (this=0x65760, painter=0x8ed46c90, rect=..., logicalIndex=0) at itemviews/qheaderview.cpp:2516
#17 0x40a27ac0 in QHeaderView::paintEvent (this=0x65760, e=0x8ed47848) at itemviews/qheaderview.cpp:2112
#18 0x40218c98 in QWidget::event (this=0x65760, event=0x8ed47848) at kernel/qwidget.cpp:8230
#19 0x40837f48 in QFrame::event (this=0x65760, e=0x8ed47848) at widgets/qframe.cpp:557
#20 0x409198dc in QAbstractScrollArea::viewportEvent (this=0x65760, e=0x8ed47848) at widgets/qabstractscrollarea.cpp:1036
#21 0x40a11254 in QAbstractItemView::viewportEvent (this=0x65760, event=0x8ed47848) at itemviews/qabstractitemview.cpp:1615
#22 0x40a28a88 in QHeaderView::viewportEvent (this=0x65760, e=0x8ed47848) at itemviews/qheaderview.cpp:2417
#23 0x4091d394 in QAbstractScrollAreaPrivate::viewportEvent (this=0x6a1d0, event=0x8ed47848) at widgets/qabstractscrollarea_p.h:100
#24 0x4091d3ec in QAbstractScrollAreaFilter::eventFilter (this=0x7f2c8, o=0x65710, e=0x8ed47848) at widgets/qabstractscrollarea_p.h:116
#25 0x41082cbc in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x249f0, receiver=0x65710, event=0x8ed47848) at kernel/qcoreapplication.cpp:819
#26 0x40174a44 in QApplicationPrivate::notify_helper (this=0x249f0, receiver=0x65710, e=0x8ed47848) at kernel/qapplication.cpp:4332
#27 0x40178204 in QApplication::notify (this=0x8ed496b0, receiver=0x65710, e=0x8ed47848) at kernel/qapplication.cpp:4301
#28 0x41085b64 in QCoreApplication::notifyInternal (this=0x8ed496b0, receiver=0x65710, event=0x8ed47848) at kernel/qcoreapplication.cpp:704
#29 0x40191aec in QCoreApplication::sendSpontaneousEvent (receiver=0x65710, event=0x8ed47848) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#30 0x40214cf8 in QWidgetPrivate::drawWidget (this=0x68610, pdev=0x1f25bc, rgn=..., offset=..., flags=68, sharedPainter=0x0, backingStore=0x1f24c8) at kernel/qwidget.cpp:5313
#31 0x405253f0 in QWidgetBackingStore::sync (this=0x1f24c8) at painting/qbackingstore.cpp:1292
#32 0x4020ba54 in QWidgetPrivate::syncBackingStore (this=0x62188) at kernel/qwidget.cpp:1703
#33 0x40219318 in QWidget::event (this=0x8ed49634, event=0x8ed48324) at kernel/qwidget.cpp:8377
#34 0x40174a78 in QApplicationPrivate::notify_helper (this=0x249f0, receiver=0x8ed49634, e=0x8ed48324) at kernel/qapplication.cpp:4336
#35 0x40178204 in QApplication::notify (this=0x8ed496b0, receiver=0x8ed49634, e=0x8ed48324) at kernel/qapplication.cpp:4301
#36 0x41085b64 in QCoreApplication::notifyInternal (this=0x8ed496b0, receiver=0x8ed49634, event=0x8ed48324) at kernel/qcoreapplication.cpp:704
#37 0x40170320 in QCoreApplication::sendEvent (receiver=0x8ed49634, event=0x8ed48324) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#38 0x4051f384 in sendUpdateRequest (widget=0x8ed49634, updateImmediately=true) at painting/qbackingstore.cpp:507
#39 0x4051fad8 in QWidgetBackingStore::markDirty (this=0x1f24c8, rect=..., widget=0x630e0, updateImmediately=true, invalidateBuffer=false) at painting/qbackingstore.cpp:671
#40 0x40203474 in QWidget::repaint (this=0x630e0, rect=...) at kernel/qwidget.cpp:10120
#41 0x40203654 in QWidget::repaint (this=0x630e0) at kernel/qwidget.cpp:10076
#42 0x407bc2a0 in QAbstractButtonPrivate::click (this=0x63130) at widgets/qabstractbutton.cpp:534
#43 0x407bc72c in QAbstractButton::mouseReleaseEvent (this=0x630e0, e=0x8ed48dec) at widgets/qabstractbutton.cpp:1121
#44 0x40218410 in QWidget::event (this=0x630e0, event=0x8ed48dec) at kernel/qwidget.cpp:8084
#45 0x407ba8b8 in QAbstractButton::event (this=0x630e0, e=0x8ed48dec) at widgets/qabstractbutton.cpp:1080
#46 0x407e1e64 in QCheckBox::event (this=0x630e0, e=0x8ed48dec) at widgets/qcheckbox.cpp:385
#47 0x40174a78 in QApplicationPrivate::notify_helper (this=0x249f0, receiver=0x630e0, e=0x8ed48dec) at kernel/qapplication.cpp:4336
#48 0x40176094 in QApplication::notify (this=0x8ed496b0, receiver=0x630e0, e=0x8ed48dec) at kernel/qapplication.cpp:3901
#49 0x41085b64 in QCoreApplication::notifyInternal (this=0x8ed496b0, receiver=0x630e0, event=0x8ed48dec) at kernel/qcoreapplication.cpp:704
#50 0x40191aec in QCoreApplication::sendSpontaneousEvent (receiver=0x630e0, event=0x8ed48dec) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#51 0x4017da4c in QApplicationPrivate::sendMouseEvent (receiver=0x630e0, event=0x8ed48dec, alienWidget=0x630e0, nativeWidget=0x8ed49634, buttonDown=0x40e63c88, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2999
#52 0x40269718 in QETWidget::translateMouseEvent (this=0x8ed49634, event=0x8ed493c8) at kernel/qapplication_x11.cpp:4404
#53 0x4026ab28 in QApplication::x11ProcessEvent (this=0x8ed496b0, event=0x8ed493c8) at kernel/qapplication_x11.cpp:3415
#54 0x402ad8fc in x11EventSourceDispatch (s=0x28d08, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#55 0x414e5c48 in g_main_dispatch (context=0x2) at gmain.c:2012
#56 IA__g_main_context_dispatch (context=0x2) at gmain.c:2564
#57 0x414e8d7c in g_main_context_iterate (context=0x27e80, block=1, dispatch=1092618196, self=<value optimized out>) at gmain.c:2645
#58 0x414e8f00 in IA__g_main_context_iteration (context=0x27e80, may_block=1) at gmain.c:2708
#59 0x410d8ae8 in QEventDispatcherGlib::processEvents (this=0x265a0, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#60 0x402acca4 in QGuiEventDispatcherGlib::processEvents (this=0x265a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#61 0x410809c8 in QEventLoop::processEvents (this=0x8ed495ec, flags=...) at kernel/qeventloop.cpp:149
#62 0x41080cb8 in QEventLoop::exec (this=0x8ed495ec, flags=...) at kernel/qeventloop.cpp:201
#63 0x41086888 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#64 0x40178240 in QApplication::exec () at kernel/qapplication.cpp:3615
#65 0x0000d7ac in main (argc=1, argv=0x8ed49814) at main.cpp:53
Attachments
Issue Links
- depends on
-
QTBUG-9069 Split vertex shader into 3 stages, adding a "transform" stage
- Closed
- resulted in
-
QTBUG-10262 Fix text rendering with texture brushes properly in the GL2 engine
- Closed