<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ResourceUsageOverlay crashes in debug builds, seems to draw on non-main thread"
   href="https://bugs.webkit.org/show_bug.cgi?id=150897">150897</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ResourceUsageOverlay crashes in debug builds, seems to draw on non-main thread
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Tools / Tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bburg&#64;apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>akling&#64;apple.com, lforschler&#64;apple.com, simon.fraser&#64;apple.com, webkit-bug-importer&#64;group.apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>STEPS TO REPRODUCE:

1. Get a debug build
2. Enable the resource overlay
3. Immediate crash

Representative stack trace:

#0    0x000000011641c497 in ::WTFCrash() at /Users/bburg/repos/webkit-tot/OpenSource/Source/WTF/wtf/Assertions.cpp:321
#1    0x00000001182b0b49 in WebCore::FontCascadeFonts::primaryFont(WebCore::FontCascadeDescription const&amp;) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/platform/graphics/FontCascadeFonts.h:127
#2    0x00000001182b0ab9 in WebCore::FontCascade::primaryFont() const at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/platform/graphics/FontCascade.h:352
#3    0x000000011a466909 in unsigned int WebCore::WidthIterator::advanceInternal&lt;WebCore::Latin1TextIterator&gt;(WebCore::Latin1TextIterator&amp;, WebCore::GlyphBuffer*) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/platform/graphics/WidthIterator.cpp:209
#4    0x000000011a4662ca in WebCore::WidthIterator::advance(int, WebCore::GlyphBuffer*) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/platform/graphics/WidthIterator.cpp:434
#5    0x0000000118923930 in WebCore::FontCascade::getGlyphsAndAdvancesForSimpleText(WebCore::TextRun const&amp;, int, int, WebCore::GlyphBuffer&amp;, WebCore::FontCascade::ForTextEmphasisOrNot) const at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/platform/graphics/FontCascade.cpp:1272
#6    0x000000011891fe0e in WebCore::FontCascade::drawSimpleText(WebCore::GraphicsContext&amp;, WebCore::TextRun const&amp;, WebCore::FloatPoint const&amp;, int, int) const at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/platform/graphics/FontCascade.cpp:1297
#7    0x000000011891fc14 in WebCore::FontCascade::drawText(WebCore::GraphicsContext&amp;, WebCore::TextRun const&amp;, WebCore::FloatPoint const&amp;, int, int, WebCore::FontCascade::CustomFontNotReadyAction) const at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/platform/graphics/FontCascade.cpp:325
#8    0x0000000118a8f3e3 in WebCore::GraphicsContext::drawText(WebCore::FontCascade const&amp;, WebCore::TextRun const&amp;, WebCore::FloatPoint const&amp;, int, int) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/platform/graphics/GraphicsContext.cpp:328
#9    0x000000011903f68a in WebCore::showText(WebCore::GraphicsContext&amp;, float, float, WebCore::Color, WTF::String const&amp;) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:330
#10    0x000000011903e2ae in WebCore::ResourceUsageOverlay::draw(WebCore::GraphicsContext&amp;) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:350
#11    0x000000011903dfdb in -[WebOverlayLayer drawInContext:] at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:66
#12    0x00007fff990ea2dd in CABackingStoreUpdate_ ()
#13    0x00007fff990e9531 in ___ZN2CA5Layer8display_Ev_block_invoke ()
#14    0x00007fff990e8f1d in CA::Layer::display_() ()
#15    0x00007fff990dad05 in CA::Layer::display_if_needed(CA::Transaction*) ()
#16    0x00007fff990da82d in CA::Layer::layout_and_display_if_needed(CA::Transaction*) ()
#17    0x00007fff990d9d01 in CA::Context::commit_transaction(CA::Transaction*) ()
#18    0x00007fff990d994c in CA::Transaction::commit() ()
#19    0x0000000119040cde in WebCore::runSamplerThread(void*) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WebCore/page/cocoa/ResourceUsageOverlayCocoa.mm:452
#20    0x0000000116486a79 in WTF::createThread(void (*)(void*), void*, char const*)::$_0::operator()() const at /Users/bburg/repos/webkit-tot/OpenSource/Source/WTF/wtf/Threading.cpp:81
#21    0x0000000116486a4d in decltype(std::__1::forward&lt;WTF::createThread(void (*)(void*), void*, char const*)::$_0&amp;&gt;(fp)(std::__1::forward&lt;&gt;(fp0))) std::__1::__invoke&lt;WTF::createThread(void (*)(void*), void*, char const*)::$_0&amp;&gt;(WTF::createThread(void (*)(void*), void*, char const*)::$_0&amp;&amp;&amp;) [inlined] at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.11.xctoolchain/usr/bin/../include/c++/v1/__functional_base:415
#22    0x0000000116486a3c in void std::__1::__invoke_void_return_wrapper&lt;void&gt;::__call&lt;WTF::createThread(void (*)(void*), void*, char const*)::$_0&amp;&gt;(WTF::createThread(void (*)(void*), void*, char const*)::$_0&amp;&amp;&amp;) at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.11.xctoolchain/usr/bin/../include/c++/v1/__functional_base:440
#23    0x00000001164869ec in std::__1::__function::__func&lt;WTF::createThread(void (*)(void*), void*, char const*)::$_0, std::__1::allocator&lt;WTF::createThread(void (*)(void*), void*, char const*)::$_0&gt;, void ()&gt;::operator()() at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.11.xctoolchain/usr/bin/../include/c++/v1/functional:1407
#24    0x0000000115ea282a in std::__1::function&lt;void ()&gt;::operator()() const at /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.11.xctoolchain/usr/bin/../include/c++/v1/functional:1793
#25    0x000000011648574e in WTF::threadEntryPoint(void*) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WTF/wtf/Threading.cpp:58
#26    0x0000000116486ff1 in WTF::wtfThreadEntryPoint(void*) at /Users/bburg/repos/webkit-tot/OpenSource/Source/WTF/wtf/ThreadingPthreads.cpp:167
#27    0x00007fff936df9b1 in _pthread_body ()
#28    0x00007fff936df92e in _pthread_start ()
#29    0x00007fff936dd385 in thread_start ()</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>