Red Hat Bugzilla – Bug 83314
redhat-config-xfree86 crashes if XF86Config contains no Modes line
Last modified: 2008-05-01 11:38:05 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212
Description of problem:
If XF86Config contains a display section like this :
# Modes "1024x768"
then 'redhat-config-xfree86' will crash with :
Traceback (most recent call last):
File "/usr/share/redhat-config-xfree86/xconf.py", line 1585, in ?
hardware_state = HardwareState(xconfig)
File "/usr/share/redhat-config-xfree86/xconf.py", line 181, in __init__
File "/usr/share/redhat-config-xfree86/xconf.py", line 266, in init_from_xconfig
self.resolution = d.modes.name
IndexError: index out-of-bounds
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. comment out Modes line
2. start redhat-config-xfree86
3. .. crash.
Actual Results: app crashes.
Expected Results: app should never crash.
With commented out Modes line, XFree86 runs fine and chooses highest possible
I've made is so that the system falls back to 800x600. That should be a low
enough mode to work on most monitors. That will at least get the
redhat-config-xfree86 interface up and running. Then if you want a higher
resolution, you can pick it in the menu.
Also, this probing code has been moved to rhpl, so you will need a new rhpl and
a new redhat-config-xfree86.
Should be fixed in rhpl-0.84-1 and redhat-config-xfree86-0.7.3-2. QA, please
Commented out the Modes lines from my "/etc/X11/XF86Config" file and started
"redhat-config-xfree86" starts correctly and defaults to 800x600. Quit program.
Recommented out again the new Modes line from my "/etc/X11/XF86Config" file and
started "redhat-config-xfree86" again.
"redhat-config-xfree86" again starts correctly and defaults to 800x600.
So, verified fixed with packages "redhat-config-xfree86-0.7.3-2" and
"rhpl-0.92-1" on Phoebe 8.0.94.