-
Notifications
You must be signed in to change notification settings - Fork 145
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
Out of memory error during some patrol builds on Codemagic device #2384
Comments
Hi @martin1080p ! Some additional questions:
I checked my project and Maybe this much memory is indeed needed, but it is unlikely imo. Did you try to increase this parameter? |
This error hasn't occurred when tested locally on Win, Linux and Mac. This parameter was already increased from Unfortunately I am unable to share the whole project since it's commercial. However I might be able to share some pieces of code on demand. |
I think we should search for solution around the workflow or codemagic machines. Could you share what your workflow looks like? Can be just steps names, maybe there is something that consumes most of the memory before building We also found this, maybe you'll find it helpful: https://docs.codemagic.io/troubleshooting/common-android-issues/#java-heap-space-out-of-memory-error |
|
Steps to reproduce
Actual results
Expected Outcome: The workflow completes successfully, with the patrol tests built and executed without errors.
Intermittent Issue: Occasionally, the patrol test build step fails with an "Out of memory" error.
Current Configuration: The
org.gradle.jvmargs
setting ingradle.properties
is set to-Xmx8g
.Observation: Despite the 8 GB memory allocation, the build inconsistently fails due to memory constraints—sometimes succeeding and sometimes failing without any changes to the code or configuration.
Is there a way to correctly test whether gradle has correctly alocated 8 GB in memore?
Logs
Logs of FAILED build
Logs of SUCCESSFUL build
Patrol version
patrol: ^3.11.0
Patrol Doctor output
Patrol Doctor output
Flutter Doctor output
Flutter Doctor output
The text was updated successfully, but these errors were encountered: