New issue
Advanced search Search tips

Issue 858968 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 828601
Owner: ----
Closed: Aug 16
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

"Save HAR with content" emit invalid json

Project Member Reported by kouhei@chromium.org, Jun 29 2018

Issue description

Chrome Version: (copy from chrome://version)
OS: Linux

What steps will reproduce the problem?
(1) Open Devtools Network Panel
(2) Navigate to https://www.sfgate.com/
(3) Right click on any resource item in the Network panel, and "Save as HAR with content.
(4) Repeat above steps several times.

What is the expected result?
The output is a valid JSON file.

What happens instead?
Sometimes the HAR file is invalid JSON.

---

After some inspection, the corruption seems to always happen around 100kb boundary, which matches https://cs.chromium.org/chromium/src/third_party/blink/renderer/devtools/front_end/network/HARWriter.js?l=129

Other variation is unexpected EOF.
 
This happened to me in Version 67.0.3396.99 (Official Build) (64-bit) / Linux.
An example of corrupted HAR file:
https://drive.google.com/open?id=1pi6zWTsIPmnbzz8Pjbiy6oM01OrjqNZH
Mergedinto: 828601
Status: Duplicate (was: Untriaged)
Thanks for the report and repro case.  I was able to reproduce on Linux 68.0.3418.0 and several versions, before, but I'm unable to repro on ToT.  Although the repro is not consistent, I did a bisect to [1], and I suspect that the core issue might have been fixed by [2], which fixed encoding of unicode characters.

Please let me know if you can still reproduce on M69 or later, and we will take a look.

[1] https://chromium.googlesource.com/chromium/src/+log/66cd5a13c1bb9b1a004ba61108625275888f9539..9decdfe1e7a0d56b7a8edc28c0239a16e5424d3c

[2] https://bugs.chromium.org/p/chromium/issues/detail?id=828601

Sign in to add a comment