<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>66328</bug_id>
          
          <creation_ts>2011-08-16 14:07:36 -0700</creation_ts>
          <short_desc>ASSERT in fast/css/custom-font-xheight.html</short_desc>
          <delta_ts>2011-08-17 10:48:38 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Chang">tony</reporter>
          <assigned_to name="Joseph Pecoraro">joepeck</assigned_to>
          <cc>joepeck</cc>
    
    <cc>mitz</cc>
    
    <cc>msaboff</cc>
    
    <cc>steveblock</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>451856</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-08-16 14:07:36 -0700</bug_when>
    <thetext>When running fast/css/custom-font-xheight.html on a debug build of chromium linux, we hit the following assert:

ASSERTION FAILED: m_purgePreventCount
WebKit/Source/WebCore/platform/graphics/FontCache.cpp(280) : WebCore::SimpleFontData* WebCore::FontCache::getCachedFontData(const WebCore::FontPlatformData*, WebCore::FontCache::ShouldRetain)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451857</commentid>
    <comment_count>1</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-08-16 14:09:14 -0700</bug_when>
    <thetext>I suspect this is due to http://trac.webkit.org/changeset/93140</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451875</commentid>
    <comment_count>2</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-08-16 14:36:50 -0700</bug_when>
    <thetext>That is a good sign, this code was broken before so we need to add a
another FontCachePurgePreventer somewhere now. I&apos;m surprised I didn&apos;t
encounter this assert when I ran tests. Do you have the backtrace?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451894</commentid>
    <comment_count>3</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-08-16 15:01:00 -0700</bug_when>
    <thetext>ASSERTION FAILED: m_purgePreventCount
third_party/WebKit/Source/WebCore/platform/graphics/FontCache.cpp(280) : WebCore::SimpleFontData* WebCore::FontCache::getCachedFontData(const WebCore::FontPlatformData*, WebCore::FontCache::ShouldRetain)
[12604:12604:7278047199282:ERROR:process_util_posix.cc(134)] Received signal 11
	base::debug::StackTrace::StackTrace() [0x8b8df2]
	base::(anonymous namespace)::StackDumpSignalHandler() [0x8810a9]
	0x7faae929bc20
	WebCore::FontCache::getCachedFontData() [0xfe8f69]
	WebCore::FontCache::getLastResortFallbackFont() [0x1026f0c]
	WebCore::FontCache::getNonRetainedLastResortFallbackFont() [0xfe927c]
	WebCore::CSSFontFaceSource::getFontData() [0x168214b]
	WebCore::CSSFontFace::getFontData() [0x167e7f9]
	WebCore::CSSSegmentedFontFace::getFontData() [0x15d833b]
	WebCore::CSSFontSelector::getFontData() [0x15ba8ee]
	WebCore::FontCache::getFontData() [0xfe9a96]
	WebCore::FontFallbackList::fontDataAt() [0xff58e3]
	WebCore::FontFallbackList::primaryFontData() [0x4d97c2]
	WebCore::FontFallbackList::primarySimpleFontData() [0x4d976d]
	WebCore::Font::primaryFont() [0x4d988d]
	WebCore::Font::fontMetrics() [0x4d980e]
	WebCore::RenderStyle::fontMetrics() [0x11f18ea]
	WebCore::CSSPrimitiveValue::computeLengthDouble() [0x11ef440]
	WebCore::CSSPrimitiveValue::computeLength&lt;&gt;() [0x11ef1d7]
	WebCore::ApplyPropertyLength&lt;&gt;::applyValue() [0x15ef077]
	WebCore::CSSStyleApplyProperty::applyValue() [0x122ea59]
	WebCore::CSSStyleSelector::applyProperty() [0x1213f21]
	WebCore::CSSStyleSelector::applyDeclarations&lt;&gt;() [0x12344ab]
	WebCore::CSSStyleSelector::styleForElement() [0x120bd97]
	WebCore::Node::styleForRenderer() [0xe42925]
	WebCore::NodeRendererFactory::createRendererAndStyle() [0xe5b04b]
	WebCore::NodeRendererFactory::createRendererIfNeeded() [0xe5b250]
	WebCore::Node::createRendererIfNeeded() [0xe428a5]
	WebCore::Element::attach() [0xe1621d]
	WebCore::HTMLConstructionSite::attach&lt;&gt;() [0xf9f040]
	WebCore::HTMLConstructionSite::attachToCurrent() [0xf9d64c]
	WebCore::HTMLConstructionSite::insertHTMLElement() [0xf9daf4]
	WebCore::HTMLTreeBuilder::processStartTagForInBody() [0xf68c48]
	WebCore::HTMLTreeBuilder::processStartTag() [0xf6b2fe]
	WebCore::HTMLTreeBuilder::processToken() [0xf671e1]
	WebCore::HTMLTreeBuilder::constructTreeFromAtomicToken() [0xf6708e]
	WebCore::HTMLTreeBuilder::constructTreeFromToken() [0xf66fe5]
	WebCore::HTMLDocumentParser::pumpTokenizer() [0xf4fc4a]
	WebCore::HTMLDocumentParser::pumpTokenizerIfPossible() [0xf4f668]
	WebCore::HTMLDocumentParser::append() [0xf501cc]
	WebCore::DecodedDataDocumentParser::appendBytes() [0x2177c48]
	WebCore::DocumentWriter::addData() [0x138b518]
	WebCore::DocumentLoader::commitData() [0x137c93d]
	WebKit::WebFrameImpl::commitDocumentData() [0x484d3a]
	WebKit::FrameLoaderClientImpl::committedLoad() [0x4dd06b]
	WebCore::DocumentLoader::commitLoad() [0x137c804]
	WebCore::DocumentLoader::receivedData() [0x137c9f8]
	WebCore::MainResourceLoader::addData() [0x13af777]
	WebCore::ResourceLoader::didReceiveData() [0x13c3011]
	WebCore::MainResourceLoader::didReceiveData() [0x13b0bc0]
	WebCore::ResourceLoader::didReceiveData() [0x13c3928]
	WebCore::ResourceHandleInternal::didReceiveData() [0x4f0d6e]
	webkit_glue::WebURLLoaderImpl::Context::OnReceivedData() [0x19b18b0]
	(anonymous namespace)::RequestProxy::NotifyReceivedData() [0x1a7255b]
	DispatchToMethod&lt;&gt;() [0x1a77f6b]
	RunnableMethod&lt;&gt;::Run() [0x1a77444]
	base::subtle::TaskClosureAdapter::Run() [0x89a39b]
	base::internal::Invoker1&lt;&gt;::DoInvoke() [0x86401c]
	base::Callback&lt;&gt;::Run() [0x862ded]
	MessageLoop::RunTask() [0x8609b5]
	MessageLoop::DeferOrRunPendingTask() [0x860abd]
	MessageLoop::DoWork() [0x8612b5]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451895</commentid>
    <comment_count>4</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2011-08-16 15:01:34 -0700</bug_when>
    <thetext>Looks like chromium mac debug hit this as well.  It&apos;s probably all chromium dbg builds that hit this assert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451910</commentid>
    <comment_count>5</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-08-16 15:25:35 -0700</bug_when>
    <thetext>Yah, this was clearly my fault. I ran the test and saw the crash and ignored it
because it was failing for me before I made my change. I&apos;m compiling a fix now.
Sorry about that!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451926</commentid>
    <comment_count>6</comment_count>
      <attachid>104104</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-08-16 15:40:40 -0700</bug_when>
    <thetext>Created attachment 104104
[PATCH] Add a FontCachePurgePreventer and a Comment</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451931</commentid>
    <comment_count>7</comment_count>
      <attachid>104104</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-08-16 15:47:10 -0700</bug_when>
    <thetext>Comment on attachment 104104
[PATCH] Add a FontCachePurgePreventer and a Comment

I&apos;ll land manually since it looks like chromium test expectations were updated before I could get the fix out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>451941</commentid>
    <comment_count>8</comment_count>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2011-08-16 15:59:04 -0700</bug_when>
    <thetext>Unskipped the test and landed the fix in: r93171
&lt;http://trac.webkit.org/changeset/93171&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>452355</commentid>
    <comment_count>9</comment_count>
    <who name="Steve Block">steveblock</who>
    <bug_when>2011-08-17 10:48:38 -0700</bug_when>
    <thetext>*** Bug 66375 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>104104</attachid>
            <date>2011-08-16 15:40:40 -0700</date>
            <delta_ts>2011-08-16 15:47:10 -0700</delta_ts>
            <desc>[PATCH] Add a FontCachePurgePreventer and a Comment</desc>
            <filename>assert-fix.patch</filename>
            <type>text/plain</type>
            <size>1913</size>
            <attacher name="Joseph Pecoraro">joepeck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZwppbmRleCBhODI4Y2VjLi5lODVmOTJlIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29y
ZS9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDUgKzEsMjAg
QEAKIDIwMTEtMDgtMTYgIEpvc2VwaCBQZWNvcmFybyAgPGpvZXBlY2tAd2Via2l0Lm9yZz4KIAor
ICAgICAgICBBU1NFUlQgaW4gZmFzdC9jc3MvY3VzdG9tLWZvbnQteGhl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UmF3UHRyID0gZm9udERhdGEubGVha1B0cigpOwo=
</data>
<flag name="review"
          id="99840"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>