exceptions.StopIteration

Bug #496468 reported by ashuai
This bug report is a duplicate of:  Bug #480102: assert len(tview) == tview_len. Edit Remove
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Triaged
Medium
Unassigned

Bug Description

bzr: ERROR: exceptions.StopIteration:

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 842, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1037, in run_bzr
  File "bzrlib\commands.pyo", line 654, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1017, in run
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\workingtree.pyo", line 1611, in pull
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 948, in pull
  File "D:/lib/bzr/plugins\svn\branch.py", line 731, in pull
  File "D:/lib/bzr/plugins\svn\branch.py", line 666, in update_revisions
  File "D:/lib/bzr/plugins\svn\fetch.py", line 1276, in fetch
  File "D:/lib/bzr/plugins\svn\fetch.py", line 1206, in _fetch_revisions
  File "D:/lib/bzr/plugins\svn\fetch.py", line 1151, in _fetch_revision_switch
  File "D:/lib/bzr/plugins\svn\errors.py", line 137, in convert
  File "D:/lib/bzr/plugins\svn\fetch.py", line 917, in report_inventory_contents
  File "D:/lib/bzr/plugins\svn\transport.py", line 192, in update
  File "D:/lib/bzr/plugins\svn\transport.py", line 192, in update
  File "D:/lib/bzr/plugins\svn\transport.py", line 192, in update
  File "D:/lib/bzr/plugins\svn\transport.py", line 192, in update
  File "D:/lib/bzr/plugins\svn\transport.py", line 192, in update
  File "D:/lib/bzr/plugins\svn\fetch.py", line 348, in open_file
  File "D:/lib/bzr/plugins\svn\fetch.py", line 517, in _open_file
  File "D:/lib/bzr/plugins\svn\fetch.py", line 780, in _get_old_id
StopIteration

bzr 2.0.1 on python 2.5.4 (Windows-32bit)
arguments: ['bzr', 'pull']
encoding: 'cp936', fsenc: 'mbcs', lang: None
plugins:
  bzrtools D:\lib\bzr\plugins\bzrtools [2.0.1]
  explorer D:\lib\bzr\plugins\explorer [0.8.3]
  launchpad D:\lib\bzr\plugins\launchpad [2.0.1]
  netrc_credential_store D:\lib\bzr\plugins\netrc_credential_store [2.0.1]
  qbzr D:\lib\bzr\plugins\qbzr [0.14.4]
  rebase D:\lib\bzr\plugins\rebase [0.5.4]
  svn D:\lib\bzr\plugins\svn [1.0.1]
  upload D:\lib\bzr\plugins\upload [1.0.0dev]
  xmloutput D:\lib\bzr\plugins\xmloutput [0.8.5]

*** 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.

Vincent Ladeuil (vila)
affects: bzr → bzr-svn
Revision history for this message
eitanme (eitanme) wrote :
Download full text (3.6 KiB)

I get a similar bug with my Karmic setup. On a "bzr up," I receive the following error:

bzr: ERROR: exceptions.StopIteration:

Selections from the crash log:

ProblemType: Crash
BzrDebugFlags: set()
BzrPlugins:
   bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.0.1]
   extmerge /u/eitan/.bazaar/plugins/extmerge [unknown]
   fastimport /usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport [0.9.0dev]
   launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.0.2]
   netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.0.2]
   rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.5.3]
   svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.0dev]
BzrVersion: 2.0.2
CommandLine: ['/usr/bin/bzr', 'up']
Date: Mon Feb 22 15:46:59 2010
FileSystemEncoding: UTF-8
Locale: en_US.UTF-8
Platform: Linux-2.6.31-19-generic-x86_64-with-Ubuntu-9.10-karmic

-----

PythonVersion: 2.6.4
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654, in run_argv_aliases
     return self.run(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 1413, in run
     view_info=view_info), possible_transports=possible_transports)
   File "/usr/lib/python2.6/dist-packages/bzrlib/workingtree.py", line 2213, in update
     old_tip = self.branch.update(possible_transports)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 2437, in update
     self.pull(master, overwrite=True)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 192, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 948, in pull
     possible_transports=possible_transports, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/branch.py", line 730, in pull
     self.update_revisions(stop_revision, overwrite)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/branch.py", line 665, in update_revisions
     mapping=self.source.mapping)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1271, in fetch
     use_replay=self._use_replay)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1201, in _fetch_revisions
     parent_revmeta)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/fetch.py", line 1146, in _fetch_revision_switch
     report_inventory_contents(reporter, parent_revnum, start_empty)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/svn/errors.py", line 134, in convert
     return unbound(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bz...

Read more...

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 496468] Re: exceptions.StopIteration

Hi eitanme,

On Mon, 2010-02-22 at 23:58 +0000, eitanme wrote:

> bzr: ERROR: exceptions.StopIteration:
>
> Selections from the crash log:
>
> ProblemType: Crash
> BzrDebugFlags: set()
> BzrPlugins:
> bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [2.0.1]
> extmerge /u/eitan/.bazaar/plugins/extmerge [unknown]
> fastimport /usr/lib/python2.6/dist-packages/bzrlib/plugins/fastimport [0.9.0dev]
> launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [2.0.2]
> netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [2.0.2]
> rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.5.3]
> svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [1.0.0dev]
You seem to be running a pretty old version of bzr-svn. Can you still
reproduce this with newer versions?

Cheers,

Jelmer

Revision history for this message
eitanme (eitanme) wrote :

Hi Jelmer,

I've updated to the latest version of bzr-svn [1.0.3dev I believe], and I can still reproduce the error. I actually receive an error on importing/updating my repository three different ways:

1) A "bzr up" in a checkout that used to work fine gives the StopIteration exception I mentioned earlier.

2) A "bzr branch" of the svn repository fails with a different exception: "exceptions.AssertionError: 24 != 80"

3) A "bzr svn-import of the svn repository fails with the same exception as the branch command: "Using repository layout: trunk0 bzr: ERROR: exceptions.AssertionError: 24 != 80"

I'll attach crash files for the three cases in comments below since launchpad doesn't let me upload multiple attachments to the same comment.

Another thing I should mention is that the repository I'm experiencing problems with is public. If you'd like to duplicate the branch and svn-import errors the commands to run are:

1) bzr branch https://code.ros.org/svn/wg-ros-pkg/trunk

2) bzr svn-import https://code.ros.org/svn/wg-ros-pkg/

Hopefully, this helps with tracking things down. Let me know what you think and if I can provide any other useful information.

Thanks a bunch,

Eitan

Revision history for this message
eitanme (eitanme) wrote :

bzr up crash file

Revision history for this message
eitanme (eitanme) wrote :

bzr branch crash file

Revision history for this message
eitanme (eitanme) wrote :

Oops... posted the branch crash file twice... here's the real bzr up crash file

Revision history for this message
eitanme (eitanme) wrote :

And... finally.... the bzr svn-import crash file

Thanks again,

Eitan

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
importance: Undecided → Medium
status: New → Triaged
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
milestone: none → 1.0.4
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.