"crash" when doing a checkout or update operation

Bug #771397 reported by Bartlomiej Bazior
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
New
Undecided
Unassigned

Bug Description

I've been using bzr-svn for a couple of months successfully with this svn repository. Couple of days ago, it suddenly stopped working properly (I couldn't update my local checkout with 'bzr update' as bzr-svn was crashing). I've tried to remove the local repo, and create a clean checkout, but unfortunately it also is crashing bzr-svn. Here is a log I get when this happens:

bzr checkout svn+https://<email address hidden>/svn/repos/XXXXXXX/trunk XXXXXXX
bzr: ERROR: exceptions.AssertionError: 38262 != 38264

Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 926, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.6/site-packages/bzrlib/commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/builtins.py", line 1328, in run
    accelerator_tree, hardlink)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/branch.py", line 376, in create_checkout
    hardlink=hardlink)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/branch.py", line 321, in _create_heavyweight_checkout
    checkout_branch.pull(self, stop_revision=revision_id)
  File "/Library/Python/2.6/site-packages/bzrlib/branch.py", line 1086, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/branch.py", line 817, in pull
    stop_revision, overwrite, limit=limit)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/branch.py", line 749, in _update_revisions
    project=self.source.project, mapping=self.source.mapping)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1574, in fetch
    pack_hint = self._fetch_revisions(needed, pb)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1501, in _fetch_revisions
    use_replay=self._use_replay)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1471, in _fetch_revisions_nochunks
    parent_revmeta)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1413, in _fetch_revision_switch
    report_inventory_contents(reporter, parent_revnum, start_empty)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/errors.py", line 144, in convert
    return unbound(*args, **kwargs)
  File "/Library/Python/2.6/site-packages/bzrlib/plugins/svn/fetch.py", line 1151, in report_inventory_contents
    reporter.finish()
  File "/Library/Python/2.6/site-packages/subvertpy/delta.py", line 60, in apply_window
    target_chunks.append(apply_txdelta_window(sbuf, window))
  File "/Library/Python/2.6/site-packages/subvertpy/delta.py", line 46, in apply_txdelta_window
    raise AssertionError("%d != %d" % (len(tview), tview_len))
AssertionError: 38262 != 38264

bzr 2.3.1 on python 2.6.1 (Darwin-10.7.0-i386-64bit)
arguments: ['/usr/local/bin/bzr', 'checkout', 'svn+https://<email address hidden>/svn/repos/XXXXXXX/trunk', 'XXXXXXX']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  bash_completion /Library/Python/2.6/site-packages/bzrlib/plugins/bash_completion [2.3.1]
  bzrtools /Library/Python/2.6/site-packages/bzrlib/plugins/bzrtools [2.3.1]
  colo /Library/Python/2.6/site-packages/bzrlib/plugins/colo [0.2.1]
  email /Library/Python/2.6/site-packages/bzrlib/plugins/email [unknown]
  explorer /Library/Python/2.6/site-packages/bzrlib/plugins/explorer [1.1.2]
  extmerge /Library/Python/2.6/site-packages/bzrlib/plugins/extmerge [unknown]
  fastimport /Library/Python/2.6/site-packages/bzrlib/plugins/fastimport [0.10.0]
  keychain /Library/Python/2.6/site-packages/bzrlib/plugins/keychain [0.1.0]
  launchpad /Library/Python/2.6/site-packages/bzrlib/plugins/launchpad [2.3.1]
  loom /Library/Python/2.6/site-packages/bzrlib/plugins/loom [2.2.1dev]
  netrc_credential_store /Library/Python/2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.3.1]
  news_merge /Library/Python/2.6/site-packages/bzrlib/plugins/news_merge [2.3.1]
  pipeline /Library/Python/2.6/site-packages/bzrlib/plugins/pipeline [1.1.0]
  qbzr /Library/Python/2.6/site-packages/bzrlib/plugins/qbzr [0.20.0]
  rewrite /Library/Python/2.6/site-packages/bzrlib/plugins/rewrite [0.6.2]
  svn /Library/Python/2.6/site-packages/bzrlib/plugins/svn [1.0.5dev]
  upload /Library/Python/2.6/site-packages/bzrlib/plugins/upload [1.0.1dev]
  xmloutput /Library/Python/2.6/site-packages/bzrlib/plugins/xmloutput [0.8.7.dev]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Revision history for this message
Bartlomiej Bazior (bartek-ssae) wrote :

I've tried several bzr releases (2.2.2 , 2.3.1, 2.4beta) which use different bzr-svn versions (1.0.4, 1.0.5, 1.1) on both my computers (osx and windows). The behavior is exactly the same :/ I've got my development environment also setup in a vmware machine (with bzr 2.2.2 + bzr-svn 1.0.4 installed), where I got some old version of the repo. I somehow managed to make bzr update on that virtual machine, but one of the files in fetched repository is terribly messed up (the version on svn server is perfectly fine). It looks like one of the commits, that were made into svn server by one of developers a couple of days ago, must be confusing bzr-svn and/or subvertpy, and leads to these problems (I'm the only person in the team using bzr-svn for repository access, so there is no one else, that could check this behavior). Please let me know, if you need more info/data to be able to fix this - I'd rather die than go back to "normal" svn client usage ;)
Thanks in advance!

cheers,
Bart ;)

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Have you tried a clean checkout, in a new bzr repository ?

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

what do you mean when you say you've tried bzr-svn 1.0.5 and 1.1 ? There are no such releases..

Revision history for this message
Bartlomiej Bazior (bartek-ssae) wrote :

Yes, I've tried doing a clean checkout in a clean bzr repository - result is the same.
As for bzr-svn version numbers - these were shown in the log I was getting after the crash. Like in the log, I've attached in the first post:

svn /Library/Python/2.6/site-packages/bzrlib/plugins/svn [1.0.5dev]

I assumed that 1.0.5dev (in this case) was bzr-svn version.

cheers,
Bart ;)

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 771397] Re: "crash" when doing a checkout or update operation

On Tue, 2011-04-26 at 23:22 +0000, Bartlomiej Bazior wrote:
> Yes, I've tried doing a clean checkout in a clean bzr repository - result is the same.
> As for bzr-svn version numbers - these were shown in the log I was getting after the crash. Like in the log, I've attached in the first post:
>
> svn /Library/Python/2.6/site-packages/bzrlib/plugins/svn [1.0.5dev]
>
> I assumed that 1.0.5dev (in this case) was bzr-svn version.
With which version was the revision originally pushed?

Cheers,

Jelmer

Revision history for this message
Bartlomiej Bazior (bartek-ssae) wrote :

The revision, that seems to be causing troubles for bzr-svn was commited by a user, that uses normal svn client.

cheers,
Bart ;)

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.