KnitCorrupt: incorrect number of lines

Bug #160081 reported by Martin Pool
6
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Medium
Unassigned

Bug Description

  "Wichmann, Mats D"
to bazaar

show details
  2:16 pm (3 hours ago)
Well, it says to mail it in....

bzr: ERROR: bzrlib.errors.KnitCorrupt: Knit <bzrlib.knit._KnitAccess
object at 0x2aaaad3d63d0> corrupt: incorrect number of lines 4908 !=
4909 for version
{<email address hidden>}

Traceback (most recent call last):
 File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 800,
in run_bzr_catch_errors
   return run_bzr(argv)
 File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 758,
in run_bzr
   ret = run(*run_argv)
 File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 492,
in run_argv_aliases
   return self.run(**all_cmd_args)
 File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 626,
in run
   mergeable.install_revisions(branch_to.repository)
 File "/usr/lib/python2.4/site-packages/bzrlib/merge_directive.py",
line 193, in install_revisions
   info.install_revisions(target_repo, stream_input=False)
 File
"/usr/lib/python2.4/site-packages/bzrlib/bundle/serializer/v4.py", line
407, in install_revisions
   return ri.install()
 File
"/usr/lib/python2.4/site-packages/bzrlib/bundle/serializer/v4.py", line
485, in install
   pending_file_records)
 File
"/usr/lib/python2.4/site-packages/bzrlib/bundle/serializer/v4.py", line
533, in _install_mp_records
   versionedfile.add_mpdiffs(vf_records)
 File "/usr/lib/python2.4/site-packages/bzrlib/versionedfile.py", line
271, in add_mpdiffs
   for (version, parent_ids, expected_sha1, mpdiff), sha1 in\
 File "/usr/lib/python2.4/site-packages/bzrlib/knit.py", line 665, in
get_sha1s
   record_map = self._get_record_map(version_ids)
 File "/usr/lib/python2.4/site-packages/bzrlib/knit.py", line 963, in
_get_record_map
   for component_id, content, digest in \
 File "/usr/lib/python2.4/site-packages/bzrlib/knit.py", line 2158, in
read_records_iter
   content, digest = self._parse_record(version_id, data)
 File "/usr/lib/python2.4/site-packages/bzrlib/knit.py", line 2071, in
_parse_record
   'incorrect number of lines %s != %s'
KnitCorrupt: Knit <bzrlib.knit._KnitAccess object at 0x2aaaad3d63d0>
corrupt: incorrect number of lines 4908 != 4909 for version
{<email address hidden>}

bzr 0.91.0 on python 2.4.3.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'merge',
'/nethome/mats/public_html/booksets.mgd']

Revision history for this message
Bill Farrar (bill-w-farrar) wrote :

I encounter this when trying to svn-import a subversion repository.

Revision history for this message
Bill Farrar (bill-w-farrar) wrote :

I also encounter it when trying to bzr branch a subversion repository using bzr-svn.

I'm using bzr 1.3.1rc1 and bzr-svn 0.4.9.

Revision history for this message
Pavlo Kerestey (pkerestey) wrote :

I can also confirm this.
I wanted to checkout the "~planet-ubuntu/config/main planet-ubuntu" branch from launchpad but i'm getting the same error.
I'm using bzr 1.3.1 on python 2.5.2.final.0 (linux2)

Revision history for this message
Andrew Bennetts (spiv) wrote :

This generally happens when there's a newline in a filename (or in a symlink target). Is this the case here? If so, this bug is a dupe of bug 3918.

Vincent Ladeuil (vila)
Changed in bzr:
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Robert Collins (lifeless) wrote :

This bug is stale.

@pavlo, I can branch that branch fine. Please file a *new* bug with your specific symptoms and backtrace. In general we prefer that people file new bugs rather than piggybacking on existing bugs: its easier to decide that something *is* a duplicate than to separate out conversations that have been mingled.

Changed in bzr:
status: Incomplete → Invalid
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.