xdiagnose crashed with KeyError in run(): 'nopat'

Bug #903484 reported by Adrián
52
This bug affects 9 people
Affects Status Importance Assigned to Milestone
xdiagnose
Fix Released
Undecided
Unassigned
xdiagnose (Ubuntu)
Fix Released
Critical
Bryce Harrington

Bug Description

Start xdiagnose.

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: xdiagnose 1.8
ProcVersionSignature: Ubuntu 3.2.0-4.10-generic 3.2.0-rc5
Uname: Linux 3.2.0-4-generic x86_64
.tmp.unity.support.test.0:

ApportVersion: 1.90-0ubuntu1
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,move,gnomecompat,imgpng,compiztoolbox,grid,place,wall,unitymtgrabhandles,resize,session,regex,vpswitch,thumbnail,animation,wobbly,workarounds,screenshot,expo,ezoom,fade,scale,unityshell]
CompositorRunning: compiz
Date: Tue Dec 13 00:55:04 2011
DistUpgraded: Log time: 2011-12-07 20:36:50.721229
DistroCodename: precise
DistroVariant: ubuntu
ExecutablePath: /usr/bin/xdiagnose
GraphicsCard:
 ATI Technologies Inc RV350 AS [Radeon 9550] [1002:4153] (prog-if 00 [VGA controller])
   Subsystem: PC Partner Limited Device [174b:0200]
   Subsystem: PC Partner Limited Device [174b:0201]
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111129.1)
InterpreterPath: /usr/bin/python2.7
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: ASUSTek Computer Inc. K8N
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/xdiagnose
ProcEnviron:
 PATH=(custom, no user)
 LANG=hu_HU.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-generic root=UUID=b8105523-53ef-407a-9b59-14b579025d38 ro quiet splash vt.handoff=7
PythonArgs: ['/usr/bin/xdiagnose']
SourcePackage: xdiagnose
Title: xdiagnose crashed with KeyError in run(): 'nopat'
UpgradeStatus: Upgraded to precise on 2011-12-10 (2 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 02/16/2006
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 1011.005
dmi.board.name: 'K8N'
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1011.005:bd02/16/2006:svnASUSTekComputerInc.:pnK8N:pvrSystemVersion:rvnASUSTeKComputerINC.:rn'K8N':rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: K8N
dmi.product.version: System Version
dmi.sys.vendor: ASUSTek Computer Inc.
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu8
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.27-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu4
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu4
version.xserver-xorg-core: xserver-xorg-core 2:1.10.4-1ubuntu6
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

Revision history for this message
Adrián (jaksi) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdiagnose (Ubuntu):
status: New → Confirmed
visibility: private → public
Revision history for this message
Bryce Harrington (bryce) wrote :

Please attach your /boot/grub/grub.cfg

Guessing xdiagnose is choking on the 'nopat' setting in your grub configuration.

Changed in xdiagnose (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Critical
assignee: nobody → Bryce Harrington (bryce)
assignee: Bryce Harrington (bryce) → nobody
status: Triaged → Incomplete
Bryce Harrington (bryce)
Changed in xdiagnose (Ubuntu):
assignee: nobody → Bryce Harrington (bryce)
Revision history for this message
Roland Dreier (roland.dreier) wrote :

I get the same

 sudo xdiagnose
Traceback (most recent call last):
  File "/usr/bin/xdiagnose", line 59, in <module>
    app.run()
  File "/usr/lib/python2.7/dist-packages/xdiagnose/applet.py", line 337, in run
    del cmdline_default_params['nopat']
KeyError: 'nopat'

but no "nopat" anything in grub.cfg (attached)

Haven't looked at the xdiagnose code yet.

Revision history for this message
Roland Dreier (roland.dreier) wrote :

Actually the code in question is

            if self.__disable_pat:
                cmdline_default_params['nopat'] = None
            else:
                del cmdline_default_params['nopat']

and presumably __disable_pat is not set and cmdline_default_params doesn't have a 'nopat' entry, so we're trying to delete an entry that doesn't exist?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xdiagnose - 2.0

---------------
xdiagnose (2.0) precise; urgency=low

  * debian/control: Drop dependence on transitional python-gobject in
    favor of python-gi.
  * Avoid deleting keys from dict that don't exist. Fixes crash with
    missing 'nopat'.
    (LP: #903484)
 -- Bryce Harrington <email address hidden> Wed, 11 Jan 2012 15:40:02 +0100

Changed in xdiagnose (Ubuntu):
status: Incomplete → Fix Released
Bryce Harrington (bryce)
Changed in xdiagnose:
status: New → 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.