-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"size" argument must not be larger than 2147483647 #19
Comments
Is this sync or async or streaming? What's the stack trace? |
After looking it is getSync, but the issue is likely that you are using
fs.readfilesync which has a 2GB buffer limit in node x64
…On Thu, Aug 29, 2019 at 6:32 AM Forbes Lindesay ***@***.***> wrote:
Is this sync or async or streaming? What's the stack trace?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19?email_source=notifications&email_token=AAOD5YBRJFORNYNXF4LG3ODQG6QVHA5CNFSM4IRQL73KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5OBD5Y#issuecomment-526127607>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOD5YBFEWXF2TC7Z4WAZADQG6QVHANCNFSM4IRQL73A>
.
|
I have no intention of changing that. If you need to handle sizes over 2GB, use one of the async methods. |
This issue is node based, unlikely any of the functions will work
…On Thu, Sep 5, 2019 at 8:37 AM Forbes Lindesay ***@***.***> wrote:
Closed #19 <#19>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19?email_source=notifications&email_token=AAOD5YASZNTX2RT3BJP3MD3QID4SPA5CNFSM4IRQL73KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTOMDESA#event-2610442824>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOD5YGVMB3OYMWXVOQUZL3QID4SPANCNFSM4IRQL73A>
.
|
The async methods stream, so likely have a much larger limit. The sync method must load the entire file in memory in one go. The stream method never keeps more than a small chunk of the file in memory at any given moment. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't sha large files
The text was updated successfully, but these errors were encountered: