AssertionError while packing large files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Trying to commit a rename I get an AssertionError.
$ bzr commit -m "Rename" mov007.mpg
Committing to: /home/ted/
renamed mov007.mod => mov007.mpg
aborting commit write group: AssertionError()
bzr: ERROR: exceptions.
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
attaching the crash file
and including a description of the problem.
The crash file is plain text and you can inspect or edit it to remove
private information.
$ bzr version
Bazaar (bzr) 2.1.1
Python interpreter: /usr/bin/python 2.6.5
Python standard library: /usr/lib/python2.6
Platform: Linux-2.
bzrlib: /usr/lib/
Bazaar configuration: /home/ted/.bazaar
Bazaar log file: /home/ted/.bzr.log
Copyright 2005-2010 Canonical Ltd.
http://
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.
Bazaar is part of the GNU Project to produce a free operating system.
$
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ted Gould wrote: launchpadlibrar ian.net/ 51932457/ bzr-20100714160 709-20874. crash
> ** Attachment added: "Crash File"
> http://
>
I don't think this is because of the renamed file. It would hint that
something is funny about your pack files triggering this. If you just
need to work around it, probably 'bzr pack' will clear things up by
doing it slightly differently. It would be nice to get a snapshot of
your current state if you can, though I realize '/Movies' is likely to
be a lot of data.
The traceback shows: python2. 6/dist- packages/ bzrlib/ repofmt/ groupcompress_ repo.py" , progress_ stream, 4) python2. 6/dist- packages/ bzrlib/ repofmt/ groupcompress_ repo.py" , blocks= False): python2. 6/dist- packages/ bzrlib/ groupcompress. py", line record_ stream sha=nostore_ sha) python2. 6/dist- packages/ bzrlib/ groupcompress. py", line python2. 6/dist- packages/ bzrlib/ groupcompress. py", line index.make_ delta(bytes, max_delta_size) _pyx.pyx" , line 227, in _groupcompress_ pyx.DeltaIndex. make_delta _pyx.pyx" , line 205, in _groupcompress_ pyx.DeltaIndex. _populate_ first_index
File
"/usr/lib/
line 461, in _copy_text_texts
'texts', self._get_
File
"/usr/lib/
line 402, in _copy_stream
reuse_
File "/usr/lib/
1721, in _insert_
nostore_
File "/usr/lib/
797, in compress
start, end, type = self._compress(key, bytes, len(bytes) / 2, soft)
File "/usr/lib/
967, in _compress
delta = self._delta_
File "_groupcompress
bzrlib.
File "_groupcompress
bzrlib.
AssertionError
And in context, it would appear: first_index( self): '_populate_ first_index should only be'
cdef _populate_
cdef delta_index *index
if len(self._sources) != 1 or self._index != NULL:
raise AssertionError(
' called when we have a single source and no index yet')
# We know that self._index is already NULL, so whatever
self. _index = create_ delta_index( &self._ source_ infos[0] , NULL)
# create_delta_index returns is fine
with nogil:
assert self._index != NULL
So... what seems to be happening is that 'create_ delta_index' is
returning NULL. I'm guessing you are running out of memory (if it is
trying to repack Movies.)
Can you tell us the size of the content you are working with?
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw +tT4ACgkQJdeBCY SNAAO+FACfTvY2J 2l0qM2dEDT9QkX8 KfKv OKXcjtnaWz+ A/9jJCrqO
J+EAoJ41pCH+
=sbRN
-----END PGP SIGNATURE-----