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

Geckodriver stack overflow with Android #1658

Closed
testingbot opened this issue Nov 22, 2019 · 6 comments
Closed

Geckodriver stack overflow with Android #1658

testingbot opened this issue Nov 22, 2019 · 6 comments
Labels

Comments

@testingbot
Copy link

System

  • Version: v0.26.0
  • Platform: Ubuntu 18.04.2 LTS with a Real Device Android connected via ADB
  • Firefox: fennec-68.2.1.en-US.android-aarch64.apk

Testcase

Trying to get geckodriver to work with Firefox on Android on a (real device) Pixel.
I installed geckodriver v0.26.0, then started it with geckodriver -p 3031 --log trace.
When I send a start session request, the geckodriver process crashes:

thread 'webdriver dispatcher' has overflowed its stack fatal runtime error: stack overflow Aborted (core dumped)

I start the session with:
curl -H "Content-Type: application/json" -X POST -v http://localhost:3031/session -d '{"capabilities":{"firstMatch":[{"moz:firefoxOptions":{"androidPackage":"org.mozilla.firefox"}}]}}'

Trace-level log

https://gist.github.com/testingbot/dbfde9aae14797363b4722c4af0c392d

@whimboo
Copy link
Collaborator

whimboo commented Nov 25, 2019

Does it work with the default port, means when you remove the -p option?

@testingbot
Copy link
Author

Figured out what the problem is: the screen was turned off and locked while sending the curl command.

Had to do this: adb -d shell input keyevent 26 && adb -d shell input keyevent 82 to wake up and unlock the screen, after that it worked like a charm 👍

@whimboo
Copy link
Collaborator

whimboo commented Nov 26, 2019

Great to hear that! If there are other issues please let us know!

@andreastt
Copy link
Contributor

Is there anything we can do to turn the screen on? Perhaps adb shell input keyevent KEYCODE_POWER?

@whimboo
Copy link
Collaborator

whimboo commented Nov 26, 2019

Hm, I wonder if chromedriver handles that? If yes we might also wanna do it.

@lock
Copy link

lock bot commented Jan 10, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.

@lock lock bot locked and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants