[ERROR] Error occurred during initialization of VM - Android Q&A, Help & Troubleshooting

HTML:
Docs droiddoc: /home/android/CM10/out/target/common/docs/api-stubs
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
make: *** [/home/android/CM10/out/target/common/docs/api-stubs-timestamp] Error 45
[email protected]:/home/android/CM10# Error occurred during initialization of VM
I try to build CM on VPS (it have 1 gb ram and one core cpu - only for test ). Can i build succesful CM on this machine?

refresh

Related

[Q] Kitkat (Hammerhead AOSP) compilation errors

Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
Full errors are here:
http://pastebin.com/QAFQWbF5
Can someone please help with the error?
tthtlc said:
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
Full errors are here:
http://pastebin.com/QAFQWbF5
Can someone please help with the error?
Click to expand...
Click to collapse
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
shimp208 said:
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
Click to expand...
Click to collapse
My java version is the latest 1.7 (from Ubuntu repository):
Ubuntu 12.04.03, LTS, 64-bit
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
javac 1.7.0_51
As per this:
http://forum.pcsoft.fr/fr-FR/pcsoft...n-error-target-release-1-5-conflicts/read.awp
and this:
https://groups.google.com/forum/#!topic/android-platform/NHhin464dxc
It seemed that Java 7 cannot generate compatible Java 5 binaries, whereas Java 6 still can.
Ok, I shall try downgrading it to Java 6 than.
Am I right to say this?

Error while compiling android 6.0

Hi guys. I downloaded the Android 6.0 source yesterday and tried to compile it today, but I'm getting the following error:
Code:
[ 10% 3372/33016] Docs droiddoc: out/target/common/docs/system-api-stubs
FAILED: /bin/bash out/target/common/docs/system-api-stubs-timestamp.rsp
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: com.sun.javadoc.MethodDoc.isDefault()Z
at com.google.doclava.Converter$2.make(Converter.java:428)
at com.google.doclava.Converter$Cache.obtain(Converter.java:686)
at com.google.doclava.Converter.obtainMethod(Converter.java:391)
at com.google.doclava.Converter.convertMethods(Converter.java:368)
at com.google.doclava.Converter.initClass(Converter.java:125)
at com.google.doclava.Converter.makeInfo(Converter.java:67)
at com.google.doclava.Doclava.start(Doclava.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
[ 10% 3372/33016] Docs droiddoc: out/target/common/docs/api-stubs
FAILED: /bin/bash out/target/common/docs/api-stubs-timestamp.rsp
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodError: com.sun.javadoc.MethodDoc.isDefault()Z
at com.google.doclava.Converter$2.make(Converter.java:428)
at com.google.doclava.Converter$Cache.obtain(Converter.java:686)
at com.google.doclava.Converter.obtainMethod(Converter.java:391)
at com.google.doclava.Converter.convertMethods(Converter.java:368)
at com.google.doclava.Converter.initClass(Converter.java:125)
at com.google.doclava.Converter.makeInfo(Converter.java:67)
at com.google.doclava.Doclava.start(Doclava.java:293)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
I don't know what to do about this error, as I'm new to compiling ROMs.
I'm compiling on Linux Mint using openjdk-8:
Code:
openjdk version "1.8.0_72-internal"
OpenJDK Runtime Environment (build 1.8.0_72-internal-b15)
OpenJDK 64-Bit Server VM (build 25.72-b15, mixed mode)
Can anyone help me fix this? If you need anymore info about my current set up, please let me know.
Switch to JDK 7
Error compiling Android Source using make sdk
make: *** [out/target/common/docs/doc-comment-check-timestamp] Error 45
htmlDir not a directory: frameworks/base/docs/html-ndk
javadoc: error - In doclet class com.google.doclava.Doclava, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at com.google.doclava.TypeInfo.getTypeArgumentMapping(TypeInfo.java:478)
at com.google.doclava.ClassInfo.justMyInterfacesWithTypes(ClassInfo.java:343)
at com.google.doclava.ClassInfo.selfMethods(ClassInfo.java:707)
at com.google.doclava.ClassInfo.selfAttributes(ClassInfo.java:927)
at com.google.doclava.ClassInfo.init2(ClassInfo.java:192)
at com.google.doclava.Converter$1.made(Converter.java:294)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.Converter.initClass(Converter.java:152)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.Converter.initClass(Converter.java:119)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter$5.make(Converter.java:520)
at com.google.doclava.Converter$Cache.obtain(Converter.java:671)
at com.google.doclava.Converter.obtainType(Converter.java:507)
at com.google.doclava.Converter.access$600(Converter.java:46)
at com.google.doclava.Converter$3.make(Converter.java:484)
at com.google.doclava.Converter$Cache.obtain(Converter.java:671)
at com.google.doclava.Converter.obtainField(Converter.java:473)
at com.google.doclava.Converter.convertFields(Converter.java:464)
at com.google.doclava.Converter.initClass(Converter.java:119)
at com.google.doclava.Converter.access$300(Converter.java:46)
at com.google.doclava.Converter$1.made(Converter.java:293)
at com.google.doclava.Converter$Cache.obtain(Converter.java:673)
at com.google.doclava.Converter.obtainClass(Converter.java:271)
at com.google.doclava.Converter.convertClasses(Converter.java:221)
at com.google.doclava.PackageInfo.ordinaryClasses(PackageInfo.java:240)
at com.google.doclava.PackageInfo.isHidden(PackageInfo.java:90)
at com.google.doclava.PackageInfo.isHiddenOrRemoved(PackageInfo.java:138)
at com.google.doclava.Doclava.choosePackages(Doclava.java:1097)
at com.google.doclava.NavTree.writeNavTree(NavTree.java:30)
at com.google.doclava.Doclava.start(Doclava.java:363)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
at com.sun.tools.javadoc.Start.begin(Start.java:167)
at com.sun.tools.javadoc.Main.execute(Main.java:59)
at com.sun.tools.javadoc.Main.main(Main.java:49)
1 error
make: *** [out/target/common/docs/online-ndk-timestamp] Error 45
#### make failed to build some targets (29:28 (mm:ss)) ####
Java :
java version "1.7.0_111"
OpenJDK Runtime Environment (IcedTea 2.6.7) (7u111-2.6.7-0ubuntu0.14.04.3)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
Iam using JDK 7 but still iam getting the below error .Any help/work around is appreciated

CM14.1 Build Error Please Help

I can't build CM14.1.
Acer Aspire V5-132
Intel Celeron 1019Y (1 GHz, Ivy Bridge)
Intel HD Graphics (350 MHz, Boost 800 MHz)
DDR3L RAM 6GB, swap 2GB, Total 8GB
HGST 5400rpm 500GB HDD (Ubuntu Partition is 100GB)
Ubuntu 16.10 64-bit
This is my Computer Specification.
When i build CM13 it builds successfully, but if i build CM14.1 it fails.
This is the error log.
Please help.
[ 39% 13511/33813] Ensure Jack server is installed and started
Jack server already installed in "/home/penguin97/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/penguin97/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[ 39% 13524/33813] Building with Jack: /home/penguin97/android/system/...ommon/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex
FAILED: /bin/bash /home/penguin97/android/system/out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp
Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by [email protected])).
GC overhead limit exceeded.
Try increasing heap size with java option '-Xmx<size>'.
Warning: This may have produced partial or corrupted output.
[ 39% 13524/33813] Building with Jack: /home/penguin97/android/system/.../JAVA_LIBRARIES/android-support-annotations_intermediates/classes.jack
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/penguin97/android/system'
#### make failed to build some targets (04:36:53 (hh:mm:ss)) ####
Have you tried increasing the heap size as instructed?.
Beamed in by telepathy.
How can i increase the heap size?
shivadow said:
Have you tried increasing the heap size as instructed?.
Beamed in by telepathy.
Click to expand...
Click to collapse
How can i increase the heap size?
galaxys3kt said:
Try increasing heap size with java option '-Xmx<size>'.
Click to expand...
Click to collapse
Reading is a virtue...
Beamed in by telepathy.

relocation R_X86_64_PC32 against protected symbol error building in Ubuntu 16.04LTS

Hi, I am building klte version of CrdroidAndroid ( a LineageOS based ROM) on a ubuntu 16.04 LTS VM.
I am getting the following error. I am not sure what to do here. I have been cleaning the build folder and ccache and trying to build. I keep ending at this error. Any help to solve this issue is greatly appreciated.
----------------------------------
/usr/bin/x86_64-linux-gnu-ld: /home/sadanand/crdroid/android/system/out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/base/allocator.o: relocation R_X86_64_PC32 against protected symbol `_ZN3art18g_malloc_allocatorE' can not be used when making a shared object
/usr/bin/x86_64-linux-gnu-ld: final link failed: Bad value
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
------------------------------------------
Thanks

Building AOSP Android 6.0.0_r1 Error 41

Hello, I have more than three weeks with this problem.
I want to compile AOSP Android 6.0.0_r1 (openjdk-7jdk) for a LG K8 2017 phone (LGX240F) taking the free source code from LG.
I have followed all the existing tutorials in this forum I currently use Azure a computer with Ubuntu Server 16.04, 16GB Ram and 4 Core processor.
The problem that arises is that after 30 minutes elapsed sometimes 1 hour of compilation I receive the error 41 I have searched for different solutions and none of them has worked for me.
Code:
Last login: Wed Oct 31 14:00:30 2018 from 190.62.244.75
[email protected]:~$ screen -rx
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/am_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/appops_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/appwidget_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/bu_intermediates/with-local/classes.dex
Building with Jack: out/target/common/obj/JAVA_LIBRARIES/bmgr_intermediates/with-local/classes.dex
ERROR: /mnt/Storage/Android6/frameworks/base/test-runner/src/android/test/mock/MockPackageManager.java:886: The method checkAPKSignatures(String) of type MockPackageManager must override or implement a supertype method
build/core/java.mk:643: recipe for target 'out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex' failed
make: *** [out/target/common/obj/JAVA_LIBRARIES/android.test.runner_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:10:35 (hh:mm:ss)) ####
The server-jack when starting it with the following command "./jack-admin start-server" would give me a message that the variable JACK_JAR was not declared that solves it with this code.
Code:
JACK_VM_COMMAND = "java -Dfile.encoding = UTF-8 -Xmx8g -XX: + TieredCompilation -jar prebuilts / sdk / tools / jack-launcher.jar" JACK_JAR = "prebuilts / sdk / tools / jack.jar" ./prebuilts/ sdk / tools / jack-admin start-server
I think that the problem is due to the server-jack when seeing the status of the server immediately after having started it works correctly but after about 3 minutes it shows this error.
Code:
Getting statistic from background server
ERROR: No Jack server running
I hope you can help me with this problem because I do not know what else to do.
You may be missing some dependencies needed for building, (link) which ones/tutorials have you installed or used
Sent from my Moto E (4) Plus using Tapatalk
As I'm from Azure this is the one I liked the most but they are identical to the others I've seen there, another one that is very complete is Digital Ocean but with all I got the same error I tried Ubuntu 16.04, 14.04 and nothing always the same .
Code:
https://forum.xda-developers.com/chef-central/android/guide-how-to-build-rom-microsoft-azure-t3648669
https://www.digitalocean.com/community/tutorials/how-to-build-android-roms-on-ubuntu-16-04
https://forum.xda-developers.com/chef-central/android/guide-how-to-setup-ubuntu-16-04-lts-t3363669
https://forum.xda-developers.com/showthread.php?t=2455005

Categories

Resources