<?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>93107</bug_id>
          
          <creation_ts>2012-08-03 06:35:55 -0700</creation_ts>
          <short_desc>[BlackBerry] Crash on layout test in mediaPlayer code</short_desc>
          <delta_ts>2012-08-03 07:21:03 -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>WebKit BlackBerry</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="George Staikos">staikos</reporter>
          <assigned_to name="George Staikos">staikos</assigned_to>
          <cc>mifenton</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>686643</commentid>
    <comment_count>0</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-08-03 06:35:55 -0700</bug_when>
    <thetext>Crash occurred here:

#0  BlackBerry::Platform::MMRPlayer::duration (this=0x0)
#1  0x794b8888 in WebCore::MediaPlayerPrivate::percentLoaded (this=0xf28848)
    at
Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:443
#2  0x794b3882 in WebCore::RenderThemeBlackBerry::paintMediaSliderTrack
(this=&lt;optimized out&gt;, object=&lt;optimized out&gt;, paintInfo=..., rect=...)
    at
Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp:903</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>686645</commentid>
    <comment_count>1</comment_count>
      <attachid>156351</attachid>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-08-03 06:38:11 -0700</bug_when>
    <thetext>Created attachment 156351
Patch to fix it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>686650</commentid>
    <comment_count>2</comment_count>
      <attachid>156353</attachid>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-08-03 06:41:44 -0700</bug_when>
    <thetext>Created attachment 156353
Patch (corrected patch)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>686669</commentid>
    <comment_count>3</comment_count>
      <attachid>156353</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2012-08-03 07:00:49 -0700</bug_when>
    <thetext>Comment on attachment 156353
Patch (corrected patch)

LGTM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>686672</commentid>
    <comment_count>4</comment_count>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2012-08-03 07:03:48 -0700</bug_when>
    <thetext>(In reply to comment #0)
&gt; Crash occurred here:
&gt; 
&gt; #0  BlackBerry::Platform::MMRPlayer::duration (this=0x0)
&gt; #1  0x794b8888 in WebCore::MediaPlayerPrivate::percentLoaded (this=0xf28848)
&gt;     at
&gt; Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:443
&gt; #2  0x794b3882 in WebCore::RenderThemeBlackBerry::paintMediaSliderTrack
&gt; (this=&lt;optimized out&gt;, object=&lt;optimized out&gt;, paintInfo=..., rect=...)
&gt;     at
&gt; Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp:903

do we know why it is 0x0? Does the test crash if run standalone?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>686693</commentid>
    <comment_count>5</comment_count>
      <attachid>156353</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-08-03 07:14:18 -0700</bug_when>
    <thetext>Comment on attachment 156353
Patch (corrected patch)

Clearing flags on attachment: 156353

Committed r124609: &lt;http://trac.webkit.org/changeset/124609&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>686694</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-08-03 07:14:21 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>686709</commentid>
    <comment_count>7</comment_count>
    <who name="George Staikos">staikos</who>
    <bug_when>2012-08-03 07:21:03 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #0)
&gt; &gt; Crash occurred here:
&gt; &gt; 
&gt; &gt; #0  BlackBerry::Platform::MMRPlayer::duration (this=0x0)
&gt; &gt; #1  0x794b8888 in WebCore::MediaPlayerPrivate::percentLoaded (this=0xf28848)
&gt; &gt;     at
&gt; &gt; Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.cpp:443
&gt; &gt; #2  0x794b3882 in WebCore::RenderThemeBlackBerry::paintMediaSliderTrack
&gt; &gt; (this=&lt;optimized out&gt;, object=&lt;optimized out&gt;, paintInfo=..., rect=...)
&gt; &gt;     at
&gt; &gt; Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp:903
&gt; 
&gt; do we know why it is 0x0? Does the test crash if run standalone?

Hm actually this might just be a lucky way to catch it.  It looks more like an out-of-memory situation that caused a malloc fail, now that I think about it.  The change doesn&apos;t hurt, but probably in practice doesn&apos;t help either, and the code is supposed to go away soon.  I&apos;d suggest leave it for now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>156351</attachid>
            <date>2012-08-03 06:38:11 -0700</date>
            <delta_ts>2012-08-03 06:41:44 -0700</delta_ts>
            <desc>Patch to fix it</desc>
            <filename>93107.patch</filename>
            <type>text/plain</type>
            <size>1627</size>
            <attacher name="George Staikos">staikos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEyNDYwMykKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDY4IEBACisyMDEyLTA4LTAzICBHZW9yZ2Ug
U3RhaWtvcyAgPHN0YWlrb3NAd2Via2l0Lm9yZz4KKworICAgICAgICBbQmxhY2tCZXJyeV0gQWRk
IGEgbnVsbCBjaGVjayBmb3IgbWVkaWEgaW1wbGVtZW50YXRpb24gdG8gZml4IGEgY3Jhc2guCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD05MzEwNworCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEZpeGVzIG1lZGlh
L3ZpZGVvLXNpemUuaHRtbC4KKworICAgICAgICAqIHBsYXRmb3JtL2JsYWNrYmVycnkvUmVuZGVy
VGhlbWVCbGFja0JlcnJ5LmNwcDoKKyAgICAgICAgKFdlYkNvcmU6OlJlbmRlclRoZW1lQmxhY2tC
ZXJyeTo6cGFpbnRNZWRpYVNsaWRlclRyYWNrKTogQWRkIG51bGwgY2hlY2suCisKIDIwMTItMDgt
MDMgIFRvciBBcm5lIFZlc3Riw7ggIDx0b3IuYXJuZS52ZXN0Ym9Abm9raWEuY29tPgogCiAgICAg
ICAgIEFkZCBtaXNzaW5nIGluY2x1ZGUgdG8gYnVpbGQgb24gTWFjIE9TIDEwLjgKSW5kZXg6IFNv
dXJjZS9XZWJDb3JlL3BsYXRmb3JtL2JsYWNrYmV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WVudC0+Y3VycmVudFRpbWUoKSAvIG1l
ZGlhRWxlbWVudC0+ZHVyYXRpb24oKSkgOiAwOwogCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>156353</attachid>
            <date>2012-08-03 06:41:44 -0700</date>
            <delta_ts>2012-08-03 07:14:18 -0700</delta_ts>
            <desc>Patch (corrected patch)</desc>
            <filename>93107.patch</filename>
            <type>text/plain</type>
            <size>1627</size>
            <attacher name="George Staikos">staikos</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDEyNDYwMykKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDEyLTA4LTAzICBHZW9yZ2Ug
U3RhaWtvcyAgPHN0YWlrb3NAd2Via2l0Lm9yZz4KKworICAgICAgICBbQmxhY2tCZXJyeV0gQWRk
IGEgbnVsbCBjaGVjayBmb3IgbWVkaWEgaW1wbGVtZW50YXRpb24gdG8gZml4IGEgY3Jhc2guCisg
ICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD05MzEwNworCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEZpeGVzIG1lZGlh
L3ZpZGVvLXNpemUuaHRtbC4KKworICAgICAgICAqIHBsYXRmb3JtL2JsYWNrYmVycnkvUmVuZGVy
VGhlbWVCbGFja0JlcnJ5LmNwcDoKKyAgICAgICAgKFdlYkNvcmU6OlJlbmRlclRoZW1lQmxhY2tC
ZXJyeTo6cGFpbnRNZWRpYVNsaWRlclRy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