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

Launcher mixes stdout and stderr of dot

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • depgraph-view-plugin
    • None
    • jenkins 1.440, depgraph-view 0.2

    Description

      On our jenkins server when depgraph-view calls dot, dot writes some warning on stderr before it generates the dependency graph picture. And the Launcher object that initiates the call somehow mixes stderr and stdout, so the browser gots a stream that starts with text warnings and continues with the bytes of the picture, and of course the browser doesn't think it's a valid png file. See the result attached. (As a workaround, our sysadmin solved the problem temporarily by sending stderr to /dev/null, so we can see the picture now, but I think it should be fixed in the program.)

      Attachments

        Activity

          Another workaround is to add the "-q1" parameter to the dot executable. This suppresses all warnings.

          This can be implemented in /depgraph-view/src/main/java/hudson/plugins/depgraph_view/AbstractDependencyGraphAction.java Line 143.

          stundzig Steffen Stundzig added a comment - Another workaround is to add the "-q1" parameter to the dot executable. This suppresses all warnings. This can be implemented in /depgraph-view/src/main/java/hudson/plugins/depgraph_view/AbstractDependencyGraphAction.java Line 143.

          Code changed in jenkins
          User: Stefan Wolf
          Path:
          src/main/java/hudson/plugins/depgraph_view/AbstractDependencyGraphAction.java
          http://jenkins-ci.org/commit/depgraph-view-plugin/cc12902ef1fae4191aa9b8990ef49fa4a80023ed
          Log:
          [FIXED JENKINS-11875] Use -q1 to switch of verbose output of graphviz

          Compare: https://github.com/jenkinsci/depgraph-view-plugin/compare/7dd8527af25a...cc12902ef1fa

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stefan Wolf Path: src/main/java/hudson/plugins/depgraph_view/AbstractDependencyGraphAction.java http://jenkins-ci.org/commit/depgraph-view-plugin/cc12902ef1fae4191aa9b8990ef49fa4a80023ed Log: [FIXED JENKINS-11875] Use -q1 to switch of verbose output of graphviz Compare: https://github.com/jenkinsci/depgraph-view-plugin/compare/7dd8527af25a...cc12902ef1fa
          wolfs Stefan Wolf added a comment -

          I think the warnings are written so stdout, not stderr. This is because in theory stderr is already handled differently. To fix the issue I added -q1 to the command line. Please test, this should be fixed in version 0.5.

          wolfs Stefan Wolf added a comment - I think the warnings are written so stdout, not stderr. This is because in theory stderr is already handled differently. To fix the issue I added -q1 to the command line. Please test, this should be fixed in version 0.5.

          People

            wolfs Stefan Wolf
            oj János Orosz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: