[issue2876] handle is invalid error on Windows 7 x64

Mike Williams bugs at mercurial.selenic.com
Fri Jul 1 06:24:23 CDT 2011


New submission from Mike Williams <obsd1 at eandem.co.uk>:

Mercurial 1.8.4, x64 running on Windows 7 x64.

Run Window 7 x64 with high memory allocations by using the following
registry setting:

HKLM\System\CurrentControlSet\Control\Session Manager\Memory
Management\AllocationPreference REG_DWORD = 0x100000

Traceback for problem command:

C:\hg\pc-master>hg pull -u --debug --traceback
using http://mercurial:8002/pc
sending between command
pulling from http://mercurial:8002/pc
sending capabilities command
capabilities: changegroupsubset stream lookup pushkey
unbundle=HG10GZ,HG10BZ,HG10UN branchmap
sending listkeys command
sending heads command
searching for changes
sending branches command
examining b371bfc9de73:ba26ef313f58
found incomplete branch b371bfc9de73:ba26ef313f58
searching: 1 queries
sending between command
narrowing 1:9 414572640313
found new branch changeset b371bfc9de73
found new changesets starting at b371bfc9de73
1 total queries
sending changegroupsubset command
adding changesets
Traceback (most recent call last):
  File "mercurial\dispatch.pyo", line 58, in _runcatch
  File "mercurial\dispatch.pyo", line 601, in _dispatch
  File "mercurial\dispatch.pyo", line 406, in runcommand
  File "mercurial\dispatch.pyo", line 655, in _runcommand
  File "mercurial\dispatch.pyo", line 609, in checkargs
  File "mercurial\dispatch.pyo", line 598, in <lambda>
  File "mercurial\util.pyo", line 433, in check
  File "mercurial\extensions.pyo", line 133, in wrap
  File "mercurial\util.pyo", line 433, in check
  File "hgext\rebase.pyo", line 557, in pullrebase
  File "mercurial\util.pyo", line 433, in check
  File "mercurial\extensions.pyo", line 133, in wrap
  File "mercurial\util.pyo", line 433, in check
  File "hgext\mq.pyo", line 3050, in mqcommand
  File "mercurial\util.pyo", line 433, in check
  File "mercurial\commands.pyo", line 2949, in pull
  File "h:/hg/subpaths/subpaths.py", line 143, in pull
  File "mercurial\localrepo.pyo", line 1358, in pull
  File "mercurial\localrepo.pyo", line 1825, in addchangegroup
  File "mercurial\revlog.pyo", line 1108, in addgroup
  File "mercurial\changelog.pyo", line 97, in o
  File "mercurial\store.pyo", line 314, in fncacheopener
  File "mercurial\util.pyo", line 920, in __call__
  File "mercurial\win32.pyo", line 145, in nlinks
  File "mercurial\win32.pyo", line 134, in _getfileinfo
  File "mercurial\win32.pyo", line 123, in _raiseoserror
OSError: [Errno 9] C:\hg\pc-master\.hg/store\00changelog.i: The handle is
invalid.
abort: C:\hg\pc-master\.hg/store\00changelog.i: The handle is invalid.

Something is wrong with handle processing in win32.py.  Based on hg
development repos win32.py has not been touched since 1.8.4 so I presume the
issue will be present in the imminent 1.9.

This makes development a pain as the registry needs constant editing in
order to be able to use mercurial during development work.

----------
messages: 16651
nosy: mikew
priority: urgent
status: unread
title: handle is invalid error on Windows 7 x64

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2876>
____________________________________________________


More information about the Mercurial-devel mailing list