Problem:
When using InstaPy, a Python and Selenium-based program, users sometimes encounter the error "unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed."
Error Message:
ERROR [2018-12-10 09:53:54] [user] Error occurred while deleting cookies from web browser! b'Message: invalid session id\n (Driver info: chromedriver=2.44.609551 (5d576e9a44fe4c5b6a07e568f1ebc753f1214634),platform=Linux 4.15.0-42-generic x86_64)\n'
Possible Reasons:
Solutions:
chrome_options.add_argument('--no-sandbox')
sudo mount -t tmpfs -o rw,nosuid,nodev,noexec,relatime,size=512M tmpfs /dev/shm
-v /dev/shm:/dev/shm
chrome_options.add_argument('--disable-dev-shm-usage')
Additional Notes:
The above is the detailed content of Why Does InstaPy Fail with \'cannot determine loading status from tab crashed\' and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!