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
Error 137 on gradle downloading after upgrading Android NDK to r10c #2882
Comments
I had the same problem and stop services didn't help me and I removed it. I solved my random 137 errors doing changes until VM happy, this remember me something. Another guy said that solved it adding echo's. You can try it too. echo "hey VM I'm a friend, don't kill me!" :) But I suggest:
I think I solved moving installations to Install key (and I'm running emulator on background... so I would remove stop services, probably already stopped...), I don't know but perhaps each stage has a different requirements. Pray for it and try it!. Good luck :) |
For now, it seems to me that NDK is just too big to accommodate reliably. |
Could you please elaborate on this statement? Understanding the exact limitation we're hitting is important if we're going to develop a workaround. Here are the possibilities I've looked at:
Another option might involve hosting a cut-down version of NDK somewhere, instead of downloading the full package from Google. They used to publish separate packages for legacy vs. modern, but that doesn't seem to be the case anymore. |
NDK's disk requirement makes it impractical to have it pre-installed (for now—we might revisit it at some point in the future). You can try installing it on the fly, but you have seen problems (this, too, might become easier if we can offer bigger VMs). |
This always worked for me until NDK r10 or so, when they changed over to a gigantic self extracting 7z file with the 64-bit and L support files. Any ideas where the mysterious Exit 137 / SIGHUP problems might be coming from? |
My guess is memory shortage. |
Is there anything in Travis that would go haywire after unpacking 3.5GB of data to the filesystem? When I ran |
Error 137 occurs not only when dealing with NDK. In some of the builds in project linked in first post it occurred also during downloading gradle distribution (about 40 MB with progress indicator printed to console). That step is located after unpacking NDK. So it looks like only the last possibility listed by @cernekee matches. |
I agree, error 137 can occurs when you execute sudo apt-get update too... Is Is it possible that a specific folder is limited? /tmp? In the case of SDK, the disk space issue appears when system-images are cloned into this folder... I don't know to check it or install travis locally. |
FWIW, I've seen Error 137 unpacking NDK into /opt. /opt and /tmp were both on the same filesystem in my test run.
|
They accepted a pull request deleting sys-img-armeabi-v7a-android-wear-20, we gain 790Mb unzipped. I use a work around to "solve" another issue deleting one sys-image more And I "solve" the random error code 137 using other workarounds I already commented (and I think is less frequent using container-based infrastructure). Now I read these links and your test and I think that perhaps the real issue is another: |
see discussion in travis-ci/travis-ci#2882
see discussion in travis-ci/travis-ci#2882
see discussion in travis-ci/travis-ci#2882
see discussion in travis-ci/travis-ci#2882
Building Android project which requires NDK have started being tricky with NDK r10c.
I've found #1409 with suggestion to stop some unneeded system services, but I'm not sure if has helped eg. in build 96 mysql service failed to stop. Finally I've got successful build but I had to restart it 3 times because it was failing on gradle downloading step.
How to get rid of such 137 errors?
The text was updated successfully, but these errors were encountered: