question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot allocate memory

See original GitHub issue

Versions

  • Python: 3.10
  • OS: Windows 10
  • Buildozer: 1.4.0

Description

buildozer -v android debug running into a problem with the gradle build, it throws errors and never completes. All the errors it throws are about memory, for examlple: .buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp/build/intermediates/merged_jni_libs/debug/out/arm64-v8a/libhidapi.so: Cannot allocate memory

How would one solve this issue, as I haven’t found a way to increase the allocated memory, and cannot think of any other solutions?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RobertFlattcommented, Nov 5, 2022

Thanks for the info on jdk17 and Gradle.

But it wasn’t also easy, as long I realized that there is probably a Buildozer bug. Buildozer does not always update targetSdkVersion according to android.api param change.

FYI https://github.com/Android-for-Python/Android-for-Python-Users#changing-buildozerspec

Also FYI https://github.com/Android-for-Python/Android-for-Python-Users#androidapi

0reactions
github-actions[bot]commented, Nov 12, 2022

👋 @AriDeve, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. Let us know if this comment was made in error, and we’ll be happy to reopen the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix “bash: fork cannot allocate memory Error”? - Skynats
The insufficient memory issue happens due to several reasons but basically, it occurs due to something is eating up all of your memory...
Read more >
Why am I frequently getting this "Cannot allocate memory" error?
Most probably the problem lies with one of the less frequently used indicators you are using, e.g., either the one on the left...
Read more >
How to fix Linux "bash fork Cannot allocate memory" error
The OOM situation is caused by exhausting the memory allowed to a given cpuset/control group, then “available memory” is the total amount ...
Read more >
bash: fork: Cannot allocate memory - linux - Stack Overflow
On investigating, found that system is using all the memory for Caching and is not freeing up memory. This is called Cache Ballooning...
Read more >
Error on Plesk for Linux: Fork failed - Cannot allocate memory
Many actions on a Plesk server cannot be performed with the following error: Cannot allocate memory. Sites or random Plesk pages are not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found