source_xorg.py crashed with ValueError in attach_graphic_card_pci_info(): need more than 1 value to unpack
Bug #844733 reported by
Chris Bainbridge
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NULL Project |
Invalid
|
Undecided
|
Unassigned | ||
xdiagnose |
Fix Released
|
High
|
Unassigned |
Bug Description
run apport-bug
click on "I can reproduce this bug"
get following error and dumped back to dialog:
ERROR: hook /usr/share/
Traceback (most recent call last):
File "/usr/lib/
symb[
File "/usr/share/
attach_
File "/usr/share/
key, value = line.split(': ', 1)
ValueError: need more than 1 value to unpack
Related branches
summary: |
oneiric hook /usr/share/apport/package-hooks//xserver-xorg-core.py crash - ValueError: need more than 1 value to unpacked + ValueError: need more than 1 value to unpack |
tags: | added: oneiric |
tags: | added: patch |
summary: |
- oneiric hook /usr/share/apport/package-hooks//xserver-xorg-core.py crash - ValueError: need more than 1 value to unpack + source_xorg.py crashed with ValueError in + attach_graphic_card_pci_info(): need more than 1 value to unpack |
affects: | apport → null |
Changed in null: | |
status: | New → Invalid |
Changed in xdiagnose: | |
importance: | Undecided → High |
status: | New → Fix Committed |
Changed in xdiagnose: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
for paragraph in display_ pci.split( '\n\n') : split(' \n'):
continue
for line in paragraph.
if ':' not in line:
key, value = line.split(': ', 1)
value = value.strip()
key = key.strip()
The ValueError occurs on the line
key, value = line.split(': ', 1)
The problem is line.split returns ['\t\tDevCap: \tMaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited']
Note :\t is not matched by the split on ': '
Fix:
--- /usr/share/ apport/ package- hooks/xserver- xorg-core. py.orig 2011-09-14 03:00:44.392362002 +0100 apport/ package- hooks/xserver- xorg-core. py 2011-09-14 03:01:52.102362002 +0100 split(' \n'):
continue r'(.*?) :\s(.*) ', line)
+++ /usr/share/
@@ -338,7 +338,10 @@
for line in paragraph.
if ':' not in line:
- key, value = line.split(': ', 1)
+ m = re.match(
+ if not m:
+ continue
+ key, value = m.group(1), m.group(2)
value = value.strip()
key = key.strip()
if "VGA compatible controller" in key: