Closed jaylinski closed 4 years ago
I'm assuming you may want to revert https://github.com/sonyxperiadev/device-sony-common/commit/64cfaf3715ec64e040dc978de7fcba4f07807b04 because the sdm660-ion HAL is for "legacy" 4.14 devices. Legacy 4.9 devices should use msm8998 instead, which has an integrated header defining VEN_MSG_FLUSH_OUTPUT_DONE
and vdec_output_format
.
Try that and report back. Then I'll dust off one of my commits and PR that for you.
@MarijnS95 Thanks for the help! The initial build ran for 7 hours (so I guess reverting that commit worked), then failed with an OOM issue:
rm -rf "out/soong/.intermediates/frameworks/base/hiddenapi-lists-docs/android_common/srcjars"
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.base/java.lang.StringUTF16.compress(StringUTF16.java:157)
at java.base/java.lang.String.<init>(String.java:3015)
at java.base/java.lang.String.<init>(String.java:249)
at com.intellij.util.text.StringFactory.createShared(StringFactory.java:60)
at com.intellij.psi.impl.source.CharTableImpl.createSequence(CharTableImpl.java:90)
at com.intellij.psi.impl.source.CharTableImpl.intern(CharTableImpl.java:72)
at com.intellij.lang.impl.PsiBuilderImpl.createLeaf(PsiBuilderImpl.java:1697)
at com.intellij.lang.impl.PsiBuilderImpl.insertLeaves(PsiBuilderImpl.java:1233)
at com.intellij.lang.impl.PsiBuilderImpl.bind(PsiBuilderImpl.java:1182)
at com.intellij.lang.impl.PsiBuilderImpl.buildTree(PsiBuilderImpl.java:913)
at com.intellij.lang.impl.PsiBuilderImpl.getTreeBuilt(PsiBuilderImpl.java:899)
at com.intellij.psi.impl.source.JavaFileElementType.parseContents(JavaFileElementType.java:83)
at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$0(LazyParseableElement.java:192)
at com.intellij.psi.impl.source.tree.LazyParseableElement$$Lambda$173/2104558722.run(Unknown Source)
at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:553)
at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:191)
at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:245)
at com.intellij.psi.impl.source.tree.CompositeElement.countChildren(CompositeElement.java:449)
at com.intellij.psi.impl.source.tree.CompositeElement.getChildrenAsPsiElements(CompositeElement.java:411)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.getClasses(PsiJavaFileBaseImpl.java:66)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl$Companion.findClassInPsiFile(KotlinCliJavaFileManagerImpl.kt:250)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl$Companion.access$findClassInPsiFile(KotlinCliJavaFileManagerImpl.kt:246)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.findPsiClassInVirtualFile(KotlinCliJavaFileManagerImpl.kt:216)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.access$findPsiClassInVirtualFile(KotlinCliJavaFileManagerImpl.kt:47)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl$findPsiClass$1.invoke(KotlinCliJavaFileManagerImpl.kt:69)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl$findPsiClass$1.invoke(KotlinCliJavaFileManagerImpl.kt:47)
at org.jetbrains.kotlin.util.PerformanceCounter.time(PerformanceCounter.kt:91)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.findPsiClass(KotlinCliJavaFileManagerImpl.kt:68)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.findClass(KotlinCliJavaFileManagerImpl.kt:124)
at com.intellij.psi.impl.PsiElementFinderImpl.findClass(PsiElementFinderImpl.java:39)
at com.intellij.psi.impl.JavaPsiFacadeImpl.doFindClass(JavaPsiFacadeImpl.java:125)
at com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.java:102)
16:58:23 ninja failed with: exit status 1
#### failed to build some targets (28:07 (mm:ss)) ####
Any chance you can tell me where/how (file, env variable, cli command?) I can increase my JVM heap size when building? (It is currently at 2G according to java -XX:+PrintFlagsFinal
. I have 8G RAM and increased the swap to 12G.)
@ MarijnS95感谢您的帮助!最初的构建运行了7个小时(因此我想还原了提交的工作),然后因OOM问题而失败:
rm -rf "out/soong/.intermediates/frameworks/base/hiddenapi-lists-docs/android_common/srcjars" Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.base/java.lang.StringUTF16.compress(StringUTF16.java:157) at java.base/java.lang.String.<init>(String.java:3015) at java.base/java.lang.String.<init>(String.java:249) at com.intellij.util.text.StringFactory.createShared(StringFactory.java:60) at com.intellij.psi.impl.source.CharTableImpl.createSequence(CharTableImpl.java:90) at com.intellij.psi.impl.source.CharTableImpl.intern(CharTableImpl.java:72) at com.intellij.lang.impl.PsiBuilderImpl.createLeaf(PsiBuilderImpl.java:1697) at com.intellij.lang.impl.PsiBuilderImpl.insertLeaves(PsiBuilderImpl.java:1233) at com.intellij.lang.impl.PsiBuilderImpl.bind(PsiBuilderImpl.java:1182) at com.intellij.lang.impl.PsiBuilderImpl.buildTree(PsiBuilderImpl.java:913) at com.intellij.lang.impl.PsiBuilderImpl.getTreeBuilt(PsiBuilderImpl.java:899) at com.intellij.psi.impl.source.JavaFileElementType.parseContents(JavaFileElementType.java:83) at com.intellij.psi.impl.source.tree.LazyParseableElement.lambda$ensureParsed$0(LazyParseableElement.java:192) at com.intellij.psi.impl.source.tree.LazyParseableElement$$Lambda$173/2104558722.run(Unknown Source) at com.intellij.psi.impl.DebugUtil.performPsiModification(DebugUtil.java:553) at com.intellij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:191) at com.intellij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:245) at com.intellij.psi.impl.source.tree.CompositeElement.countChildren(CompositeElement.java:449) at com.intellij.psi.impl.source.tree.CompositeElement.getChildrenAsPsiElements(CompositeElement.java:411) at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.getClasses(PsiJavaFileBaseImpl.java:66) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl$Companion.findClassInPsiFile(KotlinCliJavaFileManagerImpl.kt:250) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl$Companion.access$findClassInPsiFile(KotlinCliJavaFileManagerImpl.kt:246) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.findPsiClassInVirtualFile(KotlinCliJavaFileManagerImpl.kt:216) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.access$findPsiClassInVirtualFile(KotlinCliJavaFileManagerImpl.kt:47) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl$findPsiClass$1.invoke(KotlinCliJavaFileManagerImpl.kt:69) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl$findPsiClass$1.invoke(KotlinCliJavaFileManagerImpl.kt:47) at org.jetbrains.kotlin.util.PerformanceCounter.time(PerformanceCounter.kt:91) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.findPsiClass(KotlinCliJavaFileManagerImpl.kt:68) at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCliJavaFileManagerImpl.findClass(KotlinCliJavaFileManagerImpl.kt:124) at com.intellij.psi.impl.PsiElementFinderImpl.findClass(PsiElementFinderImpl.java:39) at com.intellij.psi.impl.JavaPsiFacadeImpl.doFindClass(JavaPsiFacadeImpl.java:125) at com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.java:102) 16:58:23 ninja failed with: exit status 1 #### failed to build some targets (28:07 (mm:ss)) ####
您是否有机会告诉我在哪里/如何(文件,env变量,cli命令?)在构建时可以增加JVM堆大小?(根据
java -XX:+PrintFlagsFinal
。它当前为2G 。我有8G RAM,并将交换增加到12G。)
Did you solve this problem
@qiangua2460 I haven't tried again, because I'm waiting for the pros at https://github.com/sonyxperiadev/bug_tracker/issues/536 to sort out remaining issues.
You can try to build with only one CPU, as proposed here: https://github.com/sonyxperiadev/bug_tracker/issues/551#issuecomment-593100903
@ qiangua2460我没有再尝试,因为我在等待sonyxperiadev / bug_tracker#536的专家来解决剩余的问题。
您可以尝试仅使用一个CPU进行构建,如此处建议的那样:sonyxperiadev / bug_tracker#551(评论)
I did not use the virtual machine to compile, use ubuntu.
@ qiangua2460我没有再尝试,因为我在等待sonyxperiadev / bug_tracker#536的专家来解决剩余的问题。 您可以尝试仅使用一个CPU进行构建,如此处建议的那样:sonyxperiadev / bug_tracker#551(评论)
I did not use the virtual machine to compile, use ubuntu.
Do you have other suggestions?
@qiangua2460 You can run the build "single threaded" by passsing -j1
to make
.
@ qiangua2460您可以通过传递
-j1
给来运行构建“单线程”make
。
Oh, let me try, can you solve it, thank you for your answer
@ qiangua2460您可以通过传递
-j1
给来运行生成“单线程”)make
。哦
@ qiangua2460您可以通过传递
-j1
给来运行生成“单线程”)make
。 Oh, thank you very much for your answers
Problem description
I'm getting errors when trying to build Android 10 for my F5121 smartphone.
Help would be very much appreciated. (I must be doing something wrong...)
Explain your steps
android-10_legacy
branch (https://github.com/sonyxperiadev/local_manifests) because I'm building for LoireBuild information
VirtualBox Ubuntu 18.04 LTS
Errors