Segfaults if there isn't any module section

Bug #119278 reported by Andreas Schildbach
52
Affects Status Importance Assigned to Milestone
displayconfig-gtk (Ubuntu)
Invalid
High
Unassigned
kde-guidance (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: displayconfig-gtk

$ sudo displayconfig-gtk
on_button_test_config_clicked()
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/displayconfiggtk/DisplayConfig.py", line 726, in on_button_test_config_clicked
    (res, msg) = testX(self.xsetup,"/usr/share/displayconfig-gtk/servertestdialog-gtk")
  File "/usr/lib/python2.5/site-packages/displayconfig/displayconfigcommon.py", line 60, in testX
    xsetup.writeXorgConfig(config_filename)
  File "/usr/lib/python2.5/site-packages/displayconfig/displayconfigabstraction.py", line 691, in writeXorgConfig
    self._syncXorgConfig()
  File "/usr/lib/python2.5/site-packages/displayconfig/displayconfigabstraction.py", line 642, in _syncXorgConfig
    gfxcard._syncXorgConfig()
  File "/usr/lib/python2.5/site-packages/displayconfig/displayconfigabstraction.py", line 1284, in _syncXorgConfig
    module = self.x_config.getSections('module')[0]
IndexError: list index out of range

This happens if I just press "Test", after the GUI comes up.

Tested on a freshly installed Tribe 1 on an Intel i915GMS, both with xserver-xorg-video-i810 and xserver-xorg-video-intel.

Revision history for this message
Andreas Schildbach (schildbach) wrote :
Revision history for this message
Andreas Schildbach (schildbach) wrote :
Revision history for this message
Massimo Padovan (massimo-padovan) wrote :

Same problem.

Revision history for this message
Massimo Padovan (massimo-padovan) wrote :

I have resolved adding a "fake" module section:
Section "Module"
EndSection

Bryce Harrington (bryce)
Changed in displayconfig-gtk:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

I committed a patch upstream to the kde3 branch of guidance.

Changed in displayconfig-gtk:
status: Confirmed → Fix Committed
status: Fix Committed → Invalid
Changed in kde-guidance:
status: New → Fix Committed
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Here is the applied patch. In the case that you prefer to not update the kde-guidance upstream source.

Changed in kde-guidance:
status: Fix Committed → Fix Released
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.