Memory Error during checkout

Bug #383368 reported by Mike Woelmer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Incomplete
Medium
Unassigned

Bug Description

I have a svn repo that is 1GB in size with about 1,800 revisions, and I get an out of memory exception whenever I try to do a heavyweight checkout. The repo directory is initialized as --default-rich-root. Unfortunately I do not have a public repository.

C:\Users\mike\source\MemoryTest>bzr checkout https://myhost.com/svnrepos/myproject/myproject/Code/trunk trunk
Initialising Subversion metadata cache in C:\Users\mike\AppData\Local\svn-cache\77df2848-f5bb-9c4d-9d1f-639eca2f0d91.
bzr: ERROR: exceptions.MemoryError: out of memory

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 729, in exception_to_return_code
  File "bzrlib\commands.pyo", line 924, in run_bzr
  File "bzrlib\commands.pyo", line 560, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1230, in run
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 333, in create_checkout
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 278, in _create_heavyweight_checkout
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 859, in pull
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 716, in pull
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 654, in update_revisions
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1253, in fetch
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1184, in _fetch_revisions
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1129, in _fetch_revision_switch
  File "C:/Program Files (x86)/Bazaar/plugins\svn\errors.py", line 129, in convert
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 900, in report_inventory_contents
  File "subvertpy\delta.pyo", line 54, in apply_window
MemoryError: out of memory

bzr 1.15 on python 2.5.2 (win32)
arguments: ['bzr', 'checkout', 'https://myhost.com/svnrepos/myproject/myproject/Code/trunk', 'trunk']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [1.15]
  extmerge C:\Program Files (x86)\Bazaar\plugins\extmerge [unknown]
  launchpad C:\Program Files (x86)\Bazaar\plugins\launchpad [1.15]
  netrc_credential_store C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store [1.15]
  qbzr C:\Program Files (x86)\Bazaar\plugins\qbzr [0.9.9]
  svn C:\Program Files (x86)\Bazaar\plugins\svn [0.6.1]

Revision history for this message
Mike Woelmer (mike-woelmer) wrote :

I just tried it with the latest development branch 0.6.2dev and the bug still occurs.

c:\Users\mike\source\SuppliesNow>bzr checkout https://myhost.com/svnrepos/myproject/myproject/Code/trunk t
runk
Initialising Subversion metadata cache in C:\Users\mike\AppData\Local\svn-cache\77df2848-f5bb-9c4d-9d1f-639eca2f0d91.
bzr: ERROR: exceptions.MemoryError: out of memory

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 729, in exception_to_return_code
  File "bzrlib\commands.pyo", line 924, in run_bzr
  File "bzrlib\commands.pyo", line 560, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1230, in run
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 333, in create_checkout
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 278, in _create_heavyweight_checkout
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 859, in pull
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 716, in pull
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 654, in update_revisions
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1253, in fetch
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1184, in _fetch_revisions
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1129, in _fetch_revision_switch
  File "C:/Program Files (x86)/Bazaar/plugins\svn\errors.py", line 129, in convert
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 900, in report_inventory_contents
  File "subvertpy\delta.pyo", line 54, in apply_window
MemoryError: out of memory

bzr 1.15 on python 2.5.2 (win32)
arguments: ['bzr', 'checkout', 'https://myhost.com/svnrepos/myproject/myproject/Code/trunk', 'trunk']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [1.15]
  extmerge C:\Program Files (x86)\Bazaar\plugins\extmerge [unknown]
  launchpad C:\Program Files (x86)\Bazaar\plugins\launchpad [1.15]
  netrc_credential_store C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store [1.15]
  qbzr C:\Program Files (x86)\Bazaar\plugins\qbzr [0.9.9]
  svn C:\Program Files (x86)\Bazaar\plugins\svn [0.6.2dev]

affects: bzr → bzr-svn
Jelmer Vernooij (jelmer)
Changed in bzr-svn:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

please try again with the 0.6 branch, we've fixed a lot of memory leaks

Changed in bzr-svn:
status: Triaged → Incomplete
Revision history for this message
Mike Woelmer (mike-woelmer) wrote :

I tried it with the latest bzr svn code as of 7/14/09 and I now receive a different error. It fails to find the last revision. I've tried this several times with someone else checking in files in-between and the result is always not finding whatever the last revision is.

C:\Users\mike\source\SuppliesNowBzr>bzr checkout https://myhost.com/svnrepos/myproject/myproject/Code/trun
k trunk
bzr: ERROR: bzrlib.errors.NoSuchRevision: SvnRepository('https://myhost.com/svnrepos/myproject') has no revi
sion svn-v4:77df2848-f5bb-9c4d-9d1f-639eca2f0d91:myproject/Code/trunk:1768

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 729, in exception_to_return_code
  File "bzrlib\commands.pyo", line 924, in run_bzr
  File "bzrlib\commands.pyo", line 560, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1230, in run
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 328, in create_checkout
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 273, in _create_heavyweight_checkout
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 859, in pull
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 721, in pull
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 656, in update_revisions
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1278, in fetch
NoSuchRevision: SvnRepository('https://dev.srtsolutions.com/svnrepos/SuppliesNow') has no revision svn-v4:77df2848-f5bb-
9c4d-9d1f-639eca2f0d91:SuppliesNow/Code/trunk:1768

bzr 1.15 on python 2.5.2 (win32)
arguments: ['bzr', 'checkout', 'https://dev.srtsolutions.com/svnrepos/SuppliesNow/SuppliesNow/Code/trunk', 'trunk']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [1.15]
  extmerge C:\Program Files (x86)\Bazaar\plugins\extmerge [unknown]
  launchpad C:\Program Files (x86)\Bazaar\plugins\launchpad [1.15]
  netrc_credential_store C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store [1.15]
  qbzr C:\Program Files (x86)\Bazaar\plugins\qbzr [0.9.9]
  svn C:\Program Files (x86)\Bazaar\plugins\svn [0.6.3dev]
*** 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.

Revision history for this message
Mike Woelmer (mike-woelmer) wrote :

Back to memory error for rev 3134.

C:\Users\mike\source\myproject>bzr checkout https://myhost.com/svnrepos/myproject/myproject/Code/tr
k trunk
HTTPS myhost.com, Realm: 'Subversion Repository' username: myusername
HTTPS <email address hidden>, Realm: 'Subversion Repository' password:
bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 729, in exception_to_return_code
  File "bzrlib\commands.pyo", line 924, in run_bzr
  File "bzrlib\commands.pyo", line 560, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 1234, in run
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 325, in create_checkout
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 270, in _create_heavyweight_checkout
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\branch.pyo", line 855, in pull
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 718, in pull
  File "C:/Program Files (x86)/Bazaar/plugins\svn\branch.py", line 653, in update_revisions
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1271, in fetch
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1201, in _fetch_revisions
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 1146, in _fetch_revision_switch
  File "C:/Program Files (x86)/Bazaar/plugins\svn\errors.py", line 134, in convert
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 912, in report_inventory_contents
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 394, in close
  File "C:/Program Files (x86)/Bazaar/plugins\svn\fetch.py", line 596, in _close
  File "bzrlib\knit.pyo", line 1610, in insert_record_stream
  File "bzrlib\knit.pyo", line 913, in add_lines
  File "bzrlib\knit.pyo", line 923, in _add
MemoryError

bzr 1.16.1 on python 2.5.4 (win32)
arguments: ['bzr', 'checkout', 'https://myhost.com/svnrepos/myproject/myproject/Code/trunk', 'trunk']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [1.16]
  extmerge C:\Program Files (x86)\Bazaar\plugins\extmerge [unknown]
  launchpad C:\Program Files (x86)\Bazaar\plugins\launchpad [1.16.1]
  netrc_credential_store C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store [1.16.1]
  qbzr C:\Program Files (x86)\Bazaar\plugins\qbzr [0.11]
  rebase C:\Program Files (x86)\Bazaar\plugins\rebase [0.5.1]
  svn C:\Program Files (x86)\Bazaar\plugins\svn [0.6.4dev]
*** 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.

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.