GUI.py crashed with AssertionError in chownself()

Bug #715199 reported by Dave Stroud
426
This bug affects 43 people
Affects Status Importance Assigned to Milestone
bleachbit (Ubuntu)
Fix Released
Undecided
Andrew Ziem

Bug Description

Binary package hint: bleachbit

opened bleachbit root. inserted password . crashed and did not start

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bleachbit 0.8.7-1
ProcVersionSignature: Ubuntu 2.6.38-2.29-generic 2.6.38-rc3
Uname: Linux 2.6.38-2-generic i686
Architecture: i386
Date: Tue Feb 8 08:57:39 2011
ExecutablePath: /usr/share/bleachbit/bleachbit/GUI.py
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110202)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: python /usr/bin/bleachbit
ProcEnviron:
 PATH=(custom, no user)
 LC_MESSAGES=en_US.utf8
 LANG=en_US.UTF-8
 LANGUAGE=en_US:en
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/bleachbit']
SourcePackage: bleachbit
Title: GUI.py crashed with AssertionError in chownself()
UserGroups:

Revision history for this message
Dave Stroud (bigdavesr) wrote :
tags: removed: need-duplicate-check
visibility: private → public
Revision history for this message
Andrew Ziem (ahziem1) wrote :

Did you install BleachBit from the Ubuntu repo or from http://bleachbit.sourceforge.net ? Did you start BleachBit from the command line or from the Ubuntu system menu?

Revision history for this message
Dave Stroud (bigdavesr) wrote : Re: [Bug 715199] Re: GUI.py crashed with AssertionError in chownself()

from ubuntu repo. synaptic

On Wed, Feb 9, 2011 at 7:10 AM, Andrew Ziem <email address hidden> wrote:

> Did you install BleachBit from the Ubuntu repo or from
> http://bleachbit.sourceforge.net ? Did you start BleachBit from the
> command line or from the Ubuntu system menu?
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/715199
>
> Title:
> GUI.py crashed with AssertionError in chownself()
>

--
@Dave Stroud@

Revision history for this message
Dave Stroud (bigdavesr) wrote :

On Wed, Feb 9, 2011 at 7:44 AM, Dave Stroud SR <email address hidden> wrote:

> from ubuntu repo. synaptic
>
>
> On Wed, Feb 9, 2011 at 7:10 AM, Andrew Ziem <email address hidden> wrote:
>
>> Did you install BleachBit from the Ubuntu repo or from
>> http://bleachbit.sourceforge.net ? Did you start BleachBit from the
>> command line or from the Ubuntu system menu?
>> from system menue
>> --
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>> https://bugs.launchpad.net/bugs/715199
>>
>> Title:
>> GUI.py crashed with AssertionError in chownself()
>>
>
>
>
> --
> @Dave Stroud@
>

--
@Dave Stroud@

Revision history for this message
Andrew Ziem (ahziem1) wrote :

Dave, did you launch BleachBit from the command line or from the Ubuntu system menu? (There is a menu entry called "BleachBit as Administrator.") If from the command line, what commands?

Revision history for this message
Dave Stroud (bigdavesr) wrote :

ubuntu system menu. bleachbit as root. have not tried in command line.

On Wed, Feb 9, 2011 at 8:17 AM, Andrew Ziem <email address hidden> wrote:

> Dave, did you launch BleachBit from the command line or from the Ubuntu
> system menu? (There is a menu entry called "BleachBit as
> Administrator.") If from the command line, what commands?
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/715199
>
> Title:
> GUI.py crashed with AssertionError in chownself()
>

--
@Dave Stroud@

Revision history for this message
Dave Stroud (bigdavesr) wrote :

it will open in command line. Still shows error but does open.

Revision history for this message
ubuntosaure (ubuntosaure) wrote :

bleachbit no start as root in natty

Changed in bleachbit (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrew Ziem (ahziem1) wrote :

BleachBit 0.8.7 works OK as administrator on Ubuntu 10.10, but fails to start on Ubuntu 11.04

Changed in bleachbit (Ubuntu):
assignee: nobody → Andrew Ziem (ahziem1)
tags: added: bugpattern-needed
Revision history for this message
José Lou Chang (obake) wrote :
Download full text (3.9 KiB)

I used to get this when Bleachbit refused to start (crash):

username@computer:~$ gksu bleachbit
info: starting BleachBit version 0.8.7
debug: chown(/root/.config/bleachbit/bleachbit.ini, uid=1000)
    from Cleaner import backends
  File "/usr/share/bleachbit/bleachbit/Cleaner.py", line 44, in <module>
    import Special
  File "/usr/share/bleachbit/bleachbit/Special.py", line 27, in <module>
    from Options import options
  File "/usr/share/bleachbit/bleachbit/Options.py", line 246, in <module>
    options = Options()
  File "/usr/share/bleachbit/bleachbit/Options.py", line 44, in __init__
    self.restore()
  File "/usr/share/bleachbit/bleachbit/Options.py", line 149, in restore
    self.set_list('shred_drives', Unix.guess_overwrite_paths())
  File "/usr/share/bleachbit/bleachbit/Options.py", line 195, in set_list
    self.__flush()
  File "/usr/share/bleachbit/bleachbit/Options.py", line 62, in __flush
    General.chownself(Common.options_file)
  File "/usr/share/bleachbit/bleachbit/General.py", line 76, in chownself
    assert(path.find('/root') != 0)
AssertionError
username@computer:~$

Now, Bleachbit dosn't crash:
Username@computer:~$ gksu bleachbit
info: starting BleachBit version 0.8.7
info: automatically preserving language 'en'
info: automatically hiding cleaner 'adobe_reader'
info: automatically hiding cleaner 'amsn'
info: automatically hiding cleaner 'amule'
info: automatically hiding cleaner 'audacious'
info: automatically hiding cleaner 'bash'
info: automatically hiding cleaner 'beagle'
info: automatically hiding cleaner 'chromium'
info: automatically hiding cleaner 'd4x'
info: automatically hiding cleaner 'easytag'
info: automatically hiding cleaner 'elinks'
info: automatically hiding cleaner 'emesene'
info: automatically hiding cleaner 'epiphany'
info: automatically hiding cleaner 'evolution'
info: automatically hiding cleaner 'exaile'
info: automatically hiding cleaner 'filezilla'
info: automatically hiding cleaner 'firefox'
info: automatically hiding cleaner 'flash'
info: automatically hiding cleaner 'gedit'
info: automatically hiding cleaner 'gftp'
info: automatically hiding cleaner 'gimp'
info: automatically hiding cleaner 'gl-117'
info: automatically hiding cleaner 'gnome'
info: automatically hiding cleaner 'google_chrome'
info: automatically hiding cleaner 'google_earth'
info: automatically hiding cleaner 'google_toolbar'
info: automatically hiding cleaner 'gpodder'
info: automatically hiding cleaner 'gwenview'
info: automatically hiding cleaner 'hippo_opensim_viewer'
info: automatically hiding cleaner 'java'
info: automatically hiding cleaner 'kde'
info: automatically hiding cleaner 'konqueror'
info: automatically hiding cleaner 'liferea'
info: automatically hiding cleaner 'links2'
info: automatically hiding cleaner 'midnightcommander'
info: automatically hiding cleaner 'miro'
info: automatically hiding cleaner 'nautilus'
info: automatically hiding cleaner 'nexuiz'
info: automatically hiding cleaner 'openofficeorg'
info: automatically hiding cleaner 'opera'
info: automatically hiding cleaner 'pidgin'
info: automatically hiding cleaner 'realplayer'
info: automatically hiding cleaner 'recoll'
info: automatically hiding c...

Read more...

Revision history for this message
SmilingWolf (lupo996) wrote :

I had the same problem on a fresh installation of Ubuntu Natty Narwal Beta 1 20110330.

I solved giving 'sudo apt-get update', 'sudo apt-get install bleachbit', then 'sudo apt-get upgrade' and finally restarting the PC.

Now everything works.

Revision history for this message
Andrew Ziem (ahziem1) wrote :

SmilingWolf: I confirm that with updates installed on Ubuntu 11.04 as of April 17, 2011, I do not see this when running 'sudo bleachbit'

Also there are no patches listed in Natty Narwhal
https://launchpad.net/ubuntu/+source/bleachbit

So I conclude the bug was fixed in some other part of Ubuntu (maybe in sudo), so I am closing this ticket. If anyone else still see this, please let me know and reopen this ticket.

Changed in bleachbit (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Dave Stroud (bigdavesr) wrote :

as of 4/17/2011 it is working as expected .

To post a comment you must log in.