ValueError indexing with 2a and bzr.dev trunk

Bug #580534 reported by Robert Collins
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr search plugin
Fix Released
Critical
Robert Collins

Bug Description

bzr: ERROR: exceptions.ValueError: math domain error

Traceback (most recent call last):
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/commands.py", line 907, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/commands.py", line 1105, in run_bzr
    ret = run(*run_argv)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/commands.py", line 685, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/commands.py", line 700, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/builtins.py", line 3189, in run
    exclude=safe_relpath_files(tree, exclude))
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/workingtree_4.py", line 197, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/mutabletree.py", line 200, in commit
    *args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/commit.py", line 286, in commit
    possible_master_transports=possible_master_transports)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/cleanup.py", line 118, in run
    self.cleanups, self.func, self, *args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/commit.py", line 451, in _commit
    self.branch.set_last_revision_info(new_revno, self.rev_id)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/decorators.py", line 194, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/branch.py", line 2751, in set_last_revision_info
    self._run_post_change_branch_tip_hooks(old_revno, old_revid)
  File "/home/robertc/source/baz/bzr-test-fixes/bzrlib/branch.py", line 1163, in _run_post_change_branch_tip_hooks
    hook(params)
  File "/home/robertc/.bazaar/plugins/search/__init__.py", line 59, in auto_index_branch
    search_index.index_branch(result.branch, result.new_revid)
  File "/home/robertc/.bazaar/plugins/search/index.py", line 326, in index_branch
    self.index_revisions(branch, revs_to_index)
  File "/home/robertc/.bazaar/plugins/search/index.py", line 341, in index_revisions
    outer_bar)
  File "/home/robertc/.bazaar/plugins/search/index.py", line 389, in _index_revisions
    self._add_index(builder)
  File "/home/robertc/.bazaar/plugins/search/index.py", line 445, in _add_index
    max_components = int(math.ceil(math.log(total_revisions, 2)))
ValueError: math domain error

Changed in bzr-search:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Robert Collins (lifeless) wrote :

Fixed in trunk on friday, sorry for not updating the status.

Changed in bzr-search:
assignee: nobody → Robert Collins (lifeless)
status: Triaged → Fix Released
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.