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

Use of dynamically loaded fonts can crash on mac

XMLWordPrintable

    • macOS
    • c76f9f15d1c604cdf3d68d2147a4a06d227871fa

      The attached example crashes on mac when the internet font is loaded.

      #0  0x00000001018d4706 in QLinkedList<QFontEngine::GlyphCacheEntry>::constBegin (this=0x103c58b20) at qlinkedlist.h:179
      #1  0x00000001018d05c6 in QFontEngine::glyphCache (this=0x103c58ab0, key=0x116b2eb80, type=QFontEngineGlyphCache::Raster_A8, transform=@0x7fff5fbfa250) at text/qfontengine.cpp:729
      #2  0x000000010369a510 in QGL2PaintEngineExPrivate::drawCachedGlyphs (this=0x10405dc00, glyphType=QFontEngineGlyphCache::Raster_A8, staticTextItem=0x103c78d00) at gl2paintengineex/qpaintengineex_opengl2.cpp:1478
      #3  0x000000010369b97a in QGL2PaintEngineEx::drawStaticTextItem (this=0x103995dd0, textItem=0x103c78d00) at gl2paintengineex/qpaintengineex_opengl2.cpp:1365
      #4  0x00000001001da632 in QDeclarativeTextLayout::draw (this=0x116b03d38, painter=0x7fff5fbfb570, p=@0x7fff5fbfa6a0) at graphicsitems/qdeclarativetextlayout.cpp:353
      #5  0x00000001001b4b77 in QDeclarativeTextPrivate::drawTextLayout (this=0x116b03ae0, painter=0x7fff5fbfb570, pos=@0x7fff5fbfa6a0, drawStyle=false) at graphicsitems/qdeclarativetext.cpp:391
      #6  0x00000001001b57f0 in QDeclarativeText::paint (this=0x116b11a00, p=0x7fff5fbfb570) at graphicsitems/qdeclarativetext.cpp:1240
      #7  0x0000000101d66aa4 in QGraphicsScenePrivate::draw (this=0x116b0e720, item=0x116b11a10, painter=0x7fff5fbfb570, viewTransform=0x0, transformPtr=0x116b03b80, exposedRegion=0x10482b8b0, widget=0x116b2e810, opacity=1, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true) at graphicsview/qgraphicsscene.cpp:4960
      #8  0x0000000101d67727 in QGraphicsScenePrivate::drawSubtreeRecursive (this=0x116b0e720, item=0x116b11a10, painter=0x7fff5fbfb570, viewTransform=0x0, exposedRegion=0x10482b8b0, widget=0x116b2e810, parentOpacity=1, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4853
      #9  0x0000000101d66bea in QGraphicsScenePrivate::draw (this=0x116b0e720, item=0x103c33840, painter=0x7fff5fbfb570, viewTransform=0x0, transformPtr=0x103c35370, exposedRegion=0x10482b8b0, widget=0x116b2e810, opacity=1, effectTransform=0x0, wasDirtyParentSceneTransform=false, drawItem=true) at graphicsview/qgraphicsscene.cpp:4979
      #10 0x0000000101d67727 in QGraphicsScenePrivate::drawSubtreeRecursive (this=0x116b0e720, item=0x103c33840, painter=0x7fff5fbfb570, viewTransform=0x0, exposedRegion=0x10482b8b0, widget=0x116b2e810, parentOpacity=1, effectTransform=0x0) at graphicsview/qgraphicsscene.cpp:4853
      #11 0x0000000101d76ae7 in QGraphicsScenePrivate::drawItems (this=0x116b0e720, painter=0x7fff5fbfb570, viewTransform=0x0, exposedRegion=0x10482b8b0, widget=0x116b2e810) at graphicsview/qgraphicsscene.cpp:4735
      #12 0x0000000101d9b2fc in QGraphicsView::paintEvent (this=0x103c2ece0, event=0x7fff5fbfc360) at graphicsview/qgraphicsview.cpp:3469
      #13 0x00000001000d0322 in QDeclarativeView::paintEvent (this=0x103c2ece0, event=0x7fff5fbfc360) at util/qdeclarativeview.cpp:699
      #14 0x00000001016c179e in QWidget::event (this=0x103c2ece0, event=0x7fff5fbfc360) at kernel/qwidget.cpp:8383
      #15 0x0000000101b02501 in QFrame::event (this=0x103c2ece0, e=0x7fff5fbfc360) at widgets/qframe.cpp:557
      #16 0x0000000101baa8b4 in QAbstractScrollArea::viewportEvent (this=0x103c2ece0, e=0x7fff5fbfc360) at widgets/qabstractscrollarea.cpp:1043
      #17 0x0000000101da2ecf in QGraphicsView::viewportEvent (this=0x103c2ece0, event=0x7fff5fbfc360) at graphicsview/qgraphicsview.cpp:2864
      #18 0x0000000101bae062 in QAbstractScrollAreaPrivate::viewportEvent (this=0x10482b400, event=0x7fff5fbfc360) at qabstractscrollarea_p.h:100
      #19 0x0000000101bae0a2 in QAbstractScrollAreaFilter::eventFilter (this=0x116b0c4c0, o=0x116b2e810, e=0x7fff5fbfc360) at qabstractscrollarea_p.h:116
      #20 0x00000001010dc31d in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x103c09e50, receiver=0x116b2e810, event=0x7fff5fbfc360) at kernel/qcoreapplication.cpp:847
      #21 0x000000010164e04c in QApplicationPrivate::notify_helper (this=0x103c09e50, receiver=0x116b2e810, e=0x7fff5fbfc360) at kernel/qapplication.cpp:4450
      #22 0x0000000101651376 in QApplication::notify (this=0x7fff5fbff520, receiver=0x116b2e810, e=0x7fff5fbfc360) at kernel/qapplication.cpp:4419
      #23 0x0000000100fce33a in QCoreApplication::notifyInternal (this=0x7fff5fbff520, receiver=0x116b2e810, event=0x7fff5fbfc360) at kernel/qcoreapplication.cpp:732
      #24 0x00000001015bb2e9 in QCoreApplication::sendSpontaneousEvent (receiver=0x116b2e810, event=0x7fff5fbfc360) at qcoreapplication.h:218
      #25 0x000000010164d5d2 in qt_sendSpontaneousEvent (receiver=0x116b2e810, event=0x7fff5fbfc360) at kernel/qapplication.cpp:5448
      #26 0x00000001015d27c4 in -[QCocoaView drawRect:] (self=0x1039960e0, _cmd=0x7fff81e68e08, aRect={origin = {x = 0, y = 0}, size = {width = 800, height = 480}}) at kernel/qcocoaview_mac.mm:616
      #27 0x00007fff8182d081 in -[NSView _drawRect:clip:] ()
      #28 0x00007fff8182bcf4 in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
      #29 0x00007fff8182c05e in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
      #30 0x00007fff8182c05e in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
      #31 0x00007fff8182c05e in -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] ()
      #32 0x00007fff8182a3c6 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
      #33 0x00007fff8182b292 in -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
      #34 0x00007fff81829ee8 in -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] ()
      #35 0x00007fff8182679a in -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] ()
      #36 0x00007fff8179fff6 in -[NSView displayIfNeeded] ()
      #37 0x00000001015d7d7d in -[QCocoaWindow displayIfNeeded] (self=0x10398f2d0, _cmd=0x7fff81e9bd60) at qcocoasharedwindowmethods_mac_p.h:383
      #38 0x00007fff8179aea2 in _handleWindowNeedsDisplay ()
      #39 0x00007fff8379e077 in __CFRunLoopDoObservers ()
      #40 0x00007fff83779ef4 in __CFRunLoopRun ()
      #41 0x00007fff8377984f in CFRunLoopRunSpecific ()
      #42 0x00007fff8439391a in RunCurrentEventLoopInMode ()
      #43 0x00007fff8439371f in ReceiveNextEventCommon ()
      #44 0x00007fff843935d8 in BlockUntilNextEventMatchingListInMode ()
      #45 0x00007fff8177029e in _DPSNextEvent ()
      #46 0x00007fff8176fbed in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
      #47 0x00007fff817358d3 in -[NSApplication run] ()
      #48 0x00000001015e8caf in QEventDispatcherMac::processEvents (this=0x103c09e40, flags=@0x7fff5fbff340) at kernel/qeventdispatcher_mac.mm:611
      #49 0x00000001010daf58 in QEventLoop::processEvents (this=0x7fff5fbff420, flags=@0x7fff5fbff3d0) at kernel/qeventloop.cpp:149
      #50 0x00000001010db178 in QEventLoop::exec (this=0x7fff5fbff420, flags=@0x7fff5fbff440) at kernel/qeventloop.cpp:201
      #51 0x00000001010dd0fc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
      #52 0x00000001016513b2 in QApplication::exec () at kernel/qapplication.cpp:3728
      #53 0x000000010002a5af in main (argc=2, argv=0x7fff5fbff688) at main.cpp:588
      

        1. broken.qml
          0.7 kB
          Aaron Kennedy
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            bodson Yann Bodson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes