Summary: | [GTK] fast/text/text-combine-placement.html crashed. | ||
---|---|---|---|
Product: | WebKit | Reporter: | ChangSeok Oh <changseok> |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | bugs-noreply, mcatanzaro |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
ChangSeok Oh
2015-12-31 05:07:47 PST
Font does have a platform scaled font since it is created by SVGData. Maybe the best fix would add an interface to retrieve a bounding rect to SVGFontData. Below is the backtrace when Font having a null scaled font is created. Breakpoint 1, 0x00007f913e6d8c90 in WebCore::debug(WebCore::FontPlatformData const&)@plt () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 (gdb) bt #0 0x00007f913e6d8c90 in WebCore::debug(WebCore::FontPlatformData const&)@plt () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #1 0x00007f913f3a9873 in WebCore::Font::Font(std::unique_ptr<WebCore::Font::SVGData, std::default_delete<WebCore::Font::SVGData> >, float, bool, bool) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #2 0x00007f913f25bc3f in WebCore::CachedSVGFont::createFont(WebCore::FontDescription const&, WTF::AtomicString const&, bool, bool, bool, WebCore::FontFeatureSettings const&, WebCore::FontVariantSettings const&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #3 0x00007f913ed189fa in WebCore::CSSFontFaceSource::font(WebCore::FontDescription const&, bool, bool, WebCore::CSSFontSelector*, WebCore::FontFeatureSettings const&, WebCore::FontVariantSettings const&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #4 0x00007f913ed17b27 in WebCore::CSSFontFace::font(WebCore::FontDescription const&, bool, bool) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #5 0x00007f913ed8c704 in WebCore::CSSSegmentedFontFace::fontRanges(WebCore::FontDescription const&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #6 0x00007f913ed1b90d in WebCore::CSSFontSelector::fontRangesForFamily(WebCore::FontDescription const&, WTF::AtomicString const&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #7 0x00007f913f3bd7e9 in WebCore::realizeNextFallback(WebCore::FontCascadeDescription const&, unsigned int&, WebCore::FontSelector*) [clone .constprop.66] () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #8 0x00007f913f3be4b9 in WebCore::FontCascadeFonts::realizeFallbackRangesAt(WebCore::FontCascadeDescription const&, unsigned int) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #9 0x00007f913f4d117a in WebCore::RenderBlock::constructTextRun(WebCore::RenderObject*, WebCore::FontCascade const&, WTF::StringView, WebCore::RenderStyle const&, unsigned int, unsigned int) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #10 0x00007f913f4d12d9 in WebCore::RenderBlock::constructTextRun(WebCore::RenderObject*, WebCore::FontCascade const&, WebCore::RenderText const*, unsigned int, unsigned int, WebCore::RenderStyle const&, unsigned int) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #11 0x00007f913f6514f7 in WebCore::RenderText::width(unsigned int, unsigned int, WebCore::FontCascade const&, float, WTF::HashSet<WebCore::Font const*, WTF::PtrHash<WebCore::Font const*>, WTF::HashTraits<WebCore::Font const*> >*, WebCore::GlyphOverflow*) const () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #12 0x00007f913f530462 in WebCore::RenderCombineText::combineText() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #13 0x00007f913f4eb4dc in WebCore::RenderBlockFlow::computeInlinePreferredLogicalWidths(WebCore::LayoutUnit&, We---Type <return> to continue, or q <return> to quit--- bCore::LayoutUnit&) const () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #14 0x00007f913f4ebf22 in WebCore::RenderBlockFlow::computeIntrinsicLogicalWidths(WebCore::LayoutUnit&, WebCore::LayoutUnit&) const () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #15 0x00007f913f4c5f69 in WebCore::RenderBlock::computePreferredLogicalWidths() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #16 0x00007f913f4ff873 in WebCore::RenderBox::minPreferredLogicalWidth() const [clone .localalias.292] () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #17 0x00007f913f4cd374 in WebCore::RenderBlock::computeBlockPreferredLogicalWidths(WebCore::LayoutUnit&, WebCore::LayoutUnit&) const () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #18 0x00007f913f4ebfdd in WebCore::RenderBlockFlow::computeIntrinsicLogicalWidths(WebCore::LayoutUnit&, WebCore::LayoutUnit&) const () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #19 0x00007f913f4c5f69 in WebCore::RenderBlock::computePreferredLogicalWidths() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #20 0x00007f913f50af09 in WebCore::RenderBox::computeLogicalWidthInRegionUsing(WebCore::SizeType, WebCore::Length, WebCore::LayoutUnit, WebCore::RenderBlock const*, WebCore::RenderRegion*) const () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #21 0x00007f913f50b7df in WebCore::RenderBox::computeLogicalWidthInRegion(WebCore::RenderBox::LogicalExtentComputedValues&, WebCore::RenderRegion*) const () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #22 0x00007f913f50bb51 in WebCore::RenderBox::updateLogicalWidth() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #23 0x00007f913f4c8192 in WebCore::RenderBlock::recomputeLogicalWidth() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #24 0x00007f913f4ea19c in WebCore::RenderBlockFlow::recomputeLogicalWidthAndColumnWidth() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #25 0x00007f913f4ed8fc in WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #26 0x00007f913f4c8295 in WebCore::RenderBlock::layout() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #27 0x00007f913f4e8f3c in WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&, WebCore::RenderBlockFlow::MarginInfo&, WebCore::LayoutUnit&, WebCore::LayoutUnit&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #28 0x00007f913f4e9cd3 in WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 ---Type <return> to continue, or q <return> to quit--- #29 0x00007f913f4ee0fa in WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #30 0x00007f913f4c8295 in WebCore::RenderBlock::layout() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #31 0x00007f913f4e8f3c in WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&, WebCore::RenderBlockFlow::MarginInfo&, WebCore::LayoutUnit&, WebCore::LayoutUnit&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #32 0x00007f913f4e9cd3 in WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #33 0x00007f913f4ee0fa in WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #34 0x00007f913f4c8295 in WebCore::RenderBlock::layout() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #35 0x00007f913f4e8f3c in WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&, WebCore::RenderBlockFlow::MarginInfo&, WebCore::LayoutUnit&, WebCore::LayoutUnit&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #36 0x00007f913f4e9cd3 in WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #37 0x00007f913f4ee0fa in WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #38 0x00007f913f4c8295 in WebCore::RenderBlock::layout() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #39 0x00007f913f67c6e9 in WebCore::RenderView::layoutContent(WebCore::LayoutState const&) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #40 0x00007f913f67cbe7 in WebCore::RenderView::layout() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #41 0x00007f913f2d2da9 in WebCore::FrameView::layout(bool) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #42 0x00007f913f36fbca in WebCore::ThreadTimers::sharedTimerFiredInternal() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #43 0x00007f913d1524ea in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&)::{lambda(void*)#1}::_FUN(void*) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18 #44 0x00007f9139fcf81a in g_main_dispatch (context=0x69b4d0) at /home/changseok/Projects/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.44.1/glib/gmain.c:3122 #45 g_main_context_dispatch (context=context@entry=0x69b4d0) ---Type <return> to continue, or q <return> to quit--- at /home/changseok/Projects/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.44.1/glib/gmain.c:3737 #46 0x00007f9139fcfb98 in g_main_context_iterate (context=0x69b4d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /home/changseok/Projects/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.44.1/glib/gmain.c:3808 #47 0x00007f9139fcfeb2 in g_main_loop_run (loop=0xcf5940) at /home/changseok/Projects/WebKit/WebKitBuild/DependenciesGTK/Source/glib-2.44.1/glib/gmain.c:4002 #48 0x00007f913d152890 in WTF::RunLoop::run() () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18 #49 0x00007f913ea21c62 in int WebKit::ChildProcessMain<WebKit::WebProcess, WebKit::WebProcessMain>(int, char**) () from /home/changseok/Projects/WebKit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37 #50 0x00007f9133347580 in __libc_start_main () from /lib64/libc.so.6 #51 0x0000000000400b99 in _start () |