don't break on empty cache files

Bug #101883 reported by Sebastien Bacher
6
Affects Status Importance Assigned to Milestone
restricted-manager (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: restricted-manager

Running "restricted-manager -C" opens the "do you want to install nvidia driver" dialog

$ restricted-manager -l
fglrx
nvidia_legacy
ipw3945
nvidia

$ lspci | grep VG
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]

$ lspci -n
00:00.0 0600: 10de:00e1 (rev a1)
00:01.0 0601: 10de:00e0 (rev a2)
00:01.1 0c05: 10de:00e4 (rev a1)
00:02.0 0c03: 10de:00e7 (rev a1)
00:02.1 0c03: 10de:00e7 (rev a1)
00:02.2 0c03: 10de:00e8 (rev a2)
00:05.0 0680: 10de:00df (rev a2)
00:06.0 0401: 10de:00ea (rev a1)
00:08.0 0101: 10de:00e5 (rev a2)
00:09.0 0101: 10de:00ee (rev a2)
00:0a.0 0101: 10de:00e3 (rev a2)
00:0b.0 0604: 10de:00e2 (rev a2)
00:0e.0 0604: 10de:00ed (rev a2)
00:18.0 0600: 1022:1100
00:18.1 0600: 1022:1101
00:18.2 0600: 1022:1102
00:18.3 0600: 1022:1103
01:00.0 0300: 1002:4150
01:00.1 0380: 1002:4170
02:09.0 0200: 10ec:8029
02:0c.0 0c00: 1106:3044 (rev 46)

Revision history for this message
Sebastien Bacher (seb128) wrote :

$ lspci
00:00.0 Host bridge: nVidia Corporation nForce3 250Gb Host Bridge (rev a1)
00:01.0 ISA bridge: nVidia Corporation nForce3 250Gb LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation nForce 250Gb PCI System Management (rev a1)
00:02.0 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.1 USB Controller: nVidia Corporation CK8S USB Controller (rev a1)
00:02.2 USB Controller: nVidia Corporation nForce3 EHCI USB 2.0 Controller (rev a2)
00:05.0 Bridge: nVidia Corporation CK8S Ethernet Controller (rev a2)
00:06.0 Multimedia audio controller: nVidia Corporation nForce3 250Gb AC'97 Audio Controller (rev a1)
00:08.0 IDE interface: nVidia Corporation CK8S Parallel ATA Controller (v2.5) (rev a2)
00:09.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller (v2.5) (rev a2)
00:0a.0 IDE interface: nVidia Corporation CK8S Serial ATA Controller (v2.5) (rev a2)
00:0b.0 PCI bridge: nVidia Corporation nForce3 250Gb AGP Host to PCI Bridge (rev a2)
00:0e.0 PCI bridge: nVidia Corporation nForce3 250Gb PCI-to-PCI Bridge (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]
01:00.1 Display controller: ATI Technologies Inc RV350 AP [Radeon 9600] (Secondary)
02:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
02:0c.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)

Martin Pitt (pitti)
Changed in restricted-manager:
assignee: nobody → pitti
importance: Undecided → High
status: Unconfirmed → In Progress
Revision history for this message
Johan Kiviniemi (ion) wrote :

Please paste the output of the following command

  find /sys/devices -name modalias -print0 -printf "%s: " -exec cat {} \;

Thanks

Revision history for this message
Johan Kiviniemi (ion) wrote :

Whoops. I should have pasted:

  find /sys/devices -name modalias -printf "%P: " -exec cat {} \;

Revision history for this message
Sebastien Bacher (seb128) wrote :

$ find /sys/devices -name modalias -printf "%P: " -exec cat {} \;
pci0000:00/0000:00:18.3/modalias: pci:v00001022d00001103sv00000000sd00000000bc06sc00i00
pci0000:00/0000:00:18.2/modalias: pci:v00001022d00001102sv00000000sd00000000bc06sc00i00
pci0000:00/0000:00:18.1/modalias: pci:v00001022d00001101sv00000000sd00000000bc06sc00i00
pci0000:00/0000:00:18.0/modalias: pci:v00001022d00001100sv00000000sd00000000bc06sc00i00
pci0000:00/0000:00:0e.0/0000:02:0c.0/modalias: pci:v00001106d00003044sv00000574sd0000086Cbc0Csc00i10
pci0000:00/0000:00:0e.0/0000:02:09.0/modalias: pci:v000010ECd00008029sv000010ECsd00008029bc02sc00i00
pci0000:00/0000:00:0e.0/modalias: pci:v000010DEd000000EDsv00000000sd00000000bc06sc04i00
pci0000:00/0000:00:0b.0/0000:01:00.1/modalias: pci:v00001002d00004170sv00001681sd00000003bc03sc80i00
pci0000:00/0000:00:0b.0/0000:01:00.0/modalias: pci:v00001002d00004150sv00001681sd00000002bc03sc00i00
pci0000:00/0000:00:0b.0/modalias: pci:v000010DEd000000E2sv00000000sd00000000bc06sc04i00
pci0000:00/0000:00:0a.0/modalias: pci:v000010DEd000000E3sv00001462sd00000300bc01sc01i85
pci0000:00/0000:00:09.0/modalias: pci:v000010DEd000000EEsv00001462sd00000300bc01sc01i85
pci0000:00/0000:00:08.0/ide1/1.0/modalias: ide:m-cdrom
pci0000:00/0000:00:08.0/ide0/0.0/modalias: ide:m-disk
pci0000:00/0000:00:08.0/modalias: pci:v000010DEd000000E5sv00001462sd00000300bc01sc01i8a
pci0000:00/0000:00:06.0/modalias: pci:v000010DEd000000EAsv00001462sd00007585bc04sc01i00
pci0000:00/0000:00:05.0/modalias: pci:v000010DEd000000DFsv00001462sd00000300bc06sc80i00
pci0000:00/0000:00:02.2/usb3/3-0:1.0/modalias: usb:v0000p0000d0206dc09dsc00dp01ic09isc00ip00
pci0000:00/0000:00:02.2/modalias: pci:v000010DEd000000E8sv00001462sd00000300bc0Csc03i20
pci0000:00/0000:00:02.1/usb2/2-2/2-2:1.0/modalias: usb:v05E3p0596d0150dc00dsc00dp00ic03isc00ip00
pci0000:00/0000:00:02.1/usb2/2-0:1.0/modalias: usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00
pci0000:00/0000:00:02.1/modalias: pci:v000010DEd000000E7sv00001462sd00000300bc0Csc03i10
pci0000:00/0000:00:02.0/usb1/1-4/1-4:1.0/modalias: usb:v03F0p1204d0100dc00dsc00dp00ic07isc01ip02
pci0000:00/0000:00:02.0/usb1/1-0:1.0/modalias: usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00
pci0000:00/0000:00:02.0/modalias: pci:v000010DEd000000E7sv00001462sd00000300bc0Csc03i10
pci0000:00/0000:00:01.1/modalias: pci:v000010DEd000000E4sv00001462sd00000300bc0Csc05i00
pci0000:00/0000:00:01.0/modalias: pci:v000010DEd000000E0sv00001462sd00000300bc06sc01i00
pci0000:00/0000:00:00.0/modalias: pci:v000010DEd000000E1sv00001462sd00000300bc06sc00i00
platform/bluetooth/modalias: bluetooth
platform/floppy.0/modalias: floppy
platform/vesafb.0/modalias: vesafb
platform/eisa.0/modalias: eisa
platform/i8042/serio1/modalias: serio:ty01pr00id00ex00
platform/i8042/serio0/modalias: serio:ty06pr00id00ex00
platform/i8042/modalias: i8042
platform/serial8250/modalias: serial8250
platform/pcspkr/modalias: pcspkr

Revision history for this message
Martin Pitt (pitti) wrote :

Problem was a broken empty cache file after / ran out of space.

Revision history for this message
Mike Dahlgren (dahlgren) wrote :

Martin,
   Are you saying that this bug is a no-issue then?

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 101883] Re: wants to install nvidia drivers on a ATI desktop

Hi,

Mike Dahlgren [2007-04-02 15:46 -0000]:
> Martin,
> Are you saying that this bug is a no-issue then?

No, I didn't, otherwise I would have closed it. r-m needs to handle
this situation more gracefully. However, it isn't the 'OMG the sky is
falling' category any more.

Martin Pitt (pitti)
Changed in restricted-manager:
importance: High → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

 restricted-manager (0.18) feisty; urgency=low
 .
   * RestrictedManager/xorg_driver.py: Intercept ParseException and
     AttributeError when parsing xorg.conf, and display an error dilaog instead
     of crashing. (LP: #102052)
   * restricted-manager: Set gettext domain for the glade file to get a
     translated window title. (LP: #99357)
   * RestrictedManager/restricted22.png: Replace with a non-blurry version,
     thanks to Jef! (LP: #102641)
   * RestrictedManager/core.py, save_restricted_list(): If we encounter an
     exception during writing the cache file (e. g. out of space), unlink it,
     so that we ensure to never have broken cache files. (LP: #101883)

Changed in restricted-manager:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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