Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session deleted because of page crash #9

Open
saschak094 opened this issue Jan 24, 2018 · 4 comments
Open

Session deleted because of page crash #9

saschak094 opened this issue Jan 24, 2018 · 4 comments

Comments

@saschak094
Copy link

Getting the following stacktrace when I try to execute nightwatch tests

INFO Got sessionId from selenium 60486302460536b6afcc4bd6f0d6074b
LOG     → Completed command pause (1004 ms)
INFO Request: POST http://chromedriver:4444/session/60486302460536b6afcc4bd6f0d6074b/url
 - data:  {"url":"http://frontend:80"}
 - headers:  {"Content-Type":"application/json; charset=utf-8","Content-Length":28}
INFO Response 200 POST http://chromedriver:4444/session/60486302460536b6afcc4bd6f0d6074b/url (214ms) { sessionId: '60486302460536b6afcc4bd6f0d6074b',
  status: 13,
  value: { message: 'unknown error: session deleted because of page crash\nfrom tab crashed\n  (Session info: chrome=63.0.3239.84)\n  (Driver info: chromedriver=2.34.522913 (36222509aa6e819815938cbf2709b4849735537c),platform=Linux 4.9.60-linuxkit-aufs x86_64)' } }
LOG     → Completed command url (217 ms)
INFO Request: GET http://chromedriver:4444/session/60486302460536b6afcc4bd6f0d6074b/screenshot
 - data:
 - headers:  {"Accept":"application/json"}
INFO Response 200 GET http://chromedriver:4444/session/60486302460536b6afcc4bd6f0d6074b/screenshot (3ms) { sessionId: '60486302460536b6afcc4bd6f0d6074b',
  status: 6,
  value: { message: 'no such session\n  (Driver info: chromedriver=2.34.522913 (36222509aa6e819815938cbf2709b4849735537c),platform=Linux 4.9.60-linuxkit-aufs x86_64)' } }
LOG     → Completed command screenshot (5 ms)
INFO Request: POST http://chromedriver:4444/session/60486302460536b6afcc4bd6f0d6074b/elements
 - data:  {"using":"css selector","value":"body"}
 - headers:  {"Content-Type":"application/json; charset=utf-8","Content-Length":39}
INFO Response 200 POST http://chromedriver:4444/session/60486302460536b6afcc4bd6f0d6074b/elements (5ms) { sessionId: '60486302460536b6afcc4bd6f0d6074b',
  status: 6,
  value: { message: 'no such session\n  (Driver info: chromedriver=2.34.522913 (36222509aa6e819815938cbf2709b4849735537c),platform=Linux 4.9.60-linuxkit-aufs x86_64)' } }

I already increased the shm_size of docker to 2gb but the error still persists.

@RobCherry
Copy link
Owner

RobCherry commented Jan 26, 2018

Did you check the logs at /var/logs/supervisor/chromedriver.log in the docker container? If those are not helpful, you can try increasing log verbosity (see #7 (comment) for info on how to do that).

@saschak094
Copy link
Author

There you go
chromedriver.txt

@RobCherry
Copy link
Owner

This is the problem:

[0126/095231.841233:ERROR:nacl_helper_linux.cc(310)] NaCl helper process running without a sandbox!
Most likely you need to configure your SUID sandbox correctly
[15.579][INFO]: RESPONSE Navigate unknown error: session deleted because of page crash
from tab crashed

I don't have a particularly great solution for you, it appears to be tied to 84d8a7e. You can attempt forking and reverting that change to see if that fixes it.

@saschak094
Copy link
Author

Reverted to Commit 5f89eff, still receiving the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants