Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Getting "Out of memory" while listing directory

Thanks for your report.

Can you send me an email, so I can send you back a debug version of WinSCP to track the problem? Please include a link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.
Eduard07

Getting "Out of memory" while listing directory

Hello,

We have a problem. Script fails while listing a directory.
We used 5.12.7 version.
We are working with S3.
We are syncing a bucket using WinSCP scripting feature over the synchronize command.
This folder contains about 175k files (3Gb).
Bucket has size 1.5Tb.

The script is very simple
# echo "%remote_folder%"
# echo "%sync_folder%"
# echo "%connection%"
# exit
 
# Connect
open %connection%
 
# Change remote directory
cd %remote_folder%
 
# Synchronize all files to local directory
synchronize local %sync_folder%
 
# Disconnect
close
 
# Exit WinSCP
exit


Error is next
. 2023-04-10 13:27:48.783 Asking user:

. 2023-04-10 13:27:48.783 Error listing directory '/bim/optimizedpdf/tiles'. ("Out of memory",,"Please help us improving WinSCP by reporting the error on WinSCP support forum.",,"Stack trace:",(0043EC10),(0043EC10),(00D1B341),(0057A18A),(00BF3CD4),(00BF4C7D),(00BF4CB9),(0057C41F),(00575D7E),(00D1E916),(00D1F00F),(00D1F3CA),(00DE1F68),(00DE2925),(00DE2506),(00DE23D0),(00DE27A4),(00DEEC4D),(00DF0366),(00DEF475),(00DE2866),(00DEEC4D),(00DF0366),(00DEF475),(00DE2866),(00DEEC4D),(00DECF6E),(00D428A6),(00D39B61),(00D3B0CB),(000662B3),(0006EDA4),(00108FB9),(000027FA),(00FDD7D5),"(0006562B) ntdll.dll.RtlGetAppContainerNamedObjectPath","(000655F8) ntdll.dll.RtlGetAppContainerNamedObjectPath",,(00FDFE2D),(00FE1407),(00DE1F97),(00DE2925),(00DE2506),(00DE23D0),(00DE27A4),(00DEEC4D),(00DF0366),(00DEF475),(00DE2866),(00DEEC4D),(00DF0366),(00DEF475),(00DE2866),(00DEEC4D),(00DECF6E),(00D428A6),(00D39B61),(00D3B0CB),(000662B3),(0006EDA4),(00108FB9),(000027FA),(00FDD7D5),"(0006562B) ntdll.dll.RtlGetAppContainerNamedObjectPath","(000655F8) ntdll.dll.RtlGetAppContainerNamedObjectPath")
< 2023-04-10 13:27:48.783 Script: Error listing directory '/bim/optimizedpdf/tiles'.
< 2023-04-10 13:27:48.783 Script: Out of memory
< 2023-04-10 13:27:48.783
< 2023-04-10 13:27:48.783 Please help us improving WinSCP by reporting the error on WinSCP support forum.
< 2023-04-10 13:27:48.783
< 2023-04-10 13:27:48.783 Stack trace:
< 2023-04-10 13:27:48.783 (0043EC10)
< 2023-04-10 13:27:48.783 (0043EC10)
< 2023-04-10 13:27:48.783 (00D1B341)
< 2023-04-10 13:27:48.783 (0057A18A)
< 2023-04-10 13:27:48.783 (00BF3CD4)
< 2023-04-10 13:27:48.783 (00BF4C7D)
< 2023-04-10 13:27:48.783 (00BF4CB9)
< 2023-04-10 13:27:48.783 (0057C41F)
< 2023-04-10 13:27:48.783 (00575D7E)
< 2023-04-10 13:27:48.783 (00D1E916)
< 2023-04-10 13:27:48.783 (00D1F00F)
< 2023-04-10 13:27:48.783 (00D1F3CA)
< 2023-04-10 13:27:48.783 (00DE1F68)
< 2023-04-10 13:27:48.783 (00DE2925)
< 2023-04-10 13:27:48.783 (00DE2506)
< 2023-04-10 13:27:48.783 (00DE23D0)
< 2023-04-10 13:27:48.783 (00DE27A4)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DF0366)
< 2023-04-10 13:27:48.783 (00DEF475)
< 2023-04-10 13:27:48.783 (00DE2866)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DF0366)
< 2023-04-10 13:27:48.783 (00DEF475)
< 2023-04-10 13:27:48.783 (00DE2866)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DECF6E)
< 2023-04-10 13:27:48.783 (00D428A6)
< 2023-04-10 13:27:48.783 (00D39B61)
< 2023-04-10 13:27:48.783 (00D3B0CB)
< 2023-04-10 13:27:48.783 (000662B3)
< 2023-04-10 13:27:48.783 (0006EDA4)
< 2023-04-10 13:27:48.783 (00108FB9)
< 2023-04-10 13:27:48.783 (000027FA)
< 2023-04-10 13:27:48.783 (00FDD7D5)
< 2023-04-10 13:27:48.783 (0006562B) ntdll.dll.RtlGetAppContainerNamedObjectPath
< 2023-04-10 13:27:48.783 (000655F8) ntdll.dll.RtlGetAppContainerNamedObjectPath
< 2023-04-10 13:27:48.783
< 2023-04-10 13:27:48.783 (00FDFE2D)
< 2023-04-10 13:27:48.783 (00FE1407)
< 2023-04-10 13:27:48.783 (00DE1F97)
< 2023-04-10 13:27:48.783 (00DE2925)
< 2023-04-10 13:27:48.783 (00DE2506)
< 2023-04-10 13:27:48.783 (00DE23D0)
< 2023-04-10 13:27:48.783 (00DE27A4)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DF0366)
< 2023-04-10 13:27:48.783 (00DEF475)
< 2023-04-10 13:27:48.783 (00DE2866)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DF0366)
< 2023-04-10 13:27:48.783 (00DEF475)
< 2023-04-10 13:27:48.783 (00DE2866)
< 2023-04-10 13:27:48.783 (00DEEC4D)
< 2023-04-10 13:27:48.783 (00DECF6E)
< 2023-04-10 13:27:48.783 (00D428A6)
< 2023-04-10 13:27:48.783 (00D39B61)
< 2023-04-10 13:27:48.783 (00D3B0CB)
< 2023-04-10 13:27:48.783 (000662B3)
< 2023-04-10 13:27:48.783 (0006EDA4)
< 2023-04-10 13:27:48.783 (00108FB9)
< 2023-04-10 13:27:48.783 (000027FA)
< 2023-04-10 13:27:48.783 (00FDD7D5)
< 2023-04-10 13:27:48.783 (0006562B) ntdll.dll.RtlGetAppContainerNamedObjectPath
< 2023-04-10 13:27:48.783 (000655F8) ntdll.dll.RtlGetAppContainerNamedObjectPath
. 2023-04-10 13:27:48.783 Answer: Abort
. 2023-04-10 13:27:49.330 Script: Failed
. 2023-04-10 13:27:49.330 Script: Exit code: 1