displayconfig-gtk index out of range

Bug #144410 reported by Timon_and_Pumba
34
Affects Status Importance Assigned to Milestone
displayconfig-gtk (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: gnome-control-center

The new utility to configure the sceens & graphics does not run on my system.
I have an Nvidia card with the Nvidia binary driver 100.14.11 and I have a dual screen setup
with a LCD and a TV connected.
On running "displayconfig-gtk" in terminal, I get this error:

Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 72, in <module>
    app = DisplayConfig(options)
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 179, in __init__
    debug_scan_pci_filename=self.options.pcitable)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 392, in __init__
    self._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 397, in _finalizeInit
    gfxcard._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1114, in _finalizeInit
    screen._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1848, in _resyncResolution
    self.gfx_card.setup.getPrimaryScreen()._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1804, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range

Revision history for this message
Steven McCoy (dsbunny) wrote :

Same with 7600GT, nv driver and 2xApple 23" on clean install. Crash appears selecting "Detect" and "Plug 'n' Play" model.

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 691, in on_configure_device_clicked
    device.setMonitorAspect(ModeLine.ASPECT_16_9)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1803, in setMonitorAspect
    self._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1810, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range

Or not selecting widescreen:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 693, in on_configure_device_clicked
    device.setMonitorAspect(ModeLine.ASPECT_4_3)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1803, in setMonitorAspect
    self._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1810, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range

Revision history for this message
Steven McCoy (dsbunny) wrote :
Revision history for this message
Steven McCoy (dsbunny) wrote :
Revision history for this message
Steven McCoy (dsbunny) wrote :
Revision history for this message
Tomáš Hudec (tommy-hudec) wrote :

Same here on Dell Latitude D510 (Intel graphics):

Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 75, in <module>
    app = DisplayConfig(options)
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 190, in __init__
    debug_scan_pci_filename=self.options.pcitable)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 392, in __init__
    self._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 411, in _finalizeInit
    self.setLayout(gfxcard._getDetectedLayout())
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 965, in setLayout
    gfxcard.setLayout(XSetup.LAYOUT_CLONE)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1177, in setLayout
    screen._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1854, in _resyncResolution
    self.gfx_card.setup.getPrimaryScreen()._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1810, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range

Revision history for this message
JP (vectorpoem) wrote :

I'm getting this too. Nvidia 7600GS with 96.39 drivers (Gutsy). Common thread here seems to be multi-monitor setups (Nvidia-only until Mr. Hudec's Intel config).

Revision history for this message
Mark Siggers (marksiggers-deactivatedaccount) wrote :

I had the same problem. I had changed my xorg.conf file so that I could output to a projector.
When I installed gutsy, and tried to use displayconfig-gtk, it wouldn't open and I got the same
error as others have been getting. So I've reverted back to the orignal xorg.conf file, and rebooted.
Now I can open displayconfig-gtk.

Revision history for this message
JP (vectorpoem) wrote :

Same here. By removing these lines from a Device section of my xorg.conf I was able to launch displayconfig-gtk:

Option "TwinView" "true"
Option "TwinViewOrientation" "Clone"
Option "TVOutFormat" "COMPOSITE"
Option "TVStandard" "NTSC-M"
Option "SecondMonitorHorizSync" "30-50"
Option "SecondMonitorVertRefresh" "60"

Of course these lines may just be enabling the feature that causes it to crash, and the real problem is happening deeper down.

Revision history for this message
djchainz (djchainz-deactivatedaccount) wrote :

I have the same/similar crash:

Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 75, in <module>
    app = DisplayConfig(options)
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 190, in __init__
    debug_scan_pci_filename=self.options.pcitable)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 77, in __init__
    self.xorg_config = xorgconfig.readConfig(xorg_config_filename)
  File "/var/lib/python-support/python2.5/xorgconfig.py", line 683, in readConfig
    raise ParseException,"Unknown line type '%s' on line %i" % (first,line)
xorgconfig.ParseException: Unknown line type '-hsync' on line 119

The only option I have under my Device is XAANoOffscreenPixmaps, and removing that still means that it crashes.

Revision history for this message
Kubismo (lee-hunter) wrote :

Similar error on HP TX1000 with Nvidia video:

Traceback (most recent call last):
  File "/usr/bin/displayconfig-gtk", line 75, in <module>
    app = DisplayConfig(options)
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 190, in __init__
    debug_scan_pci_filename=self.options.pcitable)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 392, in __init__
    self._finalizeInit()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 411, in _finalizeInit
    self.setLayout(gfxcard._getDetectedLayout())
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 965, in setLayout
    gfxcard.setLayout(XSetup.LAYOUT_CLONE)
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1177, in setLayout
    screen._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1854, in _resyncResolution
    self.gfx_card.setup.getPrimaryScreen()._resyncResolution()
  File "/var/lib/python-support/python2.5/displayconfigabstraction.py", line 1810, in _resyncResolution
    (preferred_width,preferred_height) = self.getAvailableResolutions()[-1]
IndexError: list index out of range

Revision history for this message
MaTrIx (matrixx7) wrote :

I'm having the same issue on a Compaq C555NR laptop (Intel Integrated 945) - a fresh install of hardy displays a blank brown screen upon logon. GNOME failsafe does the same thing.

When I ran displayconfig-gtk from the failsafe terminal, I see two "Monitor 1" and 1 "Monitor 2" despite only having one monitor. Resolution settings are bugged, and "default monitor" has an erratic behavior when selected.

I'm running Ubuntu off of a 8GB SDHC card, and the only workaround I've found to actually get into gnome so far was to boot from a machine with an NVIDIA graphics card, (uncertain of what else was done aside installing basic NVIDIA drivers), and then booting it back up on the bugged machine. This however seems to have resulted in OpenGL/wine issues relating to libgl, as well as some other displayconfig-gtk issues.

Revision history for this message
Bryce Harrington (bryce) wrote :

Thank you for reporting this bug and for your efforts to make Ubuntu better. As Xorg has improved this past year, an unfortunate side effect of these improvements is that it has rendered several design assumptions in displayconfig-gtk obsolete. So, starting with Hardy we are no longer putting displayconfig-gtk forth as a primary configuration tool, and are putting our development focus into the Screen Resolution applet. As a result, we do not plan to fix this bug and thus are closing it.

For more background on this change, please see this page: [WWW] https://wiki.ubuntu.com/X/DisplayConfigGtk

Changed in displayconfig-gtk:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.