Comment 2 for bug 193685

Revision history for this message
Dirk Räder (db6edr) wrote : Re: MemoryError in bytes_to_gzip during commit on linux

I can confirm this error on WinXP Professional SP3. The system has 4 GiB RAM and a swap file of the same size.

Actions taken:
bzr init .
bzr init-repo --no-trees f:\some\path
bzr branch . f:\some\path\branch
bzr bind f:\some\path\branch
bzr add
(adding 7051 files, 310 folders, 2.17 GiB on disk)
bzr commit
(working some time ...)

Error Message:
bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "bzrlib\commands.pyc", line 846, in run_bzr_catch_errors
  File "bzrlib\commands.pyc", line 797, in run_bzr
  File "bzrlib\commands.pyc", line 499, in run_argv_aliases
  File "bzrlib\builtins.pyc", line 2364, in run
  File "bzrlib\decorators.pyc", line 165, in write_locked
  File "bzrlib\workingtree_4.pyc", line 240, in commit
  File "bzrlib\decorators.pyc", line 165, in write_locked
  File "bzrlib\mutabletree.pyc", line 197, in commit
  File "bzrlib\commit.pyc", line 355, in commit
  File "bzrlib\commit.pyc", line 655, in _update_builder_with_changes
  File "bzrlib\commit.pyc", line 783, in _populate_from_inventory
  File "bzrlib\commit.pyc", line 825, in _record_entry
  File "bzrlib\repository.pyc", line 361, in record_entry_contents
  File "bzrlib\repofmt\pack_repo.pyc", line 97, in _add_text_to_weave
  File "bzrlib\repofmt\pack_repo.pyc", line 1180, in _add_text_to_weave
  File "bzrlib\versionedfile.pyc", line 137, in add_lines_with_ghosts
  File "bzrlib\knit.pyc", line 999, in _add_lines_with_ghosts
  File "bzrlib\knit.pyc", line 1088, in _add
  File "bzrlib\knit.pyc", line 2415, in _record_to_data
  File "bzrlib\tuned_gzip.pyc", line 62, in bytes_to_gzip
MemoryError

bzr 1.5 on python 2.5.2 (win32)
arguments: ['C:\\Programme\\Bazaar\\bzr.exe', 'ci']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  launchpad C:\Programme\Bazaar\plugins\launchpad [unknown]