Home >Backend Development >Python Tutorial >Why Does My Selenium WebDriver Get a \'Session Deleted Because of Page Crash\' Error?
WebDriver Exception: Unknown Error: Session Deleted Because of Page Crash
Selenium users may encounter a confusing error message while using ChromeDriver:
unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed
This error results from a crash in the Chromium web engine underlying the Chrome browser, typically triggered by limited resources or specific system settings.
Solution:
To resolve this issue, several solutions are available:
Add Chrome Options:
Increase /dev/shm Size:
Share /dev/shm via Docker:
Disable Dev Shm Usage:
Additional Note:
The error message "from tab crashed" is related to a Chrome issue in which the system attempts to use /dev/shm for non-executable memory. The underlying fix is included in Chrome v65.0.3299.6.
The above is the detailed content of Why Does My Selenium WebDriver Get a 'Session Deleted Because of Page Crash' Error?. For more information, please follow other related articles on the PHP Chinese website!