1. 程式人生 > >Eclipse經常閃退

Eclipse經常閃退

這裡寫自定義目錄標題

Eclipse經常閃退

問題描述

1.安裝了Android Studio後,發現使用Android的Eclipse(版本是adt-bundle-windows-x86_64-20140702.zip)經常閃退。
2.安裝了spring-tool-suite-3.8.1.RELEASE-e4.6-win32-x86_64.zip和Android的Eclipse(版本是adt-bundle-windows-x86_64-20140702.zip)也會經常閃退。
3.JDK都是1.8以上。

Eclipse的錯誤日誌

#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000607f052f, pid=2568, tid=0x0000000000004780
#
# JRE version: Java™ SE Runtime Environment (8.0_102-b14) (build 1.8.0_102-b14)
# Java VM: Java HotSpot™ 64-Bit Server VM (25.102-b14 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V [jvm.dll+0x4c052f]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#

http://bugreport.java.com/bugreport/crash.jsp
#

--------------- T H R E A D ---------------

Current thread (0x0000000017c61800): JavaThread “C2 CompilerThread2” daemon [_thread_in_native, id=18304, stack(0x0000000018530000,0x0000000018630000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000008

Registers:
RAX=0x0000000000000000, RBX=0x0000000000000000, RCX=0x00000000203a21b0, RDX=0x0000000000001000
RSP=0x000000001862bbf0, RBP=0x000000001b62c288, RSI=0x00000000203a21b0, RDI=0x000000001862c130
R8 =0x0000000000000000, R9 =0x000000001a506e60, R10=0x000000001862c130, R11=0x0000000017ebdff0
R12=0x000000001b62bd08, R13=0x000000001c6f3e28, R14=0x000000001862bcd8, R15=0x000000001862bcf8
RIP=0x00000000607f052f, EFLAGS=0x0000000000010287

Top of Stack: (sp=0x000000001862bbf0)
0x000000001862bbf0: 000000001b62c7d0 000000001b62c288
0x000000001862bc00: 00000000203a21b0 000000001862c130
0x000000001862bc10: 000000001b62c288 000000001862bd48
0x000000001862bc20: 000000000000000c 00000000607f1d49
0x000000001862bc30: 000000001b62c7d0 0000000000000349
0x000000001862bc40: 0000000000000001 00000000203a8cd0
0x000000001862bc50: 000000001862cb08 000000006083b990
0x000000001862bc60: 0000000019139f70 0000000017c551f0
0x000000001862bc70: 0000000023189f80 000000001862bda0
0x000000001862bc80: 0000000017c551f0 000000000000000c
0x000000001862bc90: 000000001862c130 00000000607f3ad3
0x000000001862bca0: 000000001862c130 0000000000000001
0x000000001862bcb0: 0000000000000001 000000001862bd48
0x000000001862bcc0: 0000000019139fc0 0000000019141f58
0x000000001862bcd0: 00000000000a81d0 0000000017c551f0
0x000000001862bce0: 0000000000000400 000000001fcf7a80

解決辦法

可能是不支援JDK1.8的原因,筆者沒有解除安裝JDK1.8,直接又安裝了JDK1.7,然後將eclipse.ini檔案的內容修改:
openFile
-vm
C:/Program Files/Java/jdk1.7.0_80/jre/bin/server/jvm.dll
-vmargs

注意:
需要寫到-vmargs之前
-vm和C:/Program Files/Java/jdk1.7.0_80/jre/bin/server/jvm.dll需要換行