Comment 8 for bug 185072

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This was using the same version of bzr+windows as reported by me above.
I have cygwin to make the junk file but python and bzr is from windows 2.1 release.

D:\bzr-memory-issue-test>dd if=/dev/urandom of=big-junk bs=1024 count=1024K
1048576+0 records in
1048576+0 records out
1073741824 bytes (1.1 GB) copied, 74.526 seconds, 14.4 MB/s

D:\bzr-memory-issue-test>bzr init .
Created a standalone tree (format: 2a)

D:\bzr-memory-issue-test>bzr add .
adding big-junk

D:\bzr-memory-issue-test>bzr ci -m "test"
Committing to: D:/bzr-memory-issue-test/
added big-junk
aborting commit write group: MemoryError()
bzr: out of memory

This fails with the following:
Wt 2010-03-02 15:53:26 +0100
0.093 bazaar version: 2.1.0
0.093 bzr arguments: [u'ci', u'-m', u'test']
0.109 looking for plugins in C:/Documents and Settings/z.krynicki/Application Data/bazaar/2.0/plugins
0.109 looking for plugins in C:/Program Files/Bazaar/plugins
0.218 encoding stdout as sys.stdout encoding 'cp852'
0.265 opening working tree 'D:/bzr-memory-issue-test'
0.406 preparing to commit
[ 1644] 2010-03-02 15:53:26.957 INFO: Committing to: D:/bzr-memory-issue-test/
0.437 Selecting files for commit with filter None
[ 1644] 2010-03-02 15:53:26.973 INFO: added big-junk
0.453 aborting commit write group because of exception:
0.453 Traceback (most recent call last):
  File "bzrlib\commit.pyo", line 387, in _commit
  File "bzrlib\commit.pyo", line 622, in _update_builder_with_changes
  File "bzrlib\repository.pyo", line 762, in record_iter_changes
MemoryError

[ 1644] 2010-03-02 15:53:26.973 INFO: aborting commit write group: MemoryError()
0.515 Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 3138, in run
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\workingtree_4.pyo", line 197, in commit
  File "bzrlib\decorators.pyo", line 194, in write_locked
  File "bzrlib\mutabletree.pyo", line 225, in commit
  File "bzrlib\commit.pyo", line 257, in commit
  File "bzrlib\cleanup.pyo", line 118, in run
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\commit.pyo", line 387, in _commit
  File "bzrlib\commit.pyo", line 622, in _update_builder_with_changes
  File "bzrlib\repository.pyo", line 762, in record_iter_changes
MemoryError

0.515 Transferred: 0KiB (0.0K/s r:0K w:0K)
0.515 return code 3