Lime setup android out of memory error


#1

Runned into this:

“Install toolchains/x86_64-4.9/prebuilt/windows-x86_64/bin/x86_64-linux-android-ld.gold.exe
Called from ? line 1
Called from CommandLineTools.hx line 2080
Called from CommandLineTools.hx line 26
Called from CommandLineTools.hx line 109
Called from CommandLineTools.hx line 2095
Called from utils/PlatformSetup.hx line 450
Called from utils/PlatformSetup.hx line 460
Called from utils/PlatformSetup.hx line 879
Called from utils/PlatformSetup.hx line 240
Called from haxe/zip/Reader.hx line 194
Called from haxe/io/Bytes.hx line 473
Uncaught exception - alloc.c(180) : out of memory”

During NDK install I believe. Lime 5.9.1 if that is relevant. On Windows 10.

Edit 1: runned it a second time skipped SDK, chose to use previously download file and it threw out:
" Install toolchains/x86_64-4.9/prebuilt/windows-x86_64/x86_64-linux-android/bin/ld.exe
Called from ? line 1
Called from CommandLineTools.hx line 2080
Called from CommandLineTools.hx line 26
Called from CommandLineTools.hx line 109
Called from CommandLineTools.hx line 2095
Called from utils/PlatformSetup.hx line 450
Called from utils/PlatformSetup.hx line 460
Called from utils/PlatformSetup.hx line 879
Called from utils/PlatformSetup.hx line 240
Called from haxe/zip/Reader.hx line 194
Called from haxe/io/Bytes.hx line 473
Uncaught exception - alloc.c(180) : out of memory"

neko hit around 1.8 GB memory usage at the time it threw. Same thing when flash player hits the 32 bit mem wall I think.

Edit 2: runned it a couple more times and back to:
Install toolchains/x86_64-4.9/prebuilt/windows-x86_64/x86_64-linux-android/bin/ld.gold.exe
Called from ? line 1
Called from CommandLineTools.hx line 2080
Called from CommandLineTools.hx line 26
Called from CommandLineTools.hx line 109
Called from CommandLineTools.hx line 2095
Called from utils/PlatformSetup.hx line 450
Called from utils/PlatformSetup.hx line 460
Called from utils/PlatformSetup.hx line 879
Called from utils/PlatformSetup.hx line 240
Called from haxe/zip/Reader.hx line 194
Called from haxe/io/Bytes.hx line 473
Uncaught exception - alloc.c(180) : out of memory

Looked like it was passing and thought it may actually end the install but it is back at stopping on the same file.


#2

Unrelated.
Updating Android SDK is showing:
Downloading SDK Platform Android 8.1.0, API 27, revision 1
Download finished with wrong size. Expected 65606517 bytes, got 65738431 bytes.
Done. Nothing was installed.

Tried to download the package to place it in the temp file inside the sdk so it doesn’t have to download it but not being able to find direct link.


#3

Fixed it by going to : https://developer.android.com/ndk/downloads/index.html
and downloading latest release and unpacking to proper NDK directory.

EDIT 1: not so fast, throwing “Invalid Android NDK: c:/Development/Android NDK”

Dear Zeus…


#4

Is that where you installed the NDK? Perhaps try a directory without a space in it?

Then use lime config ANDROID_NDK path/to/ndk to set the new path


#5

It’s the default so I thought the space wasn’t a problem, ended up installing android studio and using gradle with it. Hope I can point the env vars to android studio’s installed SDK and NDK, if that is possible.
Though I have the space containing directories for sdk and ndk on another computer and it’s working just fine. Don’t remember running into the out of memory issue before. Could be my faulty recollection.


#6

I didn’t manage to use Android Studio’s version of ndk, so went back to trying to install NDK in d:\Android\ndk, so no spaces, it displayed:
Install toolchains/mips64el-linux-android-4.9/prebuilt/windows-x86_64/libexec/gcc/mips64el-linux-android/4.9/cc1plus.exe
Called from ? line 1
Called from CommandLineTools.hx line 2080
Called from CommandLineTools.hx line 26
Called from CommandLineTools.hx line 109
Called from CommandLineTools.hx line 2095
Called from utils/PlatformSetup.hx line 450
Called from utils/PlatformSetup.hx line 460
Called from utils/PlatformSetup.hx line 879
Called from utils/PlatformSetup.hx line 240
Called from haxe/zip/Reader.hx line 194
Called from haxe/io/Bytes.hx line 473
Uncaught exception - alloc.c(180) : out of memory

Kind of lost on what is going on, it is trying to install revision 11c until it explodes at around 1.8 GB of ram.

Edit 1: going to try to download manually, uncompress through something with 64 memory addressing and see if it gets picked up when pointed to.

Edit 2: Manually downloaded and pointed to, had to install version 19 for the SDK and a JDK, it now builds and pushes to device. It was just a zip file from hell it appears. :slight_smile:


#7

I would recommend manually downloading and extracting, then running lime config ANDROID_NDK path/to/ndk after :slight_smile: