今天早上打开eclipse,svn更新项目时、或者刷新下原来的项目都会导致eclipse自动关闭,重启eclipse还是这样的问题 ,思来想去这两天没有改过任何设置。想到eclipse有错误日志记录的,来到根目录下打开错误日志文件,类似hs_err_pid4256.log这样的文件,内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0a68804c, pid=4256, tid=5388 # # JRE version: 6.0_18-b07 # Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode windows-x86 ) # Problematic frame: # C [libapr-1.dll+0x804c] # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x0887c000): JavaThread "Worker-1" [_thread_in_native, id=5388, stack(0x08ff0000,0x090f0000)] siginfo: ExceptionCode=0xc0000005, reading address 0x00000000 Registers: EAX=0x015f7850, EBX=0x00000000, ECX=0x00000000, EDX=0x00000000 ESP=0x090e8b94, EBP=0x090e8ba0, ESI=0x008bfc88, EDI=0x00000000 EIP=0x0a68804c, EFLAGS=0x00010246 Top of Stack: (sp=0x090e8b94) 0x090e8b94: 00000000 008bfc88 015f7850 090eabcc 0x090e8ba4: 0a671f32 090eabc8 015f7850 00000000 0x090e8bb4: 00000000 00000000 008bfc88 015f7850 0x090e8bc4: 00000000 015f7850 00000000 015f7850 0x090e8bd4: 015f78f0 6eec84f1 015f7850 00000010 0x090e8be4: 6ee40000 6eec11f2 015f7850 015f78f0 0x090e8bf4: 6eec1210 6eec8610 015f7850 015f78a0 0x090e8c04: 015f7850 015f7850 00000001 003a0044 Instructions: (pc=0x0a68804c) 0x0a68803c: 89 55 10 53 8b 5d 14 56 57 85 db 75 03 8b 58 18 0x0a68804c: 8b 03 bf 01 00 00 00 3b c7 0f 82 1a 01 00 00 8b Stack: [0x08ff0000,0x090f0000], sp=0x090e8b94, free space=3e2090e86c8k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libapr-1.dll+0x804c] C [libapriconv-1.dll+0x1f32] C [libapriconv-1.dll+0x1da4] C [_tbl_simple.so+0x123b] C [_tbl_simple.so+0x11c4] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.tigris.subversion.javahl.SVNClient.update([Ljava/lang/String;Lorg/tigris/subversion/javahl/Revision;ZZ)[J+0 j org.tigris.subversion.javahl.SVNClient.update(Ljava/lang/String;Lorg/tigris/subversion/javahl/Revision;Z)J+12 j org.tigris.subversion.svnclientadapter.javahl.AbstractJhlClientAdapter.update(Ljava/io/File;Lorg/tigris/subversion/svnclientadapter/SVNRevision;Z)J+89 j org.tigris.subversion.subclipse.core.commands.UpdateResourcesCommand.run(Lorg/eclipse/core/runtime/IProgressMonitor;)V+94 j org.tigris.subversion.subclipse.ui.operations.UpdateOperation.execute(Lorg/tigris/subversion/subclipse/core/SVNTeamProvider;[Lorg/eclipse/core/resources/IResource;Lorg/eclipse/core/runtime/IProgressMonitor;)V+46 j org.tigris.subversion.subclipse.ui.operations.RepositoryProviderOperation.execute(Lorg/eclipse/core/runtime/IProgressMonitor;)V+142 j org.tigris.subversion.subclipse.ui.operations.SVNOperation.run(Lorg/eclipse/core/runtime/IProgressMonitor;)V+35 j org.eclipse.team.internal.ui.actions.JobRunnableContext.run(Lorg/eclipse/jface/operation/IRunnableWithProgress;Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+2 j org.eclipse.team.internal.ui.actions.JobRunnableContext$ResourceJob.runInWorkspace(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+9 j org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/core/runtime/IStatus;+37 j org.eclipse.core.internal.jobs.Worker.run()V+31 v ~StubRoutines::call_stub 。。。。。。 |
从日志的描述看,应该是svn引起的异常发生,这时想起了昨天下午公司因为server down了,我在本地临时搭建了Subversion服务端,估计就是本地安装subversion服务器改变了系统环境变量,和eclipse的svn的插件冲突引起jvm的崩溃。
网上搜到的一般解决方法是:
把本地的subversion卸载掉,eclipse就恢复正常了,显然这个方法并不适合我当前的要求,后来搜索到了这篇文章:
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=900344
从这篇文章来看大致的解决方法有两种:
- 将系统的环境变量 APR_ICONV_PATH改为APR_ICONV1_PATH
- 下载Subversion 1.4.3的zip包,将环境变量 APR_ICONV_PATH 指向解压后的 iconv文件夹
我试了第一个方法,重新启动后eclipse又恢复正常了,subversion也能同时运行。
原创文章,转载请注明: 转载自micmiu – 软件开发+生活点滴[ http://www.micmiu.com/ ]
本文链接地址: http://www.micmiu.com/software/common/svn-eclipse-err/
0 条评论。