darcs

Issue 2556 apply fails with 'hGetBuf: invalid argument (Invalid argument)' for large patch bundle

Title apply fails with 'hGetBuf: invalid argument (Invalid argument)' for large patch bundle
Priority Status unknown
Milestone Resolved in
Superseder Nosy List mihaigiurgeanu
Assigned To
Topics

Created on 2017-10-10.11:01:53 by mihaigiurgeanu, last changed 2017-10-16.09:29:00 by bf.

Messages
msg19722 (view) Author: mihaigiurgeanu Date: 2017-10-10.11:01:52
darcs apply bundle.dpatch 

fails with the error 'hGetBuf: invalid argument (Invalid argument) for very 
large patch bundle (my patch bundle has 2.1G)

If I send the patch bundle on the standard input to 'darcs apply', everything 
works:

    type bundle.dpatch | darcs apply

I used darcs 12.2.5, 64 bit on Windows 10
msg19724 (view) Author: bf Date: 2017-10-10.13:42:28
Thanks for the bug report.

The sources for 2.12.5 to not contain any call to hGetBuf, so I guess
this comes from a library call.

Can you attach the output of

  darcs apply bundle.dpatch --debug

(might be large, so you should redirect it to a file). Not sure if this
helps but it may give us an idea where to look.
msg19747 (view) Author: mihaigiurgeanu Date: 2017-10-12.10:47:43
Unfortunately, there is not match in the debug output. It immediately fails with the above error:


    D:\Projects\OPTIMIX\OPTIMIX>darcs apply --debug decompile-produitsimulationdaoimpl.dpatch
    Beginning identifying repository .
    Done identifying repository .
    Identified darcs-2 repo: D:/Projects/OPTIMIX/OPTIMIX
    darcs: D:/Projects/OPTIMIX/OPTIMIX/decompile-produitsimulationdaoimpl.dpatch: hGetBuf: invalid argument (Invalid argument)
    
    D:\Projects\OPTIMIX\OPTIMIX>
msg19757 (view) Author: bf Date: 2017-10-16.09:28:59
The fact that there is not much in the debug output does in fact help.
It clearly shows that the error happens right when the patch bundle is
being read from disk. The function that does this is
Darcs.Util.External.gzFetchFilePS. We have to find out why it fails.
History
Date User Action Args
2017-10-10 11:01:53mihaigiurgeanucreate
2017-10-10 13:42:30bfsetmessages: + msg19724
2017-10-12 10:47:44mihaigiurgeanusetmessages: + msg19747
2017-10-16 09:29:00bfsetmessages: + msg19757