升级后,我的 angular e2e 测试开始失败,并显示以下消息。
我正在使用 directConnect: true
我所有的测试都使用 async/await。
看起来它正在崩溃并且在我的测试中并不总是在同一点崩溃 - 我确实有一些测试成功运行。也禁用分片。
- Failed: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: headless chrome=83.0.4103.61)
(Driver info: chromedriver=83.0.4103.39 (ccbf011cb2d2b19b506d844400483861342c20cd-refs/branch-heads/4103@{#416}),platform=Linux 3.10.0-1127.el7.x86_64 x86_64)
更新:2020 年 6 月 1 日
添加更多共享内存(找到具有更多内存的 CI 运行程序)后,这个问题就消失了。仍然将问题留在“神秘模式”中。
2020 年 6 月 2 日更新:
Chrome 标志
'headless',
'verbose',
'w3c=false',
'disable-infobars',
'window-size=1440x1080',
'disable-dev-shm-usage',
'disable-gpu',
'incognito',
'disable-extensions',
'disable-plugins',
'no-sandbox'
最佳答案
我在 podman 中使用 chrome headless 并且遇到了同样的问题,这似乎对我有用:
过去我需要这个选项,因为在我使用的专有云软件中无法更改默认的/dev/shm 大小,看起来它在上一个 chrome 版本中已损坏。
有趣的是 - chrome 在更改后也运行得更快
关于google-chrome - chrome 83 自升级以来开始崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62030026/