Bug 57320

Summary: Web Inspector: Unsatisfying support for objects containing large arrays in Console
Product: WebKit Reporter: Mikhail Naganov <mnaganov>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: apavlov, bburg, bweinstein, chutten, graouts, joepeck, jonowells, keishi, kpiascik, loislo, mattbaker, nvasilyev, pfeldman, pmuellr, rik, timothy, webkit-bug-importer, yurys
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Repro page none

Description Mikhail Naganov 2011-03-29 02:42:31 PDT
Created attachment 87286 [details]
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 'big1' this array doesn't have contents, but in 'big2' does.

If I evaluate 'big1' in console, and then expand the resulting object, I see its contents immediately. If I evaluate 'big2', 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
     > big_array: Array[20971520]
         f1: "aaa"
         f2: "bbb"
     > __proto__: Object

big2
  v Object
     > big_array: Array[20971520]
         f1: "aaa"
         f2: "bbb"
     > __proto__: Object

I'd expect a delay while trying to expand a 'big_array', but not when I'm expanding the container object.
Comment 1 Pavel Feldman 2012-01-05 08:13:07 PST
*** Bug 75624 has been marked as a duplicate of this bug. ***
Comment 2 Radar WebKit Bug Importer 2014-12-17 11:23:16 PST
<rdar://problem/19281532>
Comment 3 BJ Burg 2015-11-20 13:06:03 PST
Not an issue any more since we give up showing element previews when arrays are past a reasonable size.
Comment 4 Timothy Hatcher 2016-02-04 19:51:03 PST
<rdar://problem/13281722>