Chrome crashes when JavaScript code returns large string from DevTools to ChromeDriver |
||||
Issue description
Chrome Version: 69.0.3497.100
OS: Observed on Linux only
What steps will reproduce the problem?
(1) Install ChromeDriver and Python WebDriver API
(2) Run the following Python script:
from selenium import webdriver
driver = webdriver.Chrome()
driver.execute_script('return new Array(1000*1000*1000).join("0")')
What is the expected result?
A string with about 1 billion characters is returned from Chrome/DevTools to ChromeDriver
What happens instead?
On Linux and Mac, Chrome crashes.
On Windows, the page crashes, showing 'Aw Snap' error, though Chrome stays up.
Note: I discovered this issue while investigating issue #877105 . Returning a shorter string (e.g., about 100 million characters) crashes ChromeDriver instead of Chrome.
Running the same JavaScript code directly in Chrome's DevTools window results in page crash with 'Aw Snap', not Chrome crash.
Running the same JavaScript code inside HTML file works properly.
,
Oct 3
As per comment# 0, issue requires ChromeDriver and Python WebDriver APi to test and confirm the issue, which is out of scope for TE. Hence adding TE-NeedsTriageHelp label to it and requesting someone from the Dev team have a look at this issue. Thanks!
,
Oct 9
I don't think this is expected to work. Renderer hits the memory limit and crashes. Do you have a usecase, John?
,
Oct 9
This is related to Google internal bug http://b/112588554, which contains a use case. The original bug reported ChromeDriver crashing for certain result sizes. The ChromeDriver crash has now been fixed, but slightly larger result sizes cause Chrome to crash.
,
Dec 3
|
||||
►
Sign in to add a comment |
||||
Comment 1 by phanindra.mandapaka@chromium.org
, Oct 1