MemoryError during commit
Haoyu Bai
divinekid at gmail.com
Thu Oct 23 13:29:35 BST 2008
Hi,
I'm a new user of bazaar. I'd say bazaar is great. But I have a problem now.
With a unbound repo about 2 gigs, I did this:
$ touch test
$ bzr add test
$ bzr ci
After a while of slow down of the whole system (apparently bazaar
consumed all my memory), the following exception occured:
bzr: ERROR: exceptions.MemoryError:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line
849, in run_bzr_catch_errors
return run_bzr(argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line
795, in run_bzr
ret = run(*run_argv)
File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line
495, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line
2349, in run
exclude=safe_relpath_files(tree, exclude))
File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line
192, in write_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py",
line 237, in commit
result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line
192, in write_locked
result = unbound(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line
197, in commit
revprops=revprops, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 384, in commit
self.rev_id = self.builder.commit(self.message)
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line
136, in commit
self.repository.commit_write_group()
File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line
956, in commit_write_group
self._commit_write_group()
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 1835, in _commit_write_group
return self._pack_collection._commit_write_group()
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 1675, in _commit_write_group
if not self.autopack():
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 1229, in autopack
self._execute_pack_operations(pack_operations)
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 1243, in _execute_pack_operations
_packer_class(self, packs, '.autopack').pack()
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 599, in pack
return self._create_pack_from_packs()
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 734, in _create_pack_from_packs
self._copy_text_texts()
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 698, in _copy_text_texts
self.new_pack.text_index, readv_group_iter, total_items))
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 819, in _copy_nodes_graph
write_index, output_lines, pb, readv_group_iter, total_items):
File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py",
line 857, in _do_copy_nodes_graph
pos, size = writer.add_bytes_record(raw_data, names)
File "/usr/lib/python2.5/site-packages/bzrlib/pack.py", line 154, in
add_bytes_record
serialised_record = self._serialiser.bytes_record(bytes, names)
File "/usr/lib/python2.5/site-packages/bzrlib/pack.py", line 105, in
bytes_record
return ''.join(byte_sections)
MemoryError
bzr 1.8 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'ci']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
bzrtools
/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [0.91.0]
launchpad
/usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
Please report a bug at https://bugs.launchpad.net/bzr/+filebug
including this traceback, and a description of what you
were doing when the error occurred.
What's wrong? Is that a bug, or I did something wrong?
Thanks!
--
Haoyu Bai
More information about the bazaar
mailing list