Eclipse Xtext作为应用程序运行-Java错误

Eclipse Xtext作为应用程序运行-Java错误,java,eclipse,dsl,xtext,Java,Eclipse,Dsl,Xtext,我有一个xtext项目,我可以为其生成xtext工件,并使用mwe2生成器,但它不会作为xtext应用程序运行-给出错误: # # A fatal error has been detected by the Java Runtime Environment: # # SIGBUS (0xa) at pc=0x000000010ccc04d0, pid=4122, tid=38240796672 # # JRE version: 7.0_04-b21 # Java VM: Java HotSp

我有一个xtext项目,我可以为其生成xtext工件,并使用mwe2生成器,但它不会作为xtext应用程序运行-给出错误:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x000000010ccc04d0, pid=4122, tid=38240796672
#
# JRE version: 7.0_04-b21
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# J  org.eclipse.osgi.internal.resolver.VersionConstraintImpl.getName()Ljava/lang/String;
#
# 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/ashley/Documents/eclipse/Eclipse.app/Contents/MacOS/hs_err_pid4122.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#
我可以运行另一个xtext项目,但不能运行这个项目。我尝试了JRE系统库的不同设置,从头开始重新构建了项目,但没有任何效果

有什么想法吗

从日志:

Register to memory mapping:

RAX=0x0000000000000001 is an unknown value
RBX=0x00000008e7543190 is pointing into the stack for thread: 0x00007fa1c2e36000
RCX=0x00000006151f98f8 is an oop
org.eclipse.osgi.internal.resolver.GenericSpecificationImpl 
 - klass: 'org/eclipse/osgi/internal/resolver/GenericSpecificationImpl'
RDX=0x000000011042af48 is an oop
{instance class} 
 - klass: {other class}
RSP=0x00000008e7543170 is pointing into the stack for thread: 0x00007fa1c2e36000
RBP=0x00000006151f98f8 is an oop
org.eclipse.osgi.internal.resolver.GenericSpecificationImpl 
 - klass: 'org/eclipse/osgi/internal/resolver/GenericSpecificationImpl'
RSI=0x00000006151f98f8 is an oop
org.eclipse.osgi.internal.resolver.GenericSpecificationImpl 
 - klass: 'org/eclipse/osgi/internal/resolver/GenericSpecificationImpl'
RDI=0x0000000000000007 is an unknown value
R8 =0x00000000a0aad527 is an unknown value
R9 =0x0000000000000065 is an unknown value
R10=0x00000000000007b6 is an unknown value
R11=0x00000006151f9938 is an oop
java.lang.Object 
 - klass: 'java/lang/Object'
R12=0x000000010fc8f000 is an unknown value
R13=0x00000008e75431c8 is pointing into the stack for thread: 0x00007fa1c2e36000
R14=0x0000000000000000 is an unknown value
R15=0x00007fa1c2e36000 is a thread


Stack: [0x00000008e7444000,0x00000008e7544000],  sp=0x00000008e7543170,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
J  org.eclipse.osgi.internal.resolver.VersionConstraintImpl.getName()Ljava/lang/String;

问题不在于Xtext。它没有本机部件,也不会产生此类错误。恰好是这样,这个特定的项目在eclipse本机代码中触发了一个错误,或者(更可能)在JRE或其他本机代码库中触发了一个错误

为了解决这个问题,我建议如下:

  • 将JRE升级至最新版本(版本7更新17)
  • 尝试其他供应商的JRE,如JRockit()
  • 将Eclipse升级到最新的bug修复版本
  • 重新下载所有相关软件(JDK、eclipse等)
  • 检查项目中的所有外部库中的本机部件,并升级/替换它

还有一个很小的可能性,那就是这是一个硬件问题。但是,您可以通过尝试在不同的机器上运行项目来完成此任务。

您是否查看了日志文件中的崩溃报告?有什么有意义的吗?我添加了一些注销,但我觉得它没什么意思-但是,我不确定要找什么对我来说就像JVM崩溃一样。我只能建议尝试一个不同的版本/Java7 runtime.mate的最新版本。它在Windows机器中运行良好,我在mac tho中也有相同的错误:S这很有趣:D1-您应该启用核心转储请参阅:2-分析您的核心转储请参阅:感谢您的回答,但我仍然将此归咎于xtext/emf/eclipse,正如我有其他项目运行良好-它必须与生成的代码是失败的东西。我将尝试其他jre版本,看看我得到了什么,但目前v7.17是一个失败的版本。我在你的问题中读到了“jre版本:7.0_04-b21”。你的意思是,最新的7.17崩溃与相同的核心转储?我最终从零开始一切-包括重新下载jdk和eclipse,从那时起它工作得很好下载是一个很酷的想法。二进制文件损坏是可能的原因之一。我将把它添加到我的答案中。非常感谢。