appium: bug: JavaScript heap out of memory

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Running Appium w/ WebDriverAgent on a real device, stopped running after three days (ran from the 14th to the 17th this month), with a JavaScript heap out of memory error.

Expected Behavior

For Appium not to encounter JavaScript heap out of memory error/crash.

Minimal Reproducible Example

I have none. Just clicking around in apps for a long time.

Environment

  • Operating system:
  • If running via appium CLI…
    • Appium CLI version (output of appium --version): 2.0.0-beta.58
    • Node.js version (output of node --version): v18.12.1
    • npm version (output of npm --version): 8.19.2
    • Last appium version which did not exhibit the problem: ?
  • If running Appium Desktop, its version:
  • Appium driver(s) and their version(s): - xcuitest@4.21.1 [installed (npm)]
  • Appium plugin(s) and their version(s): go-ios (gist attached later)
  • Platform and version under test: iOS 16.4.1
  • Real device or emulator/simulator: real device

Link to Appium Logs

https://gist.github.com/eyJhb/538bfcbeb8e17f37abe714c5d9e0f5c8 https://gist.github.com/eyJhb/de715c1ccfd8f2614841b33d9be0af2a

Futher Information

I am using this custom plugin, that I’ve written to automate the go-ios part of my setup. I can’t really see anything in here, that should leak, but I might be wrong -> https://gist.github.com/eyJhb/02d21807e51795b5f0b0ecf25c1fc2ea (shouldn’t be seen as me trying to ask for a code review, but rather give the complete picture).

EDIT: added more logs, didn’t catch it before it went under

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 24

Most upvoted comments

been running for 9 days now, without any issue. Thanks! 😃