Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16298

DRY FATAL: null java.lang.StackOverflowError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: dry-plugin
    • Labels:
      None
    • Environment:
      Windows
    • Similar Issues:

      Description

      Added dry and Simian.
      Simian generates simian.xml on workspace.
      When dry runs, this happens:

      [DRY] Collecting duplicate code analysis files...
      [DRY] Finding all files that match the pattern simian.xml
      [DRY] Parsing 1 files in C:\Jenkins\jobs\QiBuilder\workspace
      [DRY] Successfully parsed file C:\Jenkins\jobs\QiBuilder\workspace\simian.xml of module with 10404 warnings.
      FATAL: null
      java.lang.StackOverflowError
      at sun.nio.cs.UTF_8.updatePositions(Unknown Source)
      at sun.nio.cs.UTF_8$Encoder.encodeArrayLoop(Unknown Source)
      at sun.nio.cs.UTF_8$Encoder.encodeLoop(Unknown Source)
      at java.nio.charset.CharsetEncoder.encode(Unknown Source)
      at sun.nio.cs.StreamEncoder.implWrite(Unknown Source)
      at sun.nio.cs.StreamEncoder.write(Unknown Source)
      at java.io.OutputStreamWriter.write(Unknown Source)
      at java.io.BufferedWriter.flushBuffer(Unknown Source)
      at java.io.BufferedWriter.flush(Unknown Source)
      at hudson.util.AtomicFileWriter.flush(AtomicFileWriter.java:90)
      at com.thoughtworks.xstream.core.util.QuickWriter.flush(QuickWriter.java:71)
      at com.thoughtworks.xstream.core.util.QuickWriter.write(QuickWriter.java:57)
      at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.endOfLine(PrettyPrintWriter.java:307)
      at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.finishTag(PrettyPrintWriter.java:298)
      at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.startNode(PrettyPrintWriter.java:163)
      at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.startNode(PrettyPrintWriter.java:174)
      at com.thoughtworks.xstream.io.WriterWrapper.startNode(WriterWrapper.java:33)
      at com.thoughtworks.xstream.io.path.PathTrackingWriter.startNode(PathTrackingWriter.java:44)
      at

        Attachments

          Activity

          Hide
          hsnnn Eric Brito added a comment -

          here's the XML file

          Show
          hsnnn Eric Brito added a comment - here's the XML file
          Hide
          drulli Ulli Hafner added a comment -

          Which Jenkins and dry version are you using? Is this a freestyle or maven project type?

          Show
          drulli Ulli Hafner added a comment - Which Jenkins and dry version are you using? Is this a freestyle or maven project type?
          Hide
          hsnnn Eric Brito added a comment -

          Jenkins ver. 1.498
          Duplicate Code Scanner Plug-in 2.33

          It´s a freestyle project, building is done through windows batch files.

          Show
          hsnnn Eric Brito added a comment - Jenkins ver. 1.498 Duplicate Code Scanner Plug-in 2.33 It´s a freestyle project, building is done through windows batch files.
          Hide
          hsnnn Eric Brito added a comment -

          This is how I call simian:
          C:\Simian\bin\simian-2.3.33.exe -formatter=xml:%WORKSPACE%\simian.xml "C:\Jenkins\jobs\QiBuilder\workspace\QiBuilder**.c" "C:\Jenkins\jobs\QiBuilder\workspace\QiBuilder**.h"

          Show
          hsnnn Eric Brito added a comment - This is how I call simian: C:\Simian\bin\simian-2.3.33.exe -formatter=xml:%WORKSPACE%\simian.xml "C:\Jenkins\jobs\QiBuilder\workspace\QiBuilder* *.c" "C:\Jenkins\jobs\QiBuilder\workspace\QiBuilder* *.h"
          Hide
          drulli Ulli Hafner added a comment -

          I tried to reproduce that problem, but had no success so far. From the exception it is hard to see where it actually crashed.

          How big is the dry-warnings.xml file in the build folder on your machine? Can you try to lower the number of lines that identify a warning in simian? Just to see if the total number of warnings cause that problem...

          Show
          drulli Ulli Hafner added a comment - I tried to reproduce that problem, but had no success so far. From the exception it is hard to see where it actually crashed. How big is the dry-warnings.xml file in the build folder on your machine? Can you try to lower the number of lines that identify a warning in simian? Just to see if the total number of warnings cause that problem...
          Hide
          drulli Ulli Hafner added a comment -

          Here is my output, my filesize is 486 MByte...

          Gestartet durch Benutzer anonymous
          Building in workspace /Users/hafner/Development/jenkins/jobs/JENKINS-16298/workspace
          [DRY] Collecting duplicate code analysis files...
          [DRY] Finding all files that match the pattern **/simian.xml
          [DRY] Parsing 1 files in /Users/hafner/Development/jenkins/jobs/JENKINS-16298/workspace
          [DRY] Successfully parsed file /Users/hafner/Development/jenkins/jobs/JENKINS-16298/workspace/simian.xml of module  with 10404 warnings.
          [DRY] Computing warning deltas based on reference build #2
          Finished: SUCCESS
          
          Show
          drulli Ulli Hafner added a comment - Here is my output, my filesize is 486 MByte... Gestartet durch Benutzer anonymous Building in workspace /Users/hafner/Development/jenkins/jobs/JENKINS-16298/workspace [DRY] Collecting duplicate code analysis files... [DRY] Finding all files that match the pattern **/simian.xml [DRY] Parsing 1 files in /Users/hafner/Development/jenkins/jobs/JENKINS-16298/workspace [DRY] Successfully parsed file /Users/hafner/Development/jenkins/jobs/JENKINS-16298/workspace/simian.xml of module with 10404 warnings. [DRY] Computing warning deltas based on reference build #2 Finished: SUCCESS
          Hide
          hsnnn Eric Brito added a comment - - edited

          No such file is created when the error happens.
          I changed the threshold from the default value (6) to 50 lines and it worked. 30 and 10 also worked.
          8 caused it to crash, 6177 warnings.
          9 worked, 4795 warnings.

          At 10, the dry-warningsxml file is 43 Mbytes (3878 warnings).
          at 9, it's 78 Mbytes (4795 warnings).

          Show
          hsnnn Eric Brito added a comment - - edited No such file is created when the error happens. I changed the threshold from the default value (6) to 50 lines and it worked. 30 and 10 also worked. 8 caused it to crash, 6177 warnings. 9 worked, 4795 warnings. At 10, the dry-warningsxml file is 43 Mbytes (3878 warnings). at 9, it's 78 Mbytes (4795 warnings).
          Hide
          drulli Ulli Hafner added a comment -

          Hi Eric, I still did not manage it to reproduce the bug. Which JDK are you using?

          Show
          drulli Ulli Hafner added a comment - Hi Eric, I still did not manage it to reproduce the bug. Which JDK are you using?

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              hsnnn Eric Brito
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: