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

Display number out of bounds, no way to reset

    Details

    • Similar Issues:

      Description

      I had some trouble with my LAN, and for that reason xvnc was failing to launch for some time.
      Now it seems like it has blacklisted a lot of valid DISPLAY_NUMBER values, so I'm seeing the following:

      /bin/vncserver :263 -geometry 800x600
      vncserver: Illegal display number (263). Value must be 1..99.

      /bin/vncserver :264 -geometry 800x600
      vncserver: Illegal display number (264). Value must be 1..99.

      The plugin recommends me to enable the 'cleanup before start' option, but it is already enabled.

      1) There should be a setting for an upper limit to DISPLAY_NUMBER (or the limit should just be hard-coded to 99)
      2) There should be a way to view/edit or at least reset the blacklist

        Attachments

          Activity

          Hide
          levsa Levon Saldamli added a comment -

          No, this is not implemented yet.

          Show
          levsa Levon Saldamli added a comment - No, this is not implemented yet.
          Hide
          alex01ves Alex Vesely added a comment -

          Then how will Jenkins behave if all available display numbers are in use or blacklisted?

          Show
          alex01ves Alex Vesely added a comment - Then how will Jenkins behave if all available display numbers are in use or blacklisted?
          Hide
          levsa Levon Saldamli added a comment -

          Very bad. It would need a restart. I'll implement the above suggestion to clear the blacklist when it's full in the next release.

          Show
          levsa Levon Saldamli added a comment - Very bad. It would need a restart. I'll implement the above suggestion to clear the blacklist when it's full in the next release.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Levon Saldamli
          Path:
          src/main/java/hudson/plugins/xvnc/DisplayAllocator.java
          src/main/java/hudson/plugins/xvnc/Xvnc.java
          src/test/java/hudson/plugins/xvnc/DisplayAllocatorTest.java
          http://jenkins-ci.org/commit/xvnc-plugin/6bdd6098c1d5f2a5aeb52fd05fa2f82d85782f96
          Log:
          Fix issue JENKINS-17550, make DisplayAllocator singleton so it can keep track of allocated displays. Also fixes JENKINS-17280.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Levon Saldamli Path: src/main/java/hudson/plugins/xvnc/DisplayAllocator.java src/main/java/hudson/plugins/xvnc/Xvnc.java src/test/java/hudson/plugins/xvnc/DisplayAllocatorTest.java http://jenkins-ci.org/commit/xvnc-plugin/6bdd6098c1d5f2a5aeb52fd05fa2f82d85782f96 Log: Fix issue JENKINS-17550 , make DisplayAllocator singleton so it can keep track of allocated displays. Also fixes JENKINS-17280 .
          Hide
          levsa Levon Saldamli added a comment -

          Fixed in xvnc-1.14

          Show
          levsa Levon Saldamli added a comment - Fixed in xvnc-1.14

            People

            • Assignee:
              levsa Levon Saldamli
              Reporter:
              alex01ves Alex Vesely
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: