java.lang.OutOfMemoryError: Java heap space

Appcelerator JIRA | Rick Blalock | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    It keeps hanging on dexer. Once I upped the memory size to 512, i finally got an error back (after waiting about 10 minutes). Dexer command: {code} [INFO] Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java "-Xmx512M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/androidsdk/platform-tools" "-jar" "/androidsdk/build-tools/21.0.1/lib/dx.jar" "--dex" "--output=/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes.dex" "/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/lib/titanium-verify.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/facebook.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/bolts-android-1.1.2.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/facebooksdk.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.imagefactory/2.2.1/imagefactory.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/map.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/lib/google-play-services.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/cloudpush.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/aps-cloudpush-1.1.4.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-base.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-gcm.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-v8.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/aps-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-android.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/jaxen-1.1.1.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/ti-commons-codec-1.3.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-common.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/titanium.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-app.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-ui.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-filesystem.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-media.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v4.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v7-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-locale.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-network.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/thirdparty.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-xml.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-platform.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-database.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-gesture.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-geolocation.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-utils.jar" {code} Error I finally get back: {code} [ERROR] Failed to run dexer: [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate; [ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:161) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:732) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1; [ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:161) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:732) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] [ERROR] UNEXPECTED TOP-LEVEL ERROR: [ERROR] java.lang.OutOfMemoryError: Java heap space [ERROR] at java.util.HashMap.resize(HashMap.java:703) [ERROR] at java.util.HashMap.putVal(HashMap.java:628) [ERROR] at java.util.HashMap.put(HashMap.java:611) [ERROR] at com.android.dx.ssa.LocalVariableInfo.addAssignment(LocalVariableInfo.java:197) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.processBlock(LocalVariableExtractor.java:180) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.doit(LocalVariableExtractor.java:89) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.extract(LocalVariableExtractor.java:55) [ERROR] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:49) [ERROR] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98) [ERROR] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72) [ERROR] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:297) [ERROR] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137) [ERROR] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:729) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) {code} Environment: {code} Android Environment ✓ sdk installed (/androidsdk) ! tools untested version 24.3.4; may or may not work ! platform tools untested version 23; may or may not work ✓ build tools installed (v21.0.1) ✓ adb installed /androidsdk/platform-tools/adb ✓ android installed /androidsdk/tools/android ✓ emulator installed /androidsdk/tools/emulator ✓ mksdcard installed /androidsdk/tools/mksdcard ✓ zipalign installed /androidsdk/build-tools/21.0.1/zipalign ✓ aapt installed /androidsdk/build-tools/21.0.1/aapt ✓ aidl installed /androidsdk/build-tools/21.0.1/aidl ✓ targets installed (40 found) ✓ avds installed (2 found) ✓ ndk installed (r8e (64-bit)) ✓ ndk-build installed (/android-ndk/ndk-build) {code}

    Appcelerator JIRA | 2 years ago | Rick Blalock
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    It keeps hanging on dexer. Once I upped the memory size to 512, i finally got an error back (after waiting about 10 minutes). Dexer command: {code} [INFO] Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java "-Xmx512M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/androidsdk/platform-tools" "-jar" "/androidsdk/build-tools/21.0.1/lib/dx.jar" "--dex" "--output=/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes.dex" "/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/lib/titanium-verify.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/facebook.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/bolts-android-1.1.2.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/facebooksdk.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.imagefactory/2.2.1/imagefactory.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/map.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/lib/google-play-services.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/cloudpush.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/aps-cloudpush-1.1.4.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-base.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-gcm.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-v8.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/aps-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-android.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/jaxen-1.1.1.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/ti-commons-codec-1.3.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-common.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/titanium.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-app.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-ui.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-filesystem.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-media.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v4.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v7-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-locale.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-network.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/thirdparty.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-xml.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-platform.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-database.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-gesture.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-geolocation.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-utils.jar" {code} Error I finally get back: {code} [ERROR] Failed to run dexer: [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate; [ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:161) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:732) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1; [ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:161) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:732) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] [ERROR] UNEXPECTED TOP-LEVEL ERROR: [ERROR] java.lang.OutOfMemoryError: Java heap space [ERROR] at java.util.HashMap.resize(HashMap.java:703) [ERROR] at java.util.HashMap.putVal(HashMap.java:628) [ERROR] at java.util.HashMap.put(HashMap.java:611) [ERROR] at com.android.dx.ssa.LocalVariableInfo.addAssignment(LocalVariableInfo.java:197) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.processBlock(LocalVariableExtractor.java:180) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.doit(LocalVariableExtractor.java:89) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.extract(LocalVariableExtractor.java:55) [ERROR] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:49) [ERROR] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98) [ERROR] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72) [ERROR] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:297) [ERROR] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137) [ERROR] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:729) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) {code} Environment: {code} Android Environment ✓ sdk installed (/androidsdk) ! tools untested version 24.3.4; may or may not work ! platform tools untested version 23; may or may not work ✓ build tools installed (v21.0.1) ✓ adb installed /androidsdk/platform-tools/adb ✓ android installed /androidsdk/tools/android ✓ emulator installed /androidsdk/tools/emulator ✓ mksdcard installed /androidsdk/tools/mksdcard ✓ zipalign installed /androidsdk/build-tools/21.0.1/zipalign ✓ aapt installed /androidsdk/build-tools/21.0.1/aapt ✓ aidl installed /androidsdk/build-tools/21.0.1/aidl ✓ targets installed (40 found) ✓ avds installed (2 found) ✓ ndk installed (r8e (64-bit)) ✓ ndk-build installed (/android-ndk/ndk-build) {code}

    Appcelerator JIRA | 2 years ago | Rick Blalock
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    NetBeans not liking libraries in lib-src

    Stack Overflow | 7 years ago | DJTripleThreat
    java.lang.OutOfMemoryError: Java heap space
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Studio 1.0 failing build at dexDebug or dexRelease

    Stack Overflow | 2 years ago | Leon Lucardie
    java.lang.OutOfMemoryError: GC overhead limit exceeded

  1. linxiaolong 1 times, last 3 months ago
  2. mortalman7 1 times, last 9 months ago
  3. regisso 2 times, last 10 months ago
6 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.OutOfMemoryError

    Java heap space

    at java.util.HashMap.resize()
  2. Java RT
    HashMap.put
    1. java.util.HashMap.resize(HashMap.java:703)
    2. java.util.HashMap.putVal(HashMap.java:628)
    3. java.util.HashMap.put(HashMap.java:611)
    3 frames
  3. Android SDK's dx Tool
    Main.main
    1. com.android.dx.ssa.LocalVariableInfo.addAssignment(LocalVariableInfo.java:197)
    2. com.android.dx.ssa.LocalVariableExtractor.processBlock(LocalVariableExtractor.java:180)
    3. com.android.dx.ssa.LocalVariableExtractor.doit(LocalVariableExtractor.java:89)
    4. com.android.dx.ssa.LocalVariableExtractor.extract(LocalVariableExtractor.java:55)
    5. com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:49)
    6. com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98)
    7. com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
    8. com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:297)
    9. com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137)
    10. com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93)
    11. com.android.dx.command.dexer.Main.processClass(Main.java:729)
    12. com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
    13. com.android.dx.command.dexer.Main.access$300(Main.java:82)
    14. com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
    15. com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
    16. com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
    17. com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
    18. com.android.dx.command.dexer.Main.processOne(Main.java:632)
    19. com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
    20. com.android.dx.command.dexer.Main.runMonoDex(Main.java:279)
    21. com.android.dx.command.dexer.Main.run(Main.java:245)
    22. com.android.dx.command.dexer.Main.main(Main.java:214)
    23. com.android.dx.command.Main.main(Main.java:106)
    23 frames