"ERROR: exception.MemoryError" while checking out lightweight directory

Bug #279838 reported by Michael Steele
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I have a '--no-trees' shared repository at E:\bazaar-repo and a branch holding my ebook collection at E:\bazaar-repo\ebooks. There are also other branches within this repository, and they all have their own lightweight checkout under E:\. I had all of this stored on a FAT32-formatted external hard drive, and everything has been working fine.

Well I decided to reformat this hard drive as NTFS, hoping to resolve an issue with file names containing non-ascii characters. I did this by copying the contents of the drive onto my desktop, reformatting the drive, and then copying the entire /bazaar-repo folder back to the drive.

Here is a log of the error while trying to restore my lightweight checkouts. There was about a 1 minute delay between entering the command and receiving the error. During that time, task manager reported that the 'bzr' process was eating up 1GiB of memory:

*******************************************************************************************
E:\>bzr checkout --lightweight bazaar-repo\ebooks ebooks
bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 857, in run_bzr_catch_errors
  File "bzrlib\commands.pyo", line 797, in run_bzr
  File "bzrlib\commands.pyo", line 499, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 970, in run
  File "bzrlib\branch.pyo", line 823, in create_checkout
  File "bzrlib\bzrdir.pyo", line 1453, in create_workingtree
  File "bzrlib\workingtree_4.pyo", line 1389, in initialize
  File "bzrlib\transform.pyo", line 1873, in build_tree
  File "bzrlib\transform.pyo", line 1965, in _build_tree
  File "bzrlib\transform.pyo", line 2018, in _create_files
  File "bzrlib\revisiontree.pyo", line 82, in iter_files_bytes
  File "bzrlib\repository.pyo", line 1364, in iter_files_bytes
  File "bzrlib\knit.pyo", line 1221, in get_record_stream
  File "bzrlib\knit.pyo", line 992, in _get_content_maps
  File "bzrlib\knit.pyo", line 1116, in _get_record_map
  File "bzrlib\knit.pyo", line 1563, in _read_records_iter
  File "bzrlib\knit.pyo", line 2408, in get_raw_records
  File "bzrlib\pack.pyo", line 272, in _iter_records
  File "bzrlib\pack.pyo", line 277, in _iter_record_objects
  File "bzrlib\pack.pyo", line 218, in reader_func
  File "bzrlib\pack.pyo", line 177, in read
  File "bzrlib\pack.pyo", line 172, in _next
  File "bzrlib\transport\__init__.pyo", line 680, in _seek_and_read
MemoryError

bzr 1.7.1 on python 2.5.2 (win32)
arguments: ['bzr', 'checkout', '--lightweight', 'bazaar-repo\\ebooks', 'ebooks']

encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.7.0]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.9.4]
  svn C:\Program Files\Bazaar\plugins\svn [0.4.13]
*** 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.

E:\>dir
 Volume in drive E is portable
 Volume Serial Number is 925A-0F6B

 Directory of E:\

10/07/2008 01:30 PM <DIR> bazaar-repo
10/07/2008 01:32 PM <DIR> ebooks
               0 File(s) 0 bytes
               2 Dir(s) 318,369,349,632 bytes free

E:\>

Revision history for this message
Michael Steele (mikesteele81) wrote :

Here's some more info...

C:\Documents and Settings\MikSte\Desktop\backup\bazaar-repo>bzr info
Shared repository (format: pack-0.92)
Location:
  shared repository: .

Revision history for this message
Michael Steele (mikesteele81) wrote :

... and some more...

C:\Documents and Settings\MikSte\Desktop\backup\bazaar-repo>bzr version
Bazaar (bzr) 1.7.1
  Python interpreter: C:\Program Files\Bazaar\python25.dll 2.5.2
  Python standard library: C:\Program Files\Bazaar\lib\library.zip
  bzrlib: C:\Program Files\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Documents and Settings\MikSte\Application Data\bazaar
\2.0
  Bazaar log file: H:.bzr.log

Copyright 2005, 2006, 2007, 2008 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.

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.