<?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>57320</bug_id>
          
          <creation_ts>2011-03-29 02:42:31 -0700</creation_ts>
          <short_desc>Web Inspector: Unsatisfying support for objects containing large arrays in Console</short_desc>
          <delta_ts>2016-02-04 19:51:03 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Mikhail Naganov">mnaganov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apavlov</cc>
    
    <cc>bburg</cc>
    
    <cc>bweinstein</cc>
    
    <cc>chutten</cc>
    
    <cc>graouts</cc>
    
    <cc>joepeck</cc>
    
    <cc>jonowells</cc>
    
    <cc>keishi</cc>
    
    <cc>kpiascik</cc>
    
    <cc>loislo</cc>
    
    <cc>mattbaker</cc>
    
    <cc>nvasilyev</cc>
    
    <cc>pfeldman</cc>
    
    <cc>pmuellr</cc>
    
    <cc>rik</cc>
    
    <cc>timothy</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>yurys</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>375140</commentid>
    <comment_count>0</comment_count>
      <attachid>87286</attachid>
    <who name="Mikhail Naganov">mnaganov</who>
    <bug_when>2011-03-29 02:42:31 -0700</bug_when>
    <thetext>Created attachment 87286
Repro page

Expanding an object with a huge array inside takes long time and can even crash renderer (observed in Chromium).

Consider the page attached -- it creates two objects: big1 and big2, that are almost identical. They both contain a huge array inside them, and in &apos;big1&apos; this array doesn&apos;t have contents, but in &apos;big2&apos; does.

If I evaluate &apos;big1&apos; in console, and then expand the resulting object, I see its contents immediately. If I evaluate &apos;big2&apos;, and trying to expand it, I experience a delay, and with sufficiently large arrays (20M items), page can crash.

The results of both expansions are identical:

big1
  v Object
     &gt; big_array: Array[20971520]
         f1: &quot;aaa&quot;
         f2: &quot;bbb&quot;
     &gt; __proto__: Object

big2
  v Object
     &gt; big_array: Array[20971520]
         f1: &quot;aaa&quot;
         f2: &quot;bbb&quot;
     &gt; __proto__: Object

I&apos;d expect a delay while trying to expand a &apos;big_array&apos;, but not when I&apos;m expanding the container object.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>530301</commentid>
    <comment_count>1</comment_count>
    <who name="Pavel Feldman">pfeldman</who>
    <bug_when>2012-01-05 08:13:07 -0800</bug_when>
    <thetext>*** Bug 75624 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1056429</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2014-12-17 11:23:16 -0800</bug_when>
    <thetext>&lt;rdar://problem/19281532&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1143758</commentid>
    <comment_count>3</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-11-20 13:06:03 -0800</bug_when>
    <thetext>Not an issue any more since we give up showing element previews when arrays are past a reasonable size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1162283</commentid>
    <comment_count>4</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2016-02-04 19:51:03 -0800</bug_when>
    <thetext>&lt;rdar://problem/13281722&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>87286</attachid>
            <date>2011-03-29 02:42:31 -0700</date>
            <delta_ts>2011-03-29 02:42:31 -0700</delta_ts>
            <desc>Repro page</desc>
            <filename>big-object.html</filename>
            <type>text/html</type>
            <size>408</size>
            <attacher name="Mikhail Naganov">mnaganov</attacher>
            
              <data encoding="base64">PGh0bWw+CiAgPGhlYWQ+CiAgICA8dGl0bGU+QmlnIG9iamVjdDwvdGl0bGU+CiAgICA8c2NyaXB0
IHR5cGU9InRleHQvamF2YXNjcmlwdCI+CiAgICAgIHZhciBzaXplID0gMjA7CiAgICAgIHZhciBi
aWcxID0geyBmMTogImFhYSIsIGYyOiAiYmJiIiwgYmlnX2FycmF5OiBuZXcgQXJyYXkoc2l6ZSAq
IDEwMjQgKiAxMDI0KSB9OwogICAgICB2YXIgYmlnMiA9IHsgZjE6ICJhYWEiLCBmMjogImJiYiIs
IGJpZ19hcnJheTogbmV3IEFycmF5KHNpemUgKiAxMDI0ICogMTAyNCkgfTsKICAgICAgZm9yICh2
YXIgaSA9IDAsIGwgPSBiaWcyLmJpZ19hcnJheS5sZW5ndGg7IGkgPCBsOyArK2kpIGJpZzIuYmln
X2FycmF5W2ldID0gaTsKICAgIDwvc2NyaXB0PgogIDwvaGVhZD4KICA8Ym9keT4KICA8L2JvZHk+
CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>