Comment 3 for bug 1092792

Revision history for this message
Johnny Ooi (johnny-jy-ooi+launchpad) wrote :

I have applied that fix, and whilst I no longer get the same error, it still does not complete successfully:

>>
debug: disabling swap
debug: running cmd ['swapoff', '-a', '-v']
debug: detected swap devices: ['/dev/mapper/lubuntu-swap_1']
info: wiping swap device '/dev/mapper/lubuntu-swap_1'
Traceback (most recent call last):
  File "/usr/share/bleachbit/bleachbit/Worker.py", line 88, in execute
    for ret in cmd.execute(self.really_delete):
  File "/usr/share/bleachbit/bleachbit/Command.py", line 131, in execute
    for func_ret in self.func():
  File "/usr/share/bleachbit/bleachbit/Memory.py", line 250, in wipe_memory
    wipe_swap_linux(devices, proc_swaps)
  File "/usr/share/bleachbit/bleachbit/Memory.py", line 227, in wipe_swap_linux
    if get_swap_size_linux(device, proc_swaps) > 8*1024**3:
  File "/usr/share/bleachbit/bleachbit/Memory.py", line 140, in get_swap_size_linux
    (device, proc_swaps))
RuntimeError: error: cannot find size of swap device '/dev/mapper/lubuntu-swap_1'
Filename Type Size Used Priority
/dev/dm-1 partition 6283260 19292 -1

error: cannot find size of swap device '/dev/mapper/lubuntu-swap_1'
Filename Type Size Used Priority
/dev/dm-1 partition 6283260 19292 -1
Disk space recovered: 16.4kB
Files deleted: 4
Special operations: 14
Errors: 2
<<