Announcement Announcement Module
Collapse
No announcement yet.
STS Crashing Every 1 - 1.5 hours. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • STS Crashing Every 1 - 1.5 hours.

    Hi, I am running the latest STS on a Mac and it keeps crashing. It appears as though it may be crashing when I save, but not sure. Here is a stack trace. Please let me know if this is something that is helpful, or there is something else we can look at to help debug the issue. It is very annoying.

    Code:
    Process:         STS [94009]
    Path:            /Users/USER/*/STS.app/Contents/MacOS/STS
    Identifier:      org.springsource.sts.ide
    Version:         3.1.0 (3.1.0.201210061306-RELEASE-e42)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [247]
    User ID:         501
    
    Date/Time:       2013-01-10 18:26:41.685 -0800
    OS Version:      Mac OS X 10.8.2 (12C60)
    Report Version:  10
    
    Interval Since Last Report:          106989 sec
    Crashes Since Last Report:           2
    Per-App Interval Since Last Report:  72100 sec
    Per-App Crashes Since Last Report:   2
    Anonymous UUID:                      8E26E638-ACE9-4B41-D3A4-4B4CA8F9E97E
    
    Crashed Thread:  82  Java: Background Thread-3 (Spring IDE/3.1.0)
    
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: 0x000000000000000a, 0x0000000113038000
    
    VM Regions Near 0x113038000:
        mapped file            000000011302e000-0000000113031000 [   12K] r--/r-x SM=S/A  /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar
    --> mapped file            0000000113031000-0000000113039000 [   32K] r--/r-x SM=PRV  /Users/USER/*/*.jar
        mapped file            0000000113039000-000000011303b000 [    8K] r--/r-x SM=PRV  /Users/USER/*/*.jar
    
    Application Specific Information:
    Java information:
     Exception type: Bus Error (0xa) at pc=7fff8a49aaa1
     
     Java VM: Java HotSpot(TM) 64-Bit Server VM (20.12-b01-434 mixed mode macosx-amd64)
     
    Current thread (111288000):  JavaThread "Background Thread-3 (Spring IDE/3.1.0)" daemon [_thread_in_native, id=694366208, stack(129533000,129633000)]
    Stack: [129533000,129633000]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    J  java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J
    J  java.util.zip.ZipFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;
    J  sun.misc.URLClassPath$JarLoader.findResource(Ljava/lang/String;Z)Ljava/net/URL;
    J  sun.misc.URLClassPath$1.next()Z
    j  sun.misc.URLClassPath$1.hasMoreElements()Z+1
    j  java.net.URLClassLoader$3$1.run()Ljava/lang/Object;+7
    v  ~StubRoutines::call_stub
    j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
    j  java.net.URLClassLoader$3.next()Z+24
    j  java.net.URLClassLoader$3.hasMoreElements()Z+1
    j  sun.misc.CompoundEnumeration.next()Z+33
    j  sun.misc.CompoundEnumeration.hasMoreElements()Z+1
    j  sun.misc.CompoundEnumeration.next()Z+33
    j  sun.misc.CompoundEnumeration.hasMoreElements()Z+1
    j  org.springframework.core.io.support.PathMatchingResourcePatternResolver.findAllClassPathResources(Ljava/lang/String;)[Lorg/springframework/core/io/Resource;+66
    j  org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(Ljava/lang/String;)[Lorg/springframework/core/io/Resource;+52
    j  org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(Ljava/lang/String;)[Lorg/springframework/core/io/Resource;+17
    j  org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(Ljava/lang/String;)[Lorg/springframework/core/io/Resource;+38
    J  org.springframework.ide.eclipse.core.io.EclipsePathMatchingResourcePatternResolver.getResources(Ljava/lang/String;)[Lorg/springframework/core/io/Resource;
    j  org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$ClassResourceFilteringPatternResolver.getResources(Ljava/lang/String;)[Lorg/springframework/core/io/Resource;+11
    J  org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(Ljava/lang/String;)Ljava/util/Set;
    j  org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan([Ljava/lang/String;)Ljava/util/Set;+35
    j  org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/xml/ParserContext;)Lorg/springframework/beans/factory/config/BeanDefinition;+25
    j  org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/xml/ParserContext;)Lorg/springframework/beans/factory/config/BeanDefinition;+8
    j  org.springframework.ide.eclipse.beans.core.internal.model.namespaces.DelegatingNamespaceHandlerResolver$ElementTrackingNamespaceHandler.parse(Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/xml/ParserContext;)Lorg/springframework/beans/factory/config/BeanDefinition;+17
    j  org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/config/BeanDefinition;)Lorg/springframework/beans/factory/config/BeanDefinition;+72
    j  org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$ErrorSuppressingBeanDefinitionParserDelegate.parseCustomElement(Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/config/BeanDefinition;)Lorg/springframework/beans/factory/config/BeanDefinition;+125
    j  org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(Lorg/w3c/dom/Element;)Lorg/springframework/beans/factory/config/BeanDefinition;+3
    j  org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/xml/BeanDefinitionParserDelegate;)V+68
    j  org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$ToolingFriendlyBeanDefinitionDocumentReader.doRegisterBeanDefinitions(Lorg/w3c/dom/Element;)V+94
    j  org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(Lorg/w3c/dom/Document;Lorg/springframework/beans/factory/xml/XmlReaderContext;)V+25
    j  org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(Lorg/w3c/dom/Document;Lorg/springframework/core/io/Resource;)I+33
    j  org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.registerBeanDefinitions(Lorg/w3c/dom/Document;Lorg/springframework/core/io/Resource;)I+11
    j  org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(Lorg/xml/sax/InputSource;Lorg/springframework/core/io/Resource;)I+35
    j  org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(Lorg/springframework/core/io/support/EncodedResource;)I+162
    j  org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$2.loadBeanDefinitions(Lorg/springframework/core/io/support/EncodedResource;)I+48
    j  org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(Lorg/springframework/core/io/Resource;)I+9
    j  org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call()Ljava/lang/Integer;+28
    j  org.springframework.ide.eclipse.beans.core.internal.model.BeansConfig$3.call()Ljava/lang/Object;+1
    j  java.util.concurrent.FutureTask$Sync.innerRun()V+30
    j  java.util.concurrent.FutureTask.run()V+4
    j  java.util.concurrent.Executors$RunnableAdapter.call()Ljava/lang/Object;+4
    j  java.util.concurrent.FutureTask$Sync.innerRun()V+30
    j  java.util.concurrent.FutureTask.run()V+4
    j  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Ljava/lang/Runnable;)V+59
    j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+28
    j  java.lang.Thread.run()V+11
    v  ~StubRoutines::call_stub

  • #2
    Hey!

    This looks like a crash in the JVM itself, so I would recommend to update the JDK installation and use the latest available JDK in your case.

    I've also seen that you are running the Eclipse 4.2-based version of STS. As long as you don't need additional plugins that require Eclipse 4.2, I would recommend to install and use a fresh STS 3.1.0 for Eclipse 3.8 version. It runs much faster at the moment (due to performance issues with the underlying Eclipse platform).

    HTH,
    Martin

    Comment


    • #3
      Would you recommend staying with 64-bit or will 32-bit be more stable?

      Thanks,
      Tom

      Comment


      • #4
        Hey Tom!

        I would recommend staying with 64bit. The recent Java7 runtimes from Oracle for Mac are 64bit only anyway...

        HTH,
        Martin

        Comment


        • #5
          Hi Martin,

          I've moved to Eclipse version 3.8/ STS 3.1 as you recommended. I also installed the latest version of Java 7 and am still having the same crashes.

          Seems to happen after doing a maven build and then doing a project clean.

          Any other suggestions?

          Tom

          Comment


          • #6
            Hey Tom!

            Can you attach a crash report file from one of those crashes using the latest Java7 VM? Maybe we can identify something from there.

            -Martin

            Comment


            • #7
              STS Continues to crash

              Hi Martin,

              I've attached a zip file with the stack trace. Please let me know if there is anything else that might help.

              I was able to elicit this behavior by doing:

              1) Maven build
              2) Clean-->Build All

              Thanks,
              Tom

              Comment


              • #8
                Hey Tom!

                So you are doing a Maven build on the command line in parallel to the Clean -> Build All in STS? Or after each other?

                -Martin

                Comment


                • #9
                  Hi Martin,

                  I am doing a:

                  Run->Maven Build
                  followed by:
                  Project->Clean Build All

                  They are not in parallel. The clean after the Maven build finishes.

                  Tom

                  Comment


                  • #10
                    I think this is a long standing bug in the JVM where modifying a jar file that is in use will crash the VM.
                    http://bugs.sun.com/bugdatabase/view...bug_id=4425695

                    I'm not sure there's anything we can do about it. This link offers a potential workaround for Eclipse Maven users
                    http://blog.pdark.de/2011/08/08/when...ashes-eclipse/

                    Comment

                    Working...
                    X