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

StackOverflowError After Pipeline Declarative Upgraded to 1.4.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Windows Server 2016 10.0.14393 N/A Build 14393
      Jenkins v2.190.2
      Java runtime version 1.8.0_66-b18
    • Similar Issues:

      Description

      A multibranch pipeline began failing with a StackOverflowError after updating these plugins to 1.4.0. Rolling back to 1.3.9 resolved the issue.

      • Pipeline: Declarative
      • Pipeline: Declarative Extension Points API
      • Pipeline: Model API
      • Pipeline: Stage Tags Metadata

      This particular pipeline uses a when statement to bypass a block of stages. These stages are configured as sequential stages, three stages within a parent stage where the when statement is. If the stages are not skipped then the error does not occur.

      The pipeline is running on the master (Windows) system with no slaves defined.

      Attached is a simplified pipeline and the console output. I've defined the BRANCH_NAME environment variable manually to simulate a Git branch.

      For some reason, this was the simplest pipeline I could create. Taking out a seemingly unrelated stage or environment block would allow it to run without error.

        Attachments

          Activity

          Hide
          bitwiseman Liam Newman added a comment -

          Hm, there's nothing in that stack trace that helps me understand what is going wrong there.
          I'll take a look at it in the next release after 1.5.0.

          Show
          bitwiseman Liam Newman added a comment - Hm, there's nothing in that stack trace that helps me understand what is going wrong there. I'll take a look at it in the next release after 1.5.0.
          Hide
          charleswb Charles Bozarth added a comment -

          I did some additional testing looking for more information. But nothing conclusive. Here's what I tried.

          I looked for another system log. The logs I found only reported the same stack trace.

          I installed a new, clean instance of Jenkins v2.204.2 on Windows 10 with the default plugins. This puts Pipeline: Declarative at v1.5.1. The error still occurs.

          I haven't yet tried this pipeline on Linux.

          Show
          charleswb Charles Bozarth added a comment - I did some additional testing looking for more information. But nothing conclusive. Here's what I tried. I looked for another system log. The logs I found only reported the same stack trace. I installed a new, clean instance of Jenkins v2.204.2 on Windows 10 with the default plugins. This puts Pipeline: Declarative at v1.5.1. The error still occurs. I haven't yet tried this pipeline on Linux.
          Hide
          charleswb Charles Bozarth added a comment -

          I found JENKINS-52966 because it had a similar error message. This comment suggested changing to 64-bit JRE. After doing that I cannot recreate the issue. I did not change heap size or other options. I then changed the heap size and it continues to work.

          I will monitor this for a while before considering it resolved.

          Show
          charleswb Charles Bozarth added a comment - I found JENKINS-52966 because it had a similar error message. This comment suggested changing to 64-bit JRE. After doing that I cannot recreate the issue. I did not change heap size or other options. I then changed the heap size and it continues to work. I will monitor this for a while before considering it resolved.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            charleswb Charles Bozarth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: