bzr crashed with AssertionError in _generate_inventory()

Bug #717640 reported by Sebastian "Nait" Kacprzak
This bug report is a duplicate of:  Bug #515651: qdiff: refresh crashes after a commit. Edit Remove
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
New
Undecided
Unassigned
bzr (Ubuntu)
New
Medium
Unassigned

Bug Description

Binary package hint: bzr

I got this exception when clicked on "refresh" in qdiff window. This button worked earlier when I've changed file and clicked it. This time I've commited change having qdiff window already open, and hited refresh hoping that it will show only uncommited files(instead it crashed). From log it looks like there was assertion that changes will not be commited in background, but I think that it would be better to close current bzr qdiif and open new one(if there is no more elegant way to do it) instead of crashing.

Ubuntu 10.10 64, bzr 2.2.1-0ubuntu1

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: bzr 2.2.1-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-25.44-generic 2.6.35.10
Uname: Linux 2.6.35-25-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
BzrDebugFlags: set()
BzrPlugins:
 bash_completion /usr/lib/python2.6/dist-packages/bzrlib/plugins/bash_completion [2.2.1]
   launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.2.1]
   netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.2.1]
   news_merge /usr/lib/python2.6/dist-packages/bzrlib/plugins/news_merge [2.2.1]
   qbzr /usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr [0.19.1]
BzrVersion: 2.2.1
CheckboxSubmission: 2ace1c64ae1eaa828b91d7d18b71f03d
CheckboxSystem: 4d91670f303bf573a1976f25f9a263fb
CommandLine: ['/usr/bin/bzr', 'qdiff']
CrashDb: bzr
Date: Sat Feb 12 11:30:27 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InterpreterPath: /usr/bin/python2.6
Locale: pl_PL.UTF-8
Platform: Linux-2.6.35-25-generic-x86_64-with-Ubuntu-10.10-maverick
ProcCmdline: /usr/bin/python /usr/bin/bzr qdiff
ProcEnviron:
 SHELL=/bin/bash
 LANG=pl_PL.UTF-8
 LANGUAGE=pl_PL:pl:en_GB:en
PythonVersion: 2.6.6
SourcePackage: bzr
Title: bzr crashed with AssertionError in _generate_inventory()
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/diffwindow.py", line 441, in click_refresh
    run_in_loading_queue(self.load_diff)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/util.py", line 868, in run_in_loading_queue
    f(*args, **kargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/qbzr/lib/diffwindow.py", line 297, in load_diff
    executable) in sorted(changes, key=changes_key):
  File "/usr/lib/python2.6/dist-packages/bzrlib/tree.py", line 1070, in iter_changes
    specific_file_ids=specific_file_ids))
  File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 140, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/tree.py", line 201, in iter_entries_by_dir
    return self.inventory.iter_entries_by_dir(
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 1831, in _get_inventory
    self._generate_inventory()
  File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree_4.py", line 1697, in _generate_inventory
    self._revision_id, self._dirstate.get_parent_ids()))
AssertionError: parent <email address hidden> has disappeared from ['<email address hidden>']

Revision history for this message
Sebastian "Nait" Kacprzak (naicik) wrote :
tags: removed: need-duplicate-check
Martin Pool (mbp)
description: updated
Martin Pool (mbp)
visibility: private → public
Changed in bzr (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Vincent Ladeuil (vila) wrote :

I suspect this has been fixed (or don't occur anymore) from the qbzr side.

affects: bzr → qbzr
Revision history for this message
Sebastian "Nait" Kacprzak (naicik) wrote :

In what version was it fixed? I tried again (open qbzr, commit changes in other window from CLI, press refresh in qbzr) and it crashed just like in old version. That said I got used to it in the meantime so if no one cares about it then maybe lets call it a feature and close it ;)

Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
bzr: ERROR: exceptions.AssertionError: parent <email address hidden> has disappeared from ['<email address hidden>']

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/util.py", line 944, in run_in_loading_queue
    f(*args, **kargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/diffwindow.py", line 435, in load_diff
    lock_trees=True):
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/qbzr/lib/diff.py", line 201, in iter_items
    executable) in sorted(changes, key=changes_key):
  File "/usr/lib/python2.7/dist-packages/bzrlib/tree.py", line 1180, in iter_changes
    specific_file_ids=specific_file_ids))
  File "/usr/lib/python2.7/dist-packages/bzrlib/decorators.py", line 155, in read_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/tree.py", line 881, in iter_entries_by_dir
    return self.root_inventory.iter_entries_by_dir(
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree_4.py", line 1959, in _get_root_inventory
    self._generate_inventory()
  File "/usr/lib/python2.7/dist-packages/bzrlib/workingtree_4.py", line 1810, in _generate_inventory
    self._revision_id, self._dirstate.get_parent_ids()))
AssertionError: parent <email address hidden> has disappeared from ['<email address hidden>']

bzr 2.6.0dev3 on python 2.7.4 (Linux-3.8.0-27-generic-x86_64-with-
    Ubuntu-13.04-raring)
arguments: ['/usr/bin/bzr', 'qdi']
plugins: bash_completion[2.6.0dev3], bzrtools[2.5.0],
    changelog_merge[2.6.0dev3], fastimport[0.13.0], grep[2.6.0dev3],
    launchpad[2.6.0dev3], netrc_credential_store[2.6.0dev3],
    news_merge[2.6.0dev3], po_merge[2.6.0dev3], qbzr[0.23.0],
    weave_fmt[2.6.0dev3]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'pl_PL.UTF-8'

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.