Page 1 of 1

Could not allocate memory to open file?

Posted: 2021-01-08 22:07
by loftersyd
FZ 5.53.0.3
MacOS Big Sur

When i try to upload a file to my ec2 server:

Command: put "/Users/luiz/Sites/prolucroweb/application/controllers/Tabelas.php" "Tabelas.php"
Error: Could not allocate memory to open '/Users/luiz/Sites/prolucroweb/application/controllers/Tabelas.php' for reading.
Error: local: unable to open /Users/luiz/Sites/prolucroweb/application/controllers/Tabelas.php
Error: File transfer failed

Any type of file. No success.
There's available space (and memory) on my mac, server etc. What can i do? :cry:

Re: Could not allocate memory to open file?

Posted: 2021-01-08 23:14
by loftersyd
like a miracle, memory leak solved with the TODAY lastest release:

3.52.0.5 (2021-01-08)

- FTP: Fixed crash if downloading ASCII files with stray carriage returns
- Fixed too strict requirements for preallocation
- *nix: Fixed a memory leak

Re: Could not allocate memory to open file?

Posted: 2021-01-31 17:51
by schraubinger
Unfortunately, it doesn't work with version 3.52.2 either.

2021-01-31 09:44:56 18528 2 Status: Starte Download von /srv/www/share.xxxxx.info/htdocs/nephthys/.git/objects/84/741d300eb3a6432d8ddbb106fd7806b256d098
2021-01-31 09:44:56 18528 2 Befehl: get "741d300eb3a6432d8ddbb106fd7806b256d098" "I:\Backup EBFÖ\share.xxxxx.info\htdocs\nephthys\.git\objects\84\741d300eb3a6432d8ddbb106fd7806b256d098"
2021-01-31 09:44:57 18528 2 Fehler: Could not allocate memory to open 'I:\Backup EBFÖ\share.xxxxx.info\htdocs\nephthys\.git\objects\84\741d300eb3a6432d8ddbb106fd7806b256d098' for writing.
2021-01-31 09:44:57 18528 2 Fehler: local: unable to open I:\Backup EBFÖ\share.xxxxx.info\htdocs\nephthys\.git\objects\84\741d300eb3a6432d8ddbb106fd7806b256d098

Re: Could not allocate memory to open file?

Posted: 2021-02-01 09:14
by botg
How much memory does your computer have? Is the page file enabled?

Re: Could not allocate memory to open file?

Posted: 2021-02-01 12:37
by schraubinger
The computer has 8GB of memory. Page file is switched on, automatically ... Tested on three different computers (16 and 32GB), the same problem everywhere. For a server backup with approximately 320,000 files, this error occurs with 10,000 files. These problems did not exist in older versions.

Re: Could not allocate memory to open file?

Posted: 2021-02-01 14:46
by botg
So it doesn't happen immediately after starting FileZilla, but only after 10k files transferred?

Does it work again for a while when closing and restarting FileZilla, or is a reboot needed?

Re: Could not allocate memory to open file?

Posted: 2021-02-01 16:33
by schraubinger
So it doesn't happen immediately after starting FileZilla, but only after 10k files transferred?
I put myself in a misleading way: These approximately 10,000 errors occur within the transmission of all 230,000 files. However, the files are never the same, they are always different.
Does it work again for a while when closing and restarting FileZilla, or is a reboot needed?
It does not matter whether a restart is performed. As I said, this problem occurs on three different computers.

Re: Could not allocate memory to open file?

Posted: 2021-02-02 11:44
by botg
I've fixed a handle leak in the download path for SFTP. Could you please try the latest nightly build?

Re: Could not allocate memory to open file?

Posted: 2021-02-02 20:36
by schraubinger
Very good! This error no longer occurs (for me)! Thank you very much for the quick solution!