Issue #3797 duplicate

Error -3 while decompressing: too many length or distance symbols

Marc Gacy
created an issue

Hi all,

I got an error and was told to report it. Please let me know if there is additional information I should be providing.

I get the following error log when trying to update my repository. No one else in my group seems to have the same problem.

I'm running Win 7 Pro on a 64-bit Dell Latitude E5530.


** Mercurial version (3.0.1).  TortoiseHg version (3.0.1)
** Command: 
** CWD: XXX
** Encoding: cp1252
** Extensions loaded: 
** Python version: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
** Processor architecture: x64
** Qt-4.8.5 PyQt-4.10.3 QScintilla-2.7.2
Traceback (most recent call last):
  File "tortoisehg\hgqt\thread.pyo", line 304, in run
  File "tortoisehg\util\hglib.pyo", line 710, in dispatch
  File "mercurial\dispatch.pyo", line 819, in _dispatch
  File "mercurial\dispatch.pyo", line 599, in runcommand
  File "mercurial\dispatch.pyo", line 910, in _runcommand
  File "mercurial\dispatch.pyo", line 881, in checkargs
  File "mercurial\dispatch.pyo", line 816, in <lambda>
  File "mercurial\util.pyo", line 518, in check
  File "mercurial\commands.pyo", line 4607, in pull
  File "mercurial\localrepo.pyo", line 1708, in pull
  File "mercurial\exchange.pyo", line 544, in pull
  File "mercurial\exchange.pyo", line 632, in _pullchangeset
  File "mercurial\changegroup.pyo", line 654, in addchangegroup
  File "mercurial\changegroup.pyo", line 532, in addchangegroupfiles
  File "mercurial\revlog.pyo", line 1279, in addgroup
  File "mercurial\changegroup.pyo", line 185, in deltachunk
  File "mercurial\changegroup.pyo", line 19, in readexactly
  File "mercurial\util.pyo", line 983, in read
  File "mercurial\util.pyo", line 959, in splitbig
  File "mercurial\httppeer.pyo", line 21, in zgenerator
error: Error -3 while decompressing: too many length or distance symbols

Comments (4)

  1. Marc Gacy reporter

    OK, I hope I did this right. One thing I forgot about is that I have another version of Qt for another project. Could it be interfering? I can provide more details on that if needed.

    I ran a pull from the command line and got a slightly different error:

    hg pull -u
    pulling from http:XXX
    searching for changes
    adding changesets
    adding manifests
    adding file changes
    transaction abort!
    rollback completed
    ** unknown exception encountered, please report by visiting
    ** http://mercurial.selenic.com/wiki/BugTracker
    ** Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
    ** Mercurial Distributed SCM (version 3.0.1)
    ** Extensions loaded:
    Traceback (most recent call last):
      File "hg", line 42, in <module>
      File "mercurial\dispatch.pyo", line 28, in run
      File "mercurial\dispatch.pyo", line 69, in dispatch
      File "mercurial\dispatch.pyo", line 138, in _runcatch
      File "mercurial\dispatch.pyo", line 819, in _dispatch
      File "mercurial\dispatch.pyo", line 599, in runcommand
      File "mercurial\dispatch.pyo", line 910, in _runcommand
      File "mercurial\dispatch.pyo", line 881, in checkargs
      File "mercurial\dispatch.pyo", line 816, in <lambda>
      File "mercurial\util.pyo", line 518, in check
      File "mercurial\commands.pyo", line 4607, in pull
      File "mercurial\localrepo.pyo", line 1708, in pull
      File "mercurial\exchange.pyo", line 544, in pull
      File "mercurial\exchange.pyo", line 632, in _pullchangeset
      File "mercurial\changegroup.pyo", line 654, in addchangegroup
      File "mercurial\changegroup.pyo", line 532, in addchangegroupfiles
      File "mercurial\revlog.pyo", line 1279, in addgroup
      File "mercurial\changegroup.pyo", line 185, in deltachunk
      File "mercurial\changegroup.pyo", line 19, in readexactly
      File "mercurial\util.pyo", line 983, in read
      File "mercurial\util.pyo", line 959, in splitbig
      File "mercurial\httppeer.pyo", line 21, in zgenerator
    zlib.error: Error -3 while decompressing: invalid block type
    

    then I pulled again from the GUI and got another error (although they all seem related):

        ** Mercurial version (3.0.1).  TortoiseHg version (3.0.1)
        ** Command: 
        ** CWD: C:\XXXX
        ** Encoding: cp1252
        ** Extensions loaded: 
        ** Python version: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)]
        ** Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
        ** Processor architecture: x64
        ** Qt-4.8.5 PyQt-4.10.3 QScintilla-2.7.2
        Traceback (most recent call last):
          File "tortoisehg\hgqt\thread.pyo", line 304, in run
          File "tortoisehg\util\hglib.pyo", line 710, in dispatch
          File "mercurial\dispatch.pyo", line 819, in _dispatch
          File "mercurial\dispatch.pyo", line 599, in runcommand
          File "mercurial\dispatch.pyo", line 910, in _runcommand
          File "mercurial\dispatch.pyo", line 881, in checkargs
          File "mercurial\dispatch.pyo", line 816, in <lambda>
          File "mercurial\util.pyo", line 518, in check
          File "mercurial\commands.pyo", line 4607, in pull
          File "mercurial\localrepo.pyo", line 1708, in pull
          File "mercurial\exchange.pyo", line 544, in pull
          File "mercurial\exchange.pyo", line 632, in _pullchangeset
          File "mercurial\changegroup.pyo", line 654, in addchangegroup
          File "mercurial\changegroup.pyo", line 532, in addchangegroupfiles
          File "mercurial\revlog.pyo", line 1279, in addgroup
          File "mercurial\changegroup.pyo", line 185, in deltachunk
          File "mercurial\changegroup.pyo", line 19, in readexactly
          File "mercurial\util.pyo", line 983, in read
          File "mercurial\util.pyo", line 959, in splitbig
          File "mercurial\httppeer.pyo", line 21, in zgenerator
        error: Error -3 while decompressing: invalid stored block lengths
    
  2. Marc Gacy reporter

    OK, I think I got it! For some reason hg.exe was not set to run as administrator. When I fixed that and pulled it came up with a dialog about a local file that was changed but deleted in the pull. I let Hg delete the files and it progressed to completion.

    Thanks for looking into this!

    • Marc
  3. Log in to comment