[10.52] out of memory

Please report only one bug per message!

Moderators: Hacker, petermad, Stefan2, white

Post Reply
miskox
Member
Member
Posts: 191
Joined: 2003-06-11, 06:00 UTC

[10.52] out of memory

Post by *miskox »

Code: Select all

---------------------------
Total Commander 10.52
---------------------------
Out of memory.
Out of memory
Windows 10 Professional 10.0 (Build 19045), base: 00400000

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Delphi exception: EOutOfMemory
Stack trace:
76980F22
004184F9  004182C6  0054C6D7  005532E0  0043475A  >0042A97E
004301B9  00430254  0053DF0E  0044E5D8  0042A97E  0044E52E
0042A97E  0044D035  0044E6A2  0044F03A  0042A97E  0044E52E
0042A97E  00470672  00434A08  00434A08  004339C8  0043475A
0044D035  0044F03A  0042A97E  0044E5D8  0042A97E  004301B9
00430254  
Raw:
004184F9  004184F9  004184F9  00401F76  004184F9  004184F9
004184F9  00402732  004182C6  0054C6D7  0044E52E  0042A97E
0044F3B3  0044D035  0044F309  0043DD1E  0044E62A  0044E6A2
0044F03A  0044F05D  0042A97E  0044E5D8  0042A97E  005532E0
0044E62A  0044E62A  0044E6A2  0044CF6B  0044F3EE  0044F8B1
0044D035  0044F309  0044F03A  0042C979  0044E6A2  0044F03A
0044F05D  0042A97E  00540E97  00435002  0042A97E  0043515E
0054AD30  0044D1B1  0044D1F4  0044D352  0044D035  0044F309
0043DD1E  0044E62A  0044E6A2  0044F03A  0044F05D  0042A97E
0044E5D8  004349EC  004339C8  004344F1  00433AC8  00434A49

Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------
I was doing a Synchronize dirs. I wanted to delete ~160,000 files on the left side. I have 32 GB of RAM. Current consumption is at 21%.

Saso
#224551
TotalBack
New Member
New Member
Posts: 1
Joined: 2024-11-17, 16:51 UTC

Re: [10.52] out of memory

Post by *TotalBack »

Hello. Which OS do you use? Why not use CMD to delete a large folder with files?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6757
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: [10.52] out of memory

Post by *Horst.Epp »

There are no OS and only the TC version provided :(
If it is a x64 OS, run the x64 TC and your memory problem may be solved.
Windows 11 Home, Version 24H2 (OS Build 26100.2605)
TC 11.50RC1 x64 / x86
Everything 1.5.0.1387a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.84
QAP 11.6.4 x64
miskox
Member
Member
Posts: 191
Joined: 2003-06-11, 06:00 UTC

Re: [10.52] out of memory

Post by *miskox »

TotalBack wrote: 2024-11-17, 16:55 UTC Which OS do you use?
OS information is there. PC architecture is also shown.
TotalBack wrote: 2024-11-17, 16:55 UTC Why not use CMD to delete a large folder with files?
How do you think I could use cmd for this task? I was comparing (I wrote: synhronize dir) 900+ GB of data and the files that were supposed to be deleted are *not* in one folder (as you presumed). There was no way I knew TC would crash.
Horst.Epp wrote: 2024-11-17, 17:42 UTC There are no OS and only the TC version provided :(
If it is a x64 OS, run the x64 TC and your memory problem may be solved.
There *is* OS version information in the original post.
If it is a x64 OS
You can see that it *is* x64.

The only information that is missing is if it is 32-bit or 64-bit TC - but I guess Christian will get this information from the dump itself (it says Delphi - Christian wrote that Delphi is used for 32-bit TC and Lazarus for 64-bit - so all the information is there). As you can see Delphi ran out of memory and not the system. (I guess it is 32-bit TC - will have to recheck later today). The 32-bit TC might be the reason for this - but the purpose of this bug report is for Christian to add a check and show a msgbox if this occurs (instead of a TC's crash).

Saso
#224551
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49624
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [10.52] out of memory

Post by *ghisler(Author) »

The error report is from Total Commander 32-bit, when trying to allocate the memory for the collection of files you tried to delete. 32-bit programs are limited to 2GB of user space RAM. Allocating a list of 4 byte pointers with 160'000 entries only takes 640 kBytes of RAM, which wouldn't normally be a problem. However, each entry also takes quite a bit of RAM for the name and all the file details, so I guess that the RAM space got too fragmented to allocate a 640kByte buffer in one place.

The 64-bit version will be able to handle this without problems because it uses 64-bit pointers, so there will always be a location where to allocate the memory.
Author of Total Commander
https://www.ghisler.com
miskox
Member
Member
Posts: 191
Joined: 2003-06-11, 06:00 UTC

Re: [10.52] out of memory

Post by *miskox »

Thank you Christian.

I will use 64-bit version for this (it takes a while for the comparsion to complete).

Saso
#224551
Post Reply