Issue1281

Title zlib.error: Error -3 while decompressing data: invalid distance too far back
Priority bug Status need-eg
Superseder Nosy List Stivo, abuehl, mpm, pmezard, tonfa
Assigned To Topics

Created on 2008-08-30.09:53:15 by Stivo, last changed 2008-10-18.19:17:24 by mpm.

Files
File name Uploaded Type Edit Remove
.classpath.i Stivo, 2008-09-05.20:24:02 application/octet-stream
.hg.zip Stivo, 2008-09-01.10:05:44 application/x-zip-compressed
Messages
msg7515 (view) Author: mpm Date: 2008-10-18.19:17:24
Setting to need-eg until we have a way to reproduce it
msg6959 (view) Author: Stivo Date: 2008-09-05.20:24:02
As I said:
there is only one repo. I served it using hg serve

Hudson: https://hudson.dev.java.net/
I think it does: 
1. Find out the changesets that have changed since hudson last checked out.
2. Request those changesets
3. Build the program

I just found out: I sent the wrong repo. The repo with a problem is the copy
hudson uses. I misinterpreted hudsons output...
Upon hg verify that repo says:
abort: index data/tcpfile/eventbus/.classpath.i unknown format 19823!

I attached that file. It looks nothing like the one from the original repo,
which has binary data in it...

Sorry for this bug report, it's been a bit messy and it could be the file got
messed up outside of mercurials influence (I am using windows after all, and it
may have crashed).
msg6957 (view) Author: mpm Date: 2008-09-05.20:09:08
What is hudson?

If you do hg in by hand, does it work?
Can you make hg in work locally on the server (not going over the network)?
msg6917 (view) Author: tonfa Date: 2008-09-02.15:06:50
Can you save the incoming bundle ?
So that we would be able to compare to a working bundle.
msg6916 (view) Author: Stivo Date: 2008-09-02.14:49:13
Well whenever hudson tries to get the changeset from the server the same thing
happens, so locally, I can reproduce it 100% of the time. Not by hand, but by
starting hudson.
msg6913 (view) Author: tonfa Date: 2008-09-02.11:16:51
If hg verify doesn't have any problems, I don't think we can do anything. Unless
it's reproducible.
msg6912 (view) Author: Stivo Date: 2008-09-02.10:42:04
I just noticed it is a snapshot version
Mercurial Distributed SCM (version 1.0.1+20080525)

I usually dont install snapshots. Could that explain it?
There is no version field in this bugtracker, otherwise I might have noticed...
msg6886 (view) Author: Stivo Date: 2008-09-01.10:05:44
It just happened with this one repo, I do not know what steps exactly I did...

But I just noticed, I dont have to zip everything, I can zip just the .hg folder
and then revert the repo. That is only about 2mb :)
Attached it
msg6885 (view) Author: tonfa Date: 2008-09-01.09:40:52
Then I can't see anything else than an external corruption (network, or
something else) :/

Can you reproduce it ? (if yes a bundle might help and would be smaller than a
full repo)
msg6884 (view) Author: Stivo Date: 2008-09-01.09:31:10
there is only one repo. I served it using hg serve
msg6883 (view) Author: tonfa Date: 2008-09-01.09:25:34
both remote and local ?
msg6882 (view) Author: Stivo Date: 2008-09-01.09:20:22
F:\dev\tcpfile.bak>hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
791 files, 19 changesets, 870 total revisions

seems so
msg6881 (view) Author: tonfa Date: 2008-09-01.09:15:12
does it pass verify ? (both repos)
msg6871 (view) Author: Stivo Date: 2008-08-30.09:53:14
I used mercurial to track my progress on a little project. 
But a few commits ago, when trying to build my repository I got this error from
hudson:

started
[workspace] $ hg incoming --quiet --bundle hg.bundle --debug --template
"<changeset node='{node}' author='{author|xmlescape}' rev='{rev}'
date='{date}'><msg>{desc|xmlescape}</msg><added>{file_adds|stringify|xmlescape}</added><deleted>{file_dels|stringify|xmlescape}</deleted><files>{files|stringify|xmlescape}</files><parents>{parents}</parents></changeset>\n"
using http://localhost:45821/
comparing with http://localhost:45821
sending heads command
searching for changes
sending branches command
examining 539ae20afe5a:10367cbcfc3d
found incomplete branch 539ae20afe5a:10367cbcfc3d
sending between command
narrowing 1:6 39bd2dde678c
found new branch changeset 539ae20afe5a
found new changesets starting at 539ae20afe5a
1 total queries
sending changegroup command
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial@selenic.com
** Mercurial Distributed SCM (version 1.0.1+20080525)
Traceback (most recent call last):
  File "hg", line 20, in <module>
  File "mercurial\dispatch.pyc", line 20, in run
  File "mercurial\dispatch.pyc", line 29, in dispatch
  File "mercurial\dispatch.pyc", line 45, in _runcatch
  File "mercurial\dispatch.pyc", line 364, in _dispatch
  File "mercurial\dispatch.pyc", line 417, in _runcommand
  File "mercurial\dispatch.pyc", line 373, in checkargs
  File "mercurial\dispatch.pyc", line 356, in <lambda>
  File "mercurial\commands.pyc", line 1636, in incoming
  File "mercurial\cmdutil.pyc", line 588, in show
  File "mercurial\cmdutil.pyc", line 864, in _show
  File "mercurial\templater.pyc", line 148, in stringify
  File "mercurial\templater.pyc", line 114, in __call__
  File "mercurial\cmdutil.pyc", line 810, in showadds
  File "mercurial\cmdutil.pyc", line 803, in getfiles
  File "mercurial\localrepo.pyc", line 1004, in status
  File "mercurial\localrepo.pyc", line 987, in mfmatches
  File "mercurial\manifest.pyc", line 59, in read
  File "mercurial\bundlerepo.pyc", line 114, in revision
  File "mercurial\revlog.pyc", line 951, in revision
  File "mercurial\bundlerepo.pyc", line 80, in chunk
  File "mercurial\revlog.pyc", line 904, in chunk
  File "mercurial\revlog.pyc", line 102, in decompress
zlib.error: Error -3 while decompressing data: invalid distance too far back
ERROR: Failed to determine incoming changes
finished: FAILURE

I am not the only person who ever had this problem:
http://article.gmane.org/gmane.comp.version-control.mercurial.general/1497

Maybe very rare...
The repo seems functional, I can commit, rollback etc but when hudson is trying
to build from a certain changeset on it fails. I could send you the repo, but it
being 30mbyte (7zipped) I would rather not :)
History
Date User Action Args
2008-10-18 19:17:24mpmsetstatus: chatting -> need-eg
nosy: mpm, tonfa, pmezard, abuehl, Stivo
messages: + msg7515
2008-09-05 20:24:02Stivosetfiles: + .classpath.i
nosy: mpm, tonfa, pmezard, abuehl, Stivo
messages: + msg6959
2008-09-05 20:09:08mpmsetnosy: + mpm
messages: + msg6957
2008-09-02 15:06:50tonfasetnosy: tonfa, pmezard, abuehl, Stivo
messages: + msg6917
2008-09-02 14:49:13Stivosetnosy: tonfa, pmezard, abuehl, Stivo
messages: + msg6916
2008-09-02 11:16:51tonfasetnosy: tonfa, pmezard, abuehl, Stivo
messages: + msg6913
2008-09-02 10:42:04Stivosetnosy: tonfa, pmezard, abuehl, Stivo
messages: + msg6912
2008-09-02 06:26:39pmezardsetnosy: + pmezard
2008-09-01 10:05:45Stivosetfiles: + .hg.zip
nosy: tonfa, abuehl, Stivo
messages: + msg6886
2008-09-01 09:40:52tonfasetnosy: tonfa, abuehl, Stivo
messages: + msg6885
2008-09-01 09:31:10Stivosetnosy: tonfa, abuehl, Stivo
messages: + msg6884
2008-09-01 09:25:34tonfasetnosy: tonfa, abuehl, Stivo
messages: + msg6883
2008-09-01 09:20:22Stivosetnosy: tonfa, abuehl, Stivo
messages: + msg6882
2008-09-01 09:15:12tonfasetstatus: unread -> chatting
nosy: + tonfa
messages: + msg6881
2008-08-30 10:01:58abuehlsetnosy: + abuehl
2008-08-30 09:53:15Stivocreate