Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.1
-
None
-
{noformat}
Qt 5.9.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 7.0.2 (clang-700.1.81) (Apple)) on "cocoa"
OS: macOS Sierra (10.12) [darwin version 16.6.0]
Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE
Environment:
Features: QT_NO_EXCEPTIONS QT_NO_OPENSSL
File selectors (increasing order of precedence):
en_CA unix darwin mac osx macos
Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL BufferQueueingOpenGL WindowMasks MultipleWindows ApplicationState ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement RasterGLSurface ApplicationIcon
Style hints:
mouseDoubleClickInterval: 400
mousePressAndHoldInterval: 800
startDragDistance: 10
startDragTime: 500
startDragVelocity: 0
keyboardInputInterval: 400
keyboardAutoRepeatRate: 30
cursorFlashTime: 1000
showIsFullScreen: 0
showIsMaximized: 0
passwordMaskDelay: 0
passwordMaskCharacter: U+2022
fontSmoothingGamma: 2
useRtlExtensions: 0
setFocusOnTouchRelease: 0
tabFocusBehavior: Qt::TabFocusBehavior(3)
singleClickActivation: 0
Additional style hints (QPlatformIntegration):
ReplayMousePressOutsidePopup: 1
Theme:
Platforms requested : cocoa
available :
Styles requested : macintosh
available : Windows,Fusion,Macintosh
System font : ".SF NS Text" 13
Native file dialog
Native color dialog
Native font dialog
Fonts:
General font : ".SF NS Text" 13
Fixed font : "Monaco" 10
Title font : ".SF NS Text" 13
Smallest font: ".SF NS Text" 9
Palette:
WindowText: #ff000000
Button: #ffececec
Light: #ffffffff
Midlight: #fff5f5f5
Dark: #ffbfbfbf
Mid: #ffa9a9a9
Text: #ff000000
BrightText: #ffffffff
ButtonText: #ff000000
Base: #ffffffff
Window: #ffececec
Shadow: #ff8b8b8b
Highlight: #ffb2d7ff
HighlightedText: #ff000000
Link: #ff0000ff
LinkVisited: #ffff00ff
AlternateBase: #fff5f5f5
NoRole: #ff000000
ToolTipBase: #ffffffc7
ToolTipText: #ff000000
Screens: 1, High DPI scaling: inactive
# 0 "iMac" Depth: 24 Primary: yes
Manufacturer:
Model:
Serial number:
Geometry: 2560x1440+0+0 Available: 2560x1343+0+23
Physical size: 596.55x335.56 mm Refresh: 60 Hz Power state: 0
Physical DPI: 109,109 Logical DPI: 72,72 Subpixel_RGB
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
LibGL Vendor: NVIDIA Corporation
Renderer: NVIDIA GeForce GTX 780M OpenGL Engine
Version: 2.1 NVIDIA-10.17.5 355.10.05.45f01
Shading language: 1.20
Format: Version: 2.1 Profile: 0 Swap behavior: 2 Buffer size (RGB): 8,8,8 Depth buffer: -1 Stencil buffer: -1{noformat}{noformat} Qt 5.9.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 7.0.2 (clang-700.1.81) (Apple)) on "cocoa" OS: macOS Sierra (10.12) [darwin version 16.6.0] Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE Environment: Features: QT_NO_EXCEPTIONS QT_NO_OPENSSL File selectors (increasing order of precedence): en_CA unix darwin mac osx macos Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL BufferQueueingOpenGL WindowMasks MultipleWindows ApplicationState ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement RasterGLSurface ApplicationIcon Style hints: mouseDoubleClickInterval: 400 mousePressAndHoldInterval: 800 startDragDistance: 10 startDragTime: 500 startDragVelocity: 0 keyboardInputInterval: 400 keyboardAutoRepeatRate: 30 cursorFlashTime: 1000 showIsFullScreen: 0 showIsMaximized: 0 passwordMaskDelay: 0 passwordMaskCharacter: U+2022 fontSmoothingGamma: 2 useRtlExtensions: 0 setFocusOnTouchRelease: 0 tabFocusBehavior: Qt::TabFocusBehavior(3) singleClickActivation: 0 Additional style hints (QPlatformIntegration): ReplayMousePressOutsidePopup: 1 Theme: Platforms requested : cocoa available : Styles requested : macintosh available : Windows,Fusion,Macintosh System font : ".SF NS Text" 13 Native file dialog Native color dialog Native font dialog Fonts: General font : ".SF NS Text" 13 Fixed font : "Monaco" 10 Title font : ".SF NS Text" 13 Smallest font: ".SF NS Text" 9 Palette: WindowText: #ff000000 Button: #ffececec Light: #ffffffff Midlight: #fff5f5f5 Dark: #ffbfbfbf Mid: #ffa9a9a9 Text: #ff000000 BrightText: #ffffffff ButtonText: #ff000000 Base: #ffffffff Window: #ffececec Shadow: #ff8b8b8b Highlight: #ffb2d7ff HighlightedText: #ff000000 Link: #ff0000ff LinkVisited: #ffff00ff AlternateBase: #fff5f5f5 NoRole: #ff000000 ToolTipBase: #ffffffc7 ToolTipText: #ff000000 Screens: 1, High DPI scaling: inactive # 0 "iMac" Depth: 24 Primary: yes Manufacturer: Model: Serial number: Geometry: 2560x1440+0+0 Available: 2560x1343+0+23 Physical size: 596.55x335.56 mm Refresh: 60 Hz Power state: 0 Physical DPI: 109,109 Logical DPI: 72,72 Subpixel_RGB DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 LibGL Vendor: NVIDIA Corporation Renderer: NVIDIA GeForce GTX 780M OpenGL Engine Version: 2.1 NVIDIA-10.17.5 355.10.05.45f01 Shading language: 1.20 Format: Version: 2.1 Profile: 0 Swap behavior: 2 Buffer size (RGB): 8,8,8 Depth buffer: -1 Stencil buffer: -1{noformat}
Description
Code that works on 5.6.2 crashes when compiled against 5.9.1:
1 FPFontCopyGlyphPath 0x7fffb8fe0209 2 CGFontCreateGlyphPath 0x7fffbae14ffb 3 CGFontCreateGlyphBitmapWithDilation 0x7fffbaaecce5 4 CGGlyphBuilder::create_missing_bitmaps(CGGlyphIdentifier const *, unsigned long, CGGlyphBitmap const * *) 0x7fffbad640a5 5 CGGlyphBuilder::lock_glyph_bitmaps(CGGlyphIdentifier const *, unsigned long, CGGlyphBitmap const * *) 0x7fffbad63df4 6 render_glyphs 0x7fffbaad6d87 7 draw_glyph_bitmaps 0x7fffbaad69c2 8 ripc_DrawGlyphs 0x7fffbaad5ae4 9 draw_glyphs 0x7fffbad92a1e 10 DrawSbixGlyphsAtPositions(TFont const *, unsigned short const *, CGPoint const *, unsigned long, CGContext *, CGAffineTransform, CGAffineTransform) 0x7fffbbc1ec00 11 CTFontDrawGlyphs 0x7fffbbc1f0cd 12 QCoreTextFontEngine::imageForGlyph(unsigned int, QFixed, bool, QTransform const&) 0x10956f9d5 13 QCoreTextFontEngine::alphaRGBMapForGlyph(unsigned int, QFixed, QTransform const&) 0x10956fcde 14 QImageTextureGlyphCache::fillTexture(QTextureGlyphCache::Coord const&, unsigned int, QFixed) 0x10615bcd4 15 QTextureGlyphCache::fillInPendingGlyphs() 0x10615b843 16 QRasterPaintEngine::drawCachedGlyphs(int, unsigned int const *, QFixedPoint const *, QFontEngine *) 0x1060f696a 17 QRasterPaintEngine::drawTextItem(QPointF const&, QTextItem const&) 0x1060f7636 18 QPainterPrivate::drawTextItem(QPointF const&, QTextItem const&, QTextEngine *) 0x106111c79 19 QPainter::drawText(QPointF const&, QString const&, int, int) 0x10610ef3c 20 QPainter::drawText(int, int, QString const&) qpainter.h 892 0x10008bfd5 21 ccGLWindow::renderText(int, int, QString const&, QFont const&) ccGLWindow.cpp 6543 0x100376419 22 ccGLWindow::drawForeground(ccGLDrawContext&, ccGLWindow::RenderingParams&) ccGLWindow.cpp 2470 0x10037b41e 23 ccGLWindow::fullRenderingPass(ccGLDrawContext&, ccGLWindow::RenderingParams&) ccGLWindow.cpp 2102 0x1003791d1 24 ccGLWindow::paintGL() ccGLWindow.cpp 1521 0x1003770c7 ...
Stack trace on Windows:
1 QPaintEngineEx::state qpaintengineex_p.h 141 0x7ffaaa92472e 2 QRasterPaintEngine::state qpaintengine_raster_p.h 157 0x7ffaaa9247a3 3 QRasterPaintEnginePrivate::clip qpaintengine_raster_p.h 487 0x7ffaaabe4142 4 QRasterPaintEngine::alphaPenBlt qpaintengine_raster.cpp 2569 0x7ffaaabeff63 5 QRasterPaintEngine::drawCachedGlyphs qpaintengine_raster.cpp 2874 0x7ffaaabefad0 6 QRasterPaintEngine::drawTextItem qpaintengine_raster.cpp 3081 0x7ffaaabed23f 7 QPainterPrivate::drawTextItem qpainter.cpp 6512 0x7ffaaac19a20 8 QTextLine::draw qtextlayout.cpp 2612 0x7ffaaaa13ca1 9 qt_format_text qpainter.cpp 7641 0x7ffaaac1c752 10 QPainter::drawText qpainter.cpp 5938 0x7ffaaac13f56 11 drawStr main.cpp 21 0x7ff7391026f7 12 main main.cpp 33 0x7ff739102842 13 WinMain qtmain_win.cpp 104 0x7ff739105d4d 14 __tmainCRTStartup crtexe.c 618 0x7ff7391050e1 15 WinMainCRTStartup crtexe.c 466 0x7ff739104e5e 16 BaseThreadInitThunk KERNEL32 0x7ffaee628364 17 RtlUserThreadStart ntdll 0x7ffaef1170d1
This is when compiling the CloudCompare project which is rather large. If nobody has any insight or suggestions I will try to reproduce with a small example.
Attachments
Issue Links
- is duplicated by
-
QTBUG-61604 Android Emojis crash in High DPI mode
- Closed
- resulted from
-
QTBUG-60469 [5.9 REG] Garbled text rendering with QLabel and alpha channel
- Closed
For Gerrit Dashboard: QTBUG-61863 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
199820,2 | Fix buffer overflow in text blending | 5.9 | qt/qtbase | Status: MERGED | +2 | 0 |