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

Mercurial plugin crashes when polling repository

      I upgraded Jenkins and the MercurialSCM plugin yesterday to version 1.41 and now it crashes when trying to poll our repository.

      Started on 2012-nov-06 10:06:07
      ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@114d662[everything_but_bundle]
      java.lang.ArrayIndexOutOfBoundsException: 1
      at hudson.Launcher$2.launch(Launcher.java:712)
      at hudson.Launcher$ProcStarter.start(Launcher.java:346)
      at hudson.plugins.mercurial.MercurialSCM.joinWithPossibleTimeout(MercurialSCM.java:309)
      at hudson.plugins.mercurial.MercurialSCM.pull(MercurialSCM.java:303)
      at hudson.plugins.mercurial.MercurialSCM.compareRemoteRevisionWith(MercurialSCM.java:252)
      at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      at hudson.scm.SCM.poll(SCM.java:373)
      at hudson.model.AbstractProject._poll(AbstractProject.java:1471)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1404)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

          [JENKINS-15733] Mercurial plugin crashes when polling repository

          Karl Werf created issue -
          Karl Werf made changes -
          Description Original: Started on 2012-nov-06 10:06:07
          ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@114d662[everything_but_bundle]
          java.lang.ArrayIndexOutOfBoundsException: 1
          at hudson.Launcher$2.launch(Launcher.java:712)
          at hudson.Launcher$ProcStarter.start(Launcher.java:346)
          at hudson.plugins.mercurial.MercurialSCM.joinWithPossibleTimeout(MercurialSCM.java:309)
          at hudson.plugins.mercurial.MercurialSCM.pull(MercurialSCM.java:303)
          at hudson.plugins.mercurial.MercurialSCM.compareRemoteRevisionWith(MercurialSCM.java:252)
          at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
          at hudson.scm.SCM.poll(SCM.java:373)
          at hudson.model.AbstractProject._poll(AbstractProject.java:1471)
          at hudson.model.AbstractProject.poll(AbstractProject.java:1404)
          at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
          at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
          at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          New: I upgraded Jenkins and the MercurialSCM plugin yesterday to version 1.41 and now it crashes when trying to poll our repository.

          Started on 2012-nov-06 10:06:07
          ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@114d662[everything_but_bundle]
          java.lang.ArrayIndexOutOfBoundsException: 1
          at hudson.Launcher$2.launch(Launcher.java:712)
          at hudson.Launcher$ProcStarter.start(Launcher.java:346)
          at hudson.plugins.mercurial.MercurialSCM.joinWithPossibleTimeout(MercurialSCM.java:309)
          at hudson.plugins.mercurial.MercurialSCM.pull(MercurialSCM.java:303)
          at hudson.plugins.mercurial.MercurialSCM.compareRemoteRevisionWith(MercurialSCM.java:252)
          at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
          at hudson.scm.SCM.poll(SCM.java:373)
          at hudson.model.AbstractProject._poll(AbstractProject.java:1471)
          at hudson.model.AbstractProject.poll(AbstractProject.java:1404)
          at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
          at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
          at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

          hello,

          The same happened to me. I upgraded the Jenkins and after two or three polling the same error popped up.

          Barbara Schael added a comment - hello, The same happened to me. I upgraded the Jenkins and after two or three polling the same error popped up.

          Jesse Glick added a comment -

          What Jenkins version? This looks like a core bug from what I can see so far.

          Jesse Glick added a comment - What Jenkins version? This looks like a core bug from what I can see so far.

          jessebs added a comment -

          Happens for me on 1.489

          jessebs added a comment - Happens for me on 1.489

          Karl Werf added a comment -

          Jenkins 1.489

          Karl Werf added a comment - Jenkins 1.489

          Anton B added a comment -

          Same problem for me when upgrading to Jenkins 1.489 with Jenkins Mercurial plugin 1.41.

          Anton B added a comment - Same problem for me when upgrading to Jenkins 1.489 with Jenkins Mercurial plugin 1.41.

          Jesse Glick added a comment -

          Well this code was introduced in https://github.com/jenkinsci/jenkins/commit/f5cebdc843d2f86642b63f41a2b94f892e9de50a but still unsure what causes it.

          Jesse Glick added a comment - Well this code was introduced in https://github.com/jenkinsci/jenkins/commit/f5cebdc843d2f86642b63f41a2b94f892e9de50a but still unsure what causes it.
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Jesse Glick added a comment -

          Can reproduce by setting /project/parent/version to 1.491-SNAPSHOT and running mvn -Dtest=hudson.plugins.mercurial.MercurialSCMTest#testPollingLimitedToModules2 test-compile surefire:test.

          Jesse Glick added a comment - Can reproduce by setting /project/parent/version to 1.491-SNAPSHOT and running mvn -Dtest=hudson.plugins.mercurial.MercurialSCMTest#testPollingLimitedToModules2 test-compile surefire:test .

            jglick Jesse Glick
            karl_werf Karl Werf
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: