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

时间:2013-04-07 11:57:05

标签: 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 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;

1 个答案:

答案 0 :(得分:3)

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

为了解决这个问题我建议遵循:

  • 将您的JRE升级到最新版本(版本7更新17)
  • 尝试其他供应商的JRE,例如JRockit(http://www.oracle.com/technetwork/middleware/jrockit/overview/index.html
  • 将Eclipse升级到最新的错误修复版本
  • Redown loading所有涉及的软件(JDK,eclipse,...)
  • 检查项目中的所有外部库以获取本机部件并升级/替换它

这也是一个很小的可能性,这是一个硬件问题。但是,您可以通过尝试在不同的计算机上运行项目来简单地发挥作用。