--dump-dom cuts file short on Windows 2008; does not echo to console
Reported by
avrl...@gmail.com,
Sep 23 2017
|
|||||
Issue descriptionChrome Version : Version 61.0.3163.100 (Official Build) (64-bit) URLs (if applicable) : "https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&apikey=demo" Other browsers tested: no other browsers with this as there is no need. Add OK or FAIL, along with the version, after other browsers where you have tested this issue: Safari: Firefox: IE: What steps will reproduce the problem? (1) Run this on Windows 2008: chrome.exe --headless --disable-gpu --dump-dom "https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&apikey=demo" > .\A_test.dmp (2) cat/edit/type the file to the console, it stops before the file is complete. (3) Now run the same command on Mac: the A_test.dmp is completed What is the expected result? The behavior must the same on Windows as is on Mac What happens instead? --dump-dom cuts the file shorter on Windows More: if you run the command without the redirection command, nothing is shown on console Same behavior happens on Windows 7
,
Sep 27 2017
DOM team doesn't know anything about dump-dom. I don't know who is owning this CLI option.
,
Sep 28 2017
Ah, it's a headless feature. My bad. Routing to the relevant team.
,
Sep 28 2017
,
Oct 3 2017
Thanks for the repro instructions! I think this might be a version issue: we used to not output the whole dom before but we changed that behavior not that long ago. Try downloading and testing with Google Chrome canary and report back to this bug if the issue still happens.
,
Oct 3 2017
I'm afraid it is something deeper.. I tried on the same computer as before, bur now with Chrome Canary: Windows Server 2008 R2 Standard Chrome Canary Version 63.0.3231.0 (Official Build) canary (64-bit) On the browser itself, it runs just fine: the entire file is properly displayed, but not when it runs in "headless". Same steps as before were performed. Thanks for looking into this; although I have resorted to a different method to get that file downloaded, I think it is still a bug that has to be fixed.
,
Oct 3 2017
Of course, I said same steps, but the Chrome is different. Here's my actual command line: del .\A_test.dmp (making sure I don't have anything in there) cd (Windows pwd: echoes c:\users\adelara) And now the command: "C:\Users\adelara\AppData\Local\Google\Chrome SxS\Application\chrome.exe" --headless --disable-gpu --dump-dom "https://www.alphavantage.co/query?function=TIME_SERIES_DAILY&symbol=MSFT&apikey=demo" > .\A_test.dmp
,
Oct 4 2017
Thanks for taking the time to test it with Canary. I was getting different outputs with stable and canary, but in hindsight that probably is not the error that you were seeing. Would you mind attaching the output that you get? I cannot reproduce in Windows 10 so I might see if I can get access with 2008 R2. My suspicious could be that sometimes the sandbox in Windows does some weird stuff, and it could be related to Windows 7/8 only. Using the devtools protocol to communicate to headless might resolve this (although you already found a solution!) Thanks again for your time!
,
Oct 4 2017
Here is the result with the two browsers: WithCanary.dmp WithChrome.dmp They both are the same size (21,169 bytes), although slightly different content as it is a real feed. If you do a diff (with fc.exe) it shows the diffs, but it's probably easier loading them on a text editor and flip them to see the diffs. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by e...@chromium.org
, Sep 27 2017