Intermittent build failure Execution failed for task ':app:packageDebug'. | java.lang.OutOfMemoryError (no error message)

Open
#1,224 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin

Research direction

Start with the linked Treeherder log and the :app:packageDebug failure, including the reported OutOfMemoryError and NDK warning. Reproduce the intermittent build failure and identify a change that prevents the task from failing; done means the debug package build completes reliably.

Written by the indexing model from the issue text.

Description

🐞 bug

Log: https://treeherder.mozilla.org/logviewer.html#?job_id=305481624&repo=reference-browser

[task 2020-06-08T15:15:41.702Z] > Task :app:stripDebugDebugSymbols
[task 2020-06-08T15:15:41.702Z] WARNING: Compatible side by side NDK version was not found. Default is 20.0.5594570.
[task 2020-06-08T15:15:41.702Z] Compatible side by side NDK version was not found. Default is 20.0.5594570.
[task 2020-06-08T15:15:41.702Z] Unable to strip the following libraries, packaging them as they are: libfreebl3.so, libfreebl3.so, libfreebl3.so, libfreebl3.so, libglean_ffi.so, libglean_ffi.so, libglean_ffi.so, libglean_ffi.so, libjnidispatch.so, libjnidispatch.so, libjnidispatch.so, libjnidispatch.so, libjnidispatch.so, libjnidispatch.so, libjnidispatch.so, liblgpllibs.so, liblgpllibs.so, liblgpllibs.so, liblgpllibs.so, libmegazord.so, libmegazord.so, libmegazord.so, libmegazord.so, libmozavcodec.so, libmozavcodec.so, libmozavcodec.so, libmozavcodec.so, libmozavutil.so, libmozavutil.so, libmozavutil.so, libmozavutil.so, libmozglue.so, libmozglue.so, libmozglue.so, libmozglue.so, libnss3.so, libnss3.so, libnss3.so, libnss3.so, libnssckbi.so, libnssckbi.so, libnssckbi.so, libnssckbi.so, libplugin-container.so, libplugin-container.so, libplugin-container.so, libplugin-container.so, libsoftokn3.so, libsoftokn3.so, libsoftokn3.so, libsoftokn3.so, libxul.so, libxul.so, libxul.so, libxul.so.
[task 2020-06-08T15:15:41.802Z]
[task 2020-06-08T15:15:41.802Z] > Task :app:mergeDebugJavaResource
[task 2020-06-08T15:15:41.802Z] > Task :app:mergeProjectDexDebug
[task 2020-06-08T15:15:54.002Z] > Task :app:packageDebug FAILED
[task 2020-06-08T15:15:54.302Z]
[task 2020-06-08T15:15:54.304Z] FAILURE: Build failed with an exception.
[task 2020-06-08T15:15:54.304Z]
[task 2020-06-08T15:15:54.304Z] * What went wrong:
[task 2020-06-08T15:15:54.304Z] Execution failed for task ':app:packageDebug'.
[task 2020-06-08T15:15:54.304Z] > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
[task 2020-06-08T15:15:54.304Z] > java.lang.OutOfMemoryError (no error message)
[task 2020-06-08T15:15:54.304Z]
[task 2020-06-08T15:15:54.304Z] * Try:
[task 2020-06-08T15:15:54.304Z] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Dominant language
Kotlin
Stars
668
Forks
198
Avg merge
8h 47m
Merged PRs (30d)
53

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla-mobile/reference-browser

All issues in mozilla-mobile/reference-browser

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.