Out of Memory Error

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Out of Memory Error

Post by *Hacker »

I have invoked the MRT by pressing Ctrl-M. The MRT window showed up and this error dialog on top of it:

---------------------------
Total Commander 8.51a
---------------------------
Out of memory.
Out of memory
Windows 7 SP1 6.1 (Build 7601)

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

Delphi exception: EOutOfMemory
Stack trace:
7601C42D
6C3697 6C5F0E 6C5E9E 4FF9F6 427148 >446589
4464BF 4483EF 44844B 4464BF 445C0B 4FE8D3
59358F 584805 449033 446589 447B66 4484F6
42590C 447A9B 42590C 42AFC8 42B064 7056AB

Raw:
6C3697 6C3697 401F6A 40203E 6C3697 6C3697
6C3697 402726 530042 6B6E20 417B2E 417B76
60512C 6059E7 6F9EE1 41EB2E 530042 446589
4487C5 447B66 4484F6 448519 42590C 407713
6C3A09 702255 6BBB53 6FAE83 6FB72C 7022FF
6C8210 6C81BB 7027CB 6FB9D2 7022FF 6C8210
7027CB 6FB9D2 6C1F9D 6C833C 607129 447A09
42590C 530042 600000 6C81BB 7022FF 6C8210
7026CF 6C3CDF 61006C 61006C 61006C 406EC4
4023EF 6C2CA8 4033D0 6C2C7C 6C2CC8 4019E8

Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Yes No
---------------------------

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

EOutOfMemory means that TC was running out of memory. The call was
getmem(result,2*sectsize+2);
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Um, well, OK, does that help you or me in any way? Any steps to troubleshoot next time this happens perhaps? Any steps to avoid this happening again?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Scrolling in a dir with ~80 000 files, then pressing Ctrl-PageUp while the list was still being scrolled. Brief view, one file color filter active.

---------------------------
Total Commander 8.51a
---------------------------
Fatal error in CheckDir thread, aborting!
Out of memory
Windows 7 SP1 6.1 (Build 7601)

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

Delphi exception: EOutOfMemory
Stack trace:
7632C42D
566BB1 5687A5 >418C98 40362C
Raw:
566BB1 566BB1 566BB1 566BB1 566BB1 402726
75001F 75001F 690072 61006C 63002C 61006C
63002C 75001F 5687A5 418C98 40362C
Press Ctrl+C to copy this report!
---------------------------
OK
---------------------------

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Same problem - it seems that you have some kind of memory leak. When you get this error, can you check with task manager how much memory is used by TC? Just do NOT close the error dialog first.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Working Set Private was a bit below 200 MB in both cases. Should I check any other value in Process Explorer in case it happens again?

Thanks
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, you can't see this - it may be the total number of allocated Dephi objects, not the overall memory. How long does TC run until you get this? A few hours? A few days?
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Usually just a few hours, say around 6. Certainly not a full day.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's odd, I'm usually running TC for multiple days (the PC only goes to sleep mode, no reboot). Are you doing anything unusual which could be eating a lot of memory?
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Well, my computer is pretty strained, lots of processes running, lots of tabs open in Firefox etc., but the physical memory usage rarely exceeds 75% of available memory (6 GB out of 8 GB).
What I have noticed, though I am not sure if it is relevant in any way, TC first starts reacting very slowly. When I then close it (by clicking X as usual) and restart, it does not restore the previous tabs / dirs even though it is configured to do so and normally does, so basically in these cases it does save the current state to the wincmd.ini upon closing.
I have a feeling it might be connected either to Bitdefender, XnView (as sometimes this happens after invoking [and returning from] Thumbnail view) or a combination thereof. Just a hunch, though.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Are you able to save the settings manually before closing via menu Configuration - Save settings?
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Are you able to save the settings manually before closing via menu Configuration - Save settings?
I just tried. TC got slow, I clicked Configuration - Save Settings, got no error message, closed TC, started TC and the previous directories were not restored.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sounds like TC is gettings slow due to the out of memory situation, and the ini functions also start to fail...
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Usually TC takes up ~15 MB "WS Private" as shown in Process Explorer, before it freezes it takes up between 100 - 200 MB. So, I agree with you, something is wrong with the memory usage, however I always have at least 2 GB physical memory free, even when TC freezes.
Is there anything we can do about it?

TIA
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe you can check in Windows task manager what is causing the memory to grow that much? Try all functions involving third party extensions which you use regularly like:
- context menu
- properties (Alt+Enter)
- any plugins you use
Author of Total Commander
https://www.ghisler.com
Post Reply