The -Xms and -Xmx options being passed to dex2oat by the build are blank. The build system gets the values to use there from https://android.googlesource.com/platform/build/+/b8e08222d9798c4f39d4d2c37bcd111bbc02f2ba/target/product/runtime_libart.mk?pli=1#62, which is included by https://android.googlesource.com/platform/build/+/b8e08222d9798c4f39d4d2c37bcd111bbc02f2ba/target/product/core_minimal.mk. My guess your product is somehow not inheriting from core_minimal.mk.
On Sat, Dec 2, 2017 at 5:48 AM, Tomasz Witke <[email protected]> wrote: > Everything was good til yesterday. I do't know what is going on.. > > [ 0% 23/12072] target dex2oat: out/target/product/atv/dex_ > bootjars/system/framework/x86/boot.art > FAILED: out/target/product/atv/dex_bootjars/system/framework/x86/boot.art > /bin/bash -c "(mkdir -p out/target/product/atv/symbols/system/framework/x86/ > ) && (rm -f out/target/product/atv/dex_bootjars/system/framework/x86//*.art > out/target/product/atv/dex_bootjars/system/framework/x86//*.oat ) && (rm > -f out/target/product/atv/symbols/system/framework/x86//*.art ) && (rm -f > out/target/product/atv/symbols/system/framework/x86//*.oat ) && > (ANDROID_LOG_TAGS=\"*:e\" out/host/linux-x86/bin/dex2oatd --runtime-arg > -Xms --runtime-arg -Xmx --image-classes=frameworks/base/preloaded-classes > --dex-file=out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/core- > libart_intermediates/javalib.jar --dex-file=out/target/common/ > obj/JAVA_LIBRARIES/conscrypt_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/legacy-test_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/ > bouncycastle_intermediates/javalib.jar --dex-file=out/target/common/ > obj/JAVA_LIBRARIES/ext_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/telephony- > common_intermediates/javalib.jar --dex-file=out/target/common/ > obj/JAVA_LIBRARIES/voip-common_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/ims-common_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/org.apache. > http.legacy.boot_intermediates/javalib.jar --dex-file=out/target/common/ > obj/JAVA_LIBRARIES/android.hidl.base-V1.0-java_intermediates/javalib.jar > --dex-file=out/target/common/obj/JAVA_LIBRARIES/android. > hidl.manager-V1.0-java_intermediates/javalib.jar > --dex-location=/system/framework/core-oj.jar > --dex-location=/system/framework/core-libart.jar > --dex-location=/system/framework/conscrypt.jar > --dex-location=/system/framework/okhttp.jar > --dex-location=/system/framework/legacy-test.jar > --dex-location=/system/framework/bouncycastle.jar > --dex-location=/system/framework/ext.jar > --dex-location=/system/framework/framework.jar > --dex-location=/system/framework/telephony-common.jar > --dex-location=/system/framework/voip-common.jar > --dex-location=/system/framework/ims-common.jar > --dex-location=/system/framework/apache-xml.jar --dex-location=/system/ > framework/org.apache.http.legacy.boot.jar --dex-location=/system/ > framework/android.hidl.base-V1.0-java.jar --dex-location=/system/ > framework/android.hidl.manager-V1.0-java.jar --oat-symbols=out/target/ > product/atv/symbols/system/framework/x86/boot.oat > --oat-file=out/target/product/atv/dex_bootjars/system/framework/x86/boot.oat > --oat-location=/system/framework/x86/boot.oat --image=out/target/product/ > atv/dex_bootjars/system/framework/x86/boot.art --base=0x70000000 > --instruction-set=x86 > --instruction-set-variant=x86 --instruction-set-features=default > --android-root=out/target/product/atv/system --runtime-arg -Xnorelocate > --compile-pic --no-generate-debug-info --generate-build-id --multi-image > --no-inline-from=core-oj.jar --generate-mini-debug-info > --compiled-classes=frameworks/base/compiled-classes-phone )" > not a valid memory value, or not divisible by 1024 > > > I'm exporting _JAVA_OPTIONS="-Xmx7g" > > Please Help. > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
