MemoryError while importing from git.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Fast Import |
Fix Released
|
High
|
Ian Clatworthy |
Bug Description
I am trying to import an existing GIT repository into Bazaar with the fast-import plugin. However, I get a malloc error. See the log at the end of this report.
This is with git 1.5.4.2 (manual compile), bzr 1.2.0 (macports install) and python 2.5 (macpython install) on OS X
------------------
$ git-fast-export --all | bzr fast-import -
python2.5(29568) malloc: *** vm_allocate(
python2.5(29568) malloc: *** error: can't allocate region
python2.5(29568) malloc: *** set a breakpoint in szone_error to debug
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/opt/local/
return run_bzr(argv)
File "/opt/local/
ret = run(*run_argv)
File "/opt/local/
return self.run(
File "/Users/
params, verbose)
File "/Users/
return proc.process(
File "/Users/
self.
File "/Users/
processor.
File "/Users/
for cmd in command_iter():
File "/Users/
yield self._parse_blob()
File "/Users/
data = self._get_
File "/Users/
return self.read_
File "/Users/
line = self.input.
MemoryError
bzr 1.2.0 on python 2.5.1.final.0 (darwin)
arguments: ['/opt/
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'fr_FR.UTF-8'
plugins:
bzrtools /opt/local/
fastimport /Users/
launchpad /opt/local/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
It looks like it's running out of memory trying to read in the contents of a large file. Can you redirect the git-fast-export output to a file and then try running fast-import-info on it? I'd like to see the output of it although I'm expecting it to fall over as well. Worth a try though.