Bug 3308 - unhandled exception on 'hg update'
Summary: unhandled exception on 'hg update'
Status: RESOLVED WONTFIX
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: All All
: critical bug
Assignee: Bugzilla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-05 11:36 UTC by Nickolay
Modified: 2013-05-02 23:54 UTC (History)
3 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nickolay 2012-03-05 11:36 UTC
OS xubuntu 11.10, locale ru-RU.utf8, python 2.7, filesystem fat32 (8GB 
flash)
Steps:

$ cd /media/Transcend
$ mkdir alma # here will be my mirror repository
$ cd alma
$ hg init
$ hg pull ~/workspace/alma # my primary repository
# pulled 23MB of sources

pulling from /home/nick/workspace/alma
requesting all changes
adding changesets
adding manifests
adding file changes
added 57 changesets with 2407 changes to 2236 files
(use 'hg update' to get working copy)

$ hg up
# it thinks about 3 minutes and then crashes

Here is the crash report

** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.2+ (default, Oct  4 2011, 20:03:08) [GCC 4.6.1]
** Mercurial Distributed SCM (version 1.9.1)
** Extensions loaded: 
Traceback (most recent call last):
  File "/usr/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 27, in 
run
    sys.exit(dispatch(request(sys.argv[1:])))
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 64, in 
dispatch
    return _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 87, in 
_runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 679, 
in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 454, 
in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 733, 
in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 687, 
in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 676, 
in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 385, in 
check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 5131, 
in update
    ret = hg.update(repo, rev)
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 395, in 
update
    stats = mergemod.update(repo, node, False, False, None)
  File "/usr/lib/python2.7/dist-packages/mercurial/merge.py", line 554, in 
update
    stats = applyupdates(repo, action, wc, p2, pa, overwrite)
  File "/usr/lib/python2.7/dist-packages/mercurial/merge.py", line 350, in 
applyupdates
    t = mctx.filectx(f).data()
  File "/usr/lib/python2.7/dist-packages/mercurial/context.py", line 360, in 
data
    return self._filelog.read(self._filenode)
  File "/usr/lib/python2.7/dist-packages/mercurial/filelog.py", line 38, in 
read
    t = self.revision(node)
  File "/usr/lib/python2.7/dist-packages/mercurial/revlog.py", line 899, in 
revision
    text = self._chunkbase(base)
  File "/usr/lib/python2.7/dist-packages/mercurial/revlog.py", line 832, in 
_chunkbase
    return self._chunk(rev)
  File "/usr/lib/python2.7/dist-packages/mercurial/revlog.py", line 829, in 
_chunk
    return decompress(self._chunkraw(rev, rev))
  File "/usr/lib/python2.7/dist-packages/mercurial/revlog.py", line 115, in 
decompress
    return _decompress(bin)
zlib.error: Error -5 while decompressing data: incomplete or truncated 
stream
Comment 1 Matt Mackall 2012-03-05 13:05 UTC
Please send the output of 'hg verify' on the source repository.
Comment 2 Nickolay 2012-03-05 14:03 UTC
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
2236 files, 57 changesets, 2407 total revisions

It's very strange - the bug doesn't reproduce anymore.
I deleted the crashed repository and cannot see what happened there.
After that, I created mirrors three times, with different folder names, and with different methods
(hg pull; hg init && hg pull && hg up)
all works.

Sorry for panic - maybe it's a problem with freshly new flash card.

Nickolay

05 марта 2012, 23:01 от Matt Mackall <bugs@mercurial.selenic.com>:
> 
> Matt Mackall <mpm@selenic.com> added the comment:
> 
> Please send the output of 'hg verify' on the source repository.
> 
> ----------
> nosy: +mpm
> status: unread -> need-eg
> 
> ____________________________________________________
> Mercurial issue tracker <bugs@mercurial.selenic.com>
> <http://mercurial.selenic.com/bts/issue3307>
> ____________________________________________________
>
Comment 3 Matt Mackall 2012-03-05 14:04 UTC
Ok, closing.
Comment 4 Nickolay 2012-03-05 14:22 UTC
I am not sure that my problem is over.
At the moment, there are three mirrors on my flash card. And all they are different!
And they differs from the original one.

06 марта 2012, 00:01 от Matt Mackall <bugs@mercurial.selenic.com>:
> 
> Matt Mackall <mpm@selenic.com> added the comment:
> 
> Ok, closing.
> 
> ----------
> status: need-eg -> done-cbb
> 
> ____________________________________________________
> Mercurial issue tracker <bugs@mercurial.selenic.com>
> <http://mercurial.selenic.com/bts/issue3307>
> ____________________________________________________
>
Comment 5 Matt Mackall 2012-03-05 15:15 UTC
Please send some relevant information.
Comment 6 Matt Mackall 2012-03-13 13:10 UTC
We can't do anything with this issue without more information, closing.
Comment 7 Nickolay 2012-03-14 03:09 UTC
Sorry, I had no time to examine the problem thoroughly.
I shall report you if it reproduce such fatality.

And thank you for best version control system!

13 марта 2012, 23:07 от Matt Mackall <bugs@mercurial.selenic.com>:
> 
> Matt Mackall <mpm@selenic.com> added the comment:
> 
> We can't do anything with this issue without more information, closing.
> 
> ----------
> status: need-eg -> done-cbb
> 
> ____________________________________________________
> Mercurial issue tracker <bugs@mercurial.selenic.com>
> <http://mercurial.selenic.com/bts/issue3307>
> ____________________________________________________
>
Comment 8 Bugzilla 2012-05-12 09:28 UTC

--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:28 EDT  ---

This bug was previously known as _bug_ 3307 at http://mercurial.selenic.com/bts/issue3307