1. 问题描述
Abnormal build process termination:
/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/bin/java -Xmx700m -Djava.awt.headless=true -Djava.endorsed.dirs=\"\" -Djdt.compiler.useSingleThread=true -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Dio.netty.initialSeedUniquifier=-2946488377789675809 -Dfile.encoding=UTF-8 -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2020.3 "-Didea.home.path=/Applications/IntelliJ IDEA 2.app/Contents" "-Didea.config.path=/Users/zhouxin/Library/Application Support/JetBrains/IntelliJIdea2020.3" "-Didea.plugins.path=/Users/zhouxin/Library/Application Support/JetBrains/IntelliJIdea2020.3/plugins" -Djps.log.dir=/Users/zhouxin/Library/Logs/JetBrains/IntelliJIdea2020.3/build-log "-Djps.fallback.jdk.home=/Applications/IntelliJ IDEA 2.app/Contents/jbr/Contents/Home" -Djps.fallback.jdk.version=11.0.10 -Dio.netty.noUnsafe=true -Djava.io.tmpdir=/Users/zhouxin/Library/Caches/JetBrains/IntelliJIdea2020.3/compile-server/start_34de570c/_temp_ -Djps.backward.ref.index.builder=true -Dkotlin.incremental.compilation=true -Dkotlin.incremental.compilation.js=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"/var/folders/kx/h_m8mzjs5hg6x3b10svh6tgr0000gn/T/kotlin-idea-4984779513587324598-is-running\" -classpath "/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/jps-launcher.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/lib/tools.jar" org.jetbrains.jps.cmdline.Launcher "/Applications/IntelliJ IDEA 2.app/Contents/lib/slf4j-api-1.7.25.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/maven-resolver-transport-http-1.3.3.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/forms_rt.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/commons-logging-1.2.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-model-builder-3.6.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/plexus-interpolation-1.25.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-model-3.6.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/asm-all-9.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/maven-resolver-connector-basic-1.3.3.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/trove4j.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-resolver-api-1.3.3.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-resolver-util-1.3.3.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/netty-buffer-4.1.52.Final.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/resources_en.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/qdox-2.0-M10.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/jps-builders-6.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/oro-2.0.8.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/nanoxml-2.2.3.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/jna-platform.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/netty-resolver-4.1.52.Final.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/httpclient-4.5.12.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/plexus-component-annotations-1.7.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/protobuf-java-3.13.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/annotations.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/gson-2.8.6.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/util.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-resolver-provider-3.6.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/intellij-deps-fastutil-8.4.1-4.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/guava-29.0-jre.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/javac2.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/jna.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/platform-api.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/aether-dependency-resolver.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/maven-resolver-transport-file-1.3.3.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-resolver-spi-1.3.3.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/lz4-java-1.7.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/netty-transport-4.1.52.Final.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-resolver-impl-1.3.3.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/jdom.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/forms-1.1-preview.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/jps-builders.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-repository-metadata-3.6.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/log4j.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/httpcore-4.4.13.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/netty-codec-4.1.52.Final.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-builder-support-3.6.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/jps-model.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/netty-common-4.1.52.Final.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/jps-javac-extension-1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/plexus-utils-3.2.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/maven-artifact-3.6.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/commons-lang3-3.10.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/gson-2.8.6.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/guava-29.0-jre.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/failureaccess-1.0.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/bcprov-jdk15on-1.65.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/bcpkix-jdk15on-1.65.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/jaxb-api-2.3.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/jaxb-runtime-2.3.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/istack-commons-runtime-3.0.7.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/javax.activation-1.2.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/studio.android.sdktools.common-27.0.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/gradle/lib/gradle-api-6.7.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/gson-2.8.6.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/guava-29.0-jre.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/failureaccess-1.0.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/bcprov-jdk15on-1.65.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/bcpkix-jdk15on-1.65.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/jaxb-api-2.3.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/jaxb-runtime-2.3.1.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/istack-commons-runtime-3.0.7.jar:/Applications/IntelliJ IDEA 2.app/Contents/lib/javax.activation-1.2.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/studio.android.sdktools.common-27.0.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/gradle/lib/gradle-api-6.7.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/JavaEE/lib/jasper-v2-rt.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/ant/lib/ant-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/uiDesigner/lib/jps/java-guiForms-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/eclipse/lib/eclipse-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/eclipse/lib/eclipse-common.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/IntelliLang/lib/java-langInjection-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Groovy/lib/groovy-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Groovy/lib/groovy-constants-rt.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/maven/lib/maven-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/aspectj/lib/aspectj-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/gradle-java/lib/gradle-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/devkit/lib/devkit-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/javaFX/lib/javaFX-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/javaFX/lib/javaFX-common.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/JavaEE/lib/javaee-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Kotlin/lib/kotlin-stdlib.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Kotlin/lib/kotlin-stdlib-jdk7.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Kotlin/lib/kotlin-stdlib-jdk8.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Kotlin/lib/kotlin-reflect.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Kotlin/lib/kotlin-plugin.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Kotlin/lib/kotlin-jps-common.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Kotlin/lib/kotlin-common.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/apkzlib-4.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/apksig-4.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/jps/android-jps-plugin.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/android-jps-model.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/build-common.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/android-rt.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/studio.android.sdktools.sdk-common-27.0.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/studio.android.sdktools.common-27.0.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/studio.android.sdktools.repository-27.0.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/studio.android.sdktools.sdklib-27.0.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/studio.android.sdktools.layoutlib-api-27.0.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/android/lib/studio.android.sdktools.manifest-merger-27.0.0.0.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/JPA/lib/jps/javaee-jpa-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/webSphereIntegration/lib/jps/javaee-appServers-websphere-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/weblogicIntegration/lib/jps/javaee-appServers-weblogic-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Grails/lib/groovy-grails-jps.jar:/Applications/IntelliJ IDEA 2.app/Contents/plugins/Grails/lib/groovy-grails-compilerPatch.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 49549 89debda1-6a95-4100-9888-d3eef155d5f2 /Users/zhouxin/Library/Caches/JetBrains/IntelliJIdea2020.3/compile-server
Build process started. Classpath: /Applications/IntelliJ IDEA 2.app/Contents/plugins/java/lib/jps-launcher.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home/lib/tools.jarSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGFPE (0x8) at pc=0x00000001135fa8c8, pid=1497, tid=0x0000000000009d6f
#
# JRE version: Java(TM) SE Runtime Environment (8.0_291-b10) (build 1.8.0_291-b10)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.291-b10 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# j com.sun.tools.javac.comp.ConstFold.fold2(ILcom/sun/tools/javac/code/Type;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/code/Type;+877
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/zhouxin/Library/Caches/JetBrains/IntelliJIdea2020.3/compile-server/hs_err_pid1497.log
Compiled method (c1) 6362 1539 1 java.lang.Integer::intValue (5 bytes)
total in heap [0x0000000113b03190,0x0000000113b03420] = 656
relocation [0x0000000113b032b8,0x0000000113b032e0] = 40
main code [0x0000000113b032e0,0x0000000113b03360] = 128
stub code [0x0000000113b03360,0x0000000113b033f0] = 144
scopes data [0x0000000113b033f0,0x0000000113b033f8] = 8
scopes pcs [0x0000000113b033f8,0x0000000113b03418] = 32
dependencies [0x0000000113b03418,0x0000000113b03420] = 8
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
2. 解决问题思路
这个问题真的是典型的昨天还好好的,怎么今天就不行了啊,就很奇怪。
查阅资料发现很多人说防火墙没关闭,要把防火墙关了,但我试了一下并没有效果。大家先把防火墙关了试一下。
然后联想到2020款MacBook Pro(M1系统)使用老版的IDea(2020.3之前的版本),由于M1系统的兼容性,非常卡。
考虑是不是因为JDK的兼容问题,但我又使用了好久都没问题呀,怎么就突然出问题了呢。重启大法试了一下,发现还是不行。
然后想算了,重新装一个JDK吧,这次选择装支持M1系统的版本:zulu jdk(官方下载地址)
3. 解决措施
1)在IDEA 的 File -》Project Structure-》SDKs 里面引入新的jdk
2)将项目project的JDK修改为新安装的JDK
3)再次运行项目,发现还是报错,就很奇怪,最后发现还要修改Module的JDK。
最后问题成功解决。
所以有时程序一直运行良好,突然就出了问题,可能是近期修改了东西导致的,借此记录下来,帮助有缘人。