MemoryError when adding big files

Miki Tebeka miki.tebeka at gmail.com
Wed Sep 26 06:28:32 BST 2007


Hello,

It was cruel, I admit (avg movie is 200M, there are 41 of them :)

mtebeka at bugs:bootcamp - 22:18 $ bzr ci -m movies
Committing revision 3 to "/home/mtebeka/work/bootcamp/".
missing .bzrignore
added class1.mov
bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py",
line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py",
line 758, in run_bzr
    ret = run(*run_argv)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commands.py",
line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/builtins.py",
line 2319, in run
    author=author)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/decorators.py",
line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/workingtree_4.py",
line 246, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/decorators.py",
line 165, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/mutabletree.py",
line 211, in commit
    revprops=revprops, *args, **kwargs)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commit.py", line
341, in commit
    self._update_builder_with_changes()
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commit.py", line
645, in _update_builder_with_changes
    self._populate_from_inventory(specific_files)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commit.py", line
726, in _populate_from_inventory
    parent_id, definitely_changed, existing_ie, report_changes)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/commit.py", line
768, in _record_entry
    path, self.work_tree):
  File "/usr/local/lib/python2.5/site-packages/bzrlib/repository.py",
line 244, in record_entry_contents
    ie.snapshot(self._new_revision_id, path, previous_entries, tree, self)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/inventory.py",
line 745, in snapshot
    self.text_sha1, self.text_size)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/repository.py",
line 292, in modified_file_text
    file_parents.keys())
  File "/usr/local/lib/python2.5/site-packages/bzrlib/repository.py",
line 316, in _add_text_to_weave
    random_id=self.random_revid, check_content=False)[0:2]
  File "/usr/local/lib/python2.5/site-packages/bzrlib/versionedfile.py",
line 142, in add_lines_with_ghosts
    parent_texts, nostore_sha, random_id, check_content)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/knit.py", line
836, in _add_lines_with_ghosts
    parent_texts, None, nostore_sha, random_id)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/knit.py", line
924, in _add
    store_lines)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/knit.py", line
2006, in _record_to_data
    compressed_bytes = bytes_to_gzip(bytes)
  File "/usr/local/lib/python2.5/site-packages/bzrlib/tuned_gzip.py",
line 57, in bytes_to_gzip
    result.append(compress.compress(bytes))
MemoryError

bzr 0.92.0dev0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/local/bin/bzr', 'ci', '-m', 'movies']
encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_US'
plugins:
  launchpad
/usr/local/lib/python2.5/site-packages/bzrlib/plugins/launchpad
[unknown]
  multiparent
/usr/local/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc
[unknown]

** Please send this report to bazaar at lists.ubuntu.com
   with a description of what you were doing when the
   error occurred.
Terminated
mtebeka at bugs:bootcamp - 22:23 $ bzr --version
Bazaar (bzr) 0.92.0dev0
  Python interpreter: /usr/local/bin/python 2.5.1.final.0
  Python standard library: /usr/local/lib/python2.5
  bzrlib: /usr/local/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/mtebeka/.bazaar
  Bazaar log file: /home/mtebeka/.bzr.log

Copyright 2005, 2006, 2007 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY.  bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.


All the best,
--
------------------------------------------------------------------------
Miki Tebeka <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com/
The only difference between children and adults is the price of the toys



More information about the bazaar mailing list