MemoryError on diff/commit due to corrupted dirstate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
John A Meinel |
Bug Description
Hi,
whenever I run bzr diff/commit/status on my local branch, bzr 1.1-1~bazaar1~
The checkout with which I'm experiencing problems used to work fine and I don't remember having changed anything (except for a few files in the checkout, of course). The checkout holds less than 1500 files (not sur since some files in that directory haven't been added yet). Its size is about 8Mb.
Other checkouts still work fine.
Here's the log:
bzr diff
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
extra_
File "/usr/lib/
return differ.
File "/usr/lib/
return self._show_
File "/usr/lib/
executable) in sorted(iterator, key=changes_key):
File "/usr/lib/
state.
File "/usr/lib/
_read_
File "_dirstate_
File "_dirstate_
File "_dirstate_
MemoryError
bzr 1.1.0 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'diff']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
plugins:
launchpad /usr/lib/
multiparent /usr/lib/
*** 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.
Regards,
Michael
Related branches
Changed in bzr: | |
status: | Fix Committed → Fix Released |
Hi,
Thanks for your bug report.
I am interested in what is causing the problem that you are
seeing. From the traceback I would guess that it is using a
lot of memory to read the dirstate (the on disk representation
of the state of the working tree).
Is this an open source project? If so can we have a copy of dirstate)
the code to try and reproduce this. If not could we just have
the dirstate? It lists the filenames, but should not give any
more information than that. Failing that just the size
of the dirstate file would a start (ls -l .bzr/checkout/
Is there any improvement if you branch the project to a different
location (on the same machine) and then make the changes?
Thanks,
James