WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
153101
Web Inspector: Hangs when logging huge JSON object
https://bugs.webkit.org/show_bug.cgi?id=153101
Summary
Web Inspector: Hangs when logging huge JSON object
Saam Barati
Reported
2016-01-14 11:52:09 PST
Created
attachment 268983
[details]
sample When logging a huge JSON string, the inspector will hang. This happened when I logged a huge JSON string in the inspector itself. When trying to inspect the inspector, it was hanging. Attached is a sample of the process.
Attachments
sample
(115.07 KB, text/plain)
2016-01-14 11:52 PST
,
Saam Barati
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-01-14 11:52:39 PST
<
rdar://problem/24192303
>
Joseph Pecoraro
Comment 2
2016-01-14 16:43:02 PST
My initial thought would be regex searching if the string "looks like a stack trace".
Nikita Vasilyev
Comment 3
2016-01-14 20:55:28 PST
Saam, could you post a JSON string that causes the hang? I can take a look at what's going on there.
Joseph Pecoraro
Comment 4
2016-01-15 11:02:50 PST
(In reply to
comment #3
)
> Saam, could you post a JSON string that causes the hang? > I can take a look at what's going on there.
Hmm, I tried just a large, multiline JSON string and saw a lot of time spent in Layout, but not Regex matching =(: <script> var arr = []; for (var i = 0; i < 1e5; ++i) arr.push({something: i}); console.log(JSON.stringify(arr, null, 2)); </script> So, I'm not quite sure. Maybe the output itself has to start matching a particular format.
Saam Barati
Comment 5
2016-01-22 22:49:02 PST
(In reply to
comment #3
)
> Saam, could you post a JSON string that causes the hang? > I can take a look at what's going on there.
I'll try to reproduce again locally. I'll post an update with my findings. Maybe this was only materializing when inspecting the inspector?
Timothy Hatcher
Comment 6
2016-05-09 08:13:23 PDT
This could have been fixed by Joe turning off color swatches for JS resources. It also could have been the hangs we were seeing due to a JSC JIT bug earlier this year. Lets reopen or file a new bug if we hit this again. Nothing actionable right now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug