-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #13631
Comments
@dennybritz Can you please apply the patch appium/appium-base-driver#370 to your local sources and try again? |
I applied the changes to |
Can you provide the updated snapshot? |
Here's a snapshot: |
The recent snapshot seems to be the same. Make sure the appium-base-driver module is deduplicated. It is necessary to make sure the instance is used by both the umbrella driver (the main Appium module) and appium-xcuitest-driver. #13321 (comment) contains more details on how to deploy the changes locally |
I haven't been able to test this. I don't know why patching the module didn't work, but I tried building Appium from scratch and linking in the appium-base-driver module, but when doing that, I get the following error when trying to execute commands:
|
The log above seems odd. I'll spend some time to check the stuff locally, although I cannot say how long it would take |
For what it's worth, I did built the |
Try to also apply the changes from #13635 to the main module (except of version bump in package.js) This should help |
That seems to have fixed the session close issue but the memory leak problem is still there: |
Thanks for your patience. We really appreciate your support. Please try if there are still memory leaks after appium/appium-base-driver#371 is applied |
Yep, this seems to fix it! 🎉 |
Perfect. We'll merge the changes by the end of the day. Although, it will take some time until new versions of all components will be published (I'm not sure if Appium 1.16 is going to include this change) CC @dpgraham |
The fix has been published to beta |
The problem
Same as #13321 and #13074
Appium crashes after some time with
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
due to memory leak. Process memory is continuously increasing.I saw this problem with the latest stable version, then upgraded to
appium@beta
as suggested in the other issue. The problem is still the same.Environment
1.16.0-beta.2
N/A
macOS 10.15.1
v13.1.0
npm 6.13.1
iOS 12.4
Real Device
CLI
Details
The application is taking screenshots with
get_screenshot_as_file
in a loop, same as the other issue(s) linked above. Here's a heap snapshot taken a 10 minutes into the run with memory usage already at several GB:Heap.20191125.115127.20733.0.006.heapsnapshot.zip
I took a brief look at the dump and it seems like all screenshots are left in memory?
Link to Appium logs
https://gist.github.com/dennybritz/c727f4ad03379340713fc3d3a19b0dc5
The text was updated successfully, but these errors were encountered: