Memory leaks causing crash/shutdown? [9.0a 32bit]
Moderators: Hacker, petermad, Stefan2, white
Memory leaks causing crash/shutdown? [9.0a 32bit]
Since 9.0 was released, I'm often experiencing TC crashes after af few days of active use. It seems the application is running out of Windows resources since it fails to correctly update the main window after a while, and shortly after crashes completely.
I'm using the new View Mode features a lot since it's as great feature, but I suspect it may cause the leaks.
Is this a known issue? And is there a workaround?
Thanks.
/Beano
Edit: Running on Windows 8.1 Pro, 64bit
I'm using the new View Mode features a lot since it's as great feature, but I suspect it may cause the leaks.
Is this a known issue? And is there a workaround?
Thanks.
/Beano
Edit: Running on Windows 8.1 Pro, 64bit
Did you get any messages from Windows or TC about those memory leak? Colud you post it?
For example, I once got this window when switching to TC:
It tells that PC doesn't have enough memory and user have to close or restart opened applications to free some. But I guess it is OK to get this message when a lot of apps are opened for a long time on a PC with small amount of RAM (with today's broswers requirements by "small" I mean anything less than 4 Gb).
For example, I once got this window when switching to TC:
Code: Select all
[Window Title]
Microsoft Windows
[Main Instruction]
На компьютере недостаточно памяти
[Content]
Чтобы освободить память для нормальной работы программ, сохраните файлы, а затем закройте или перезапустите все открытые программы.
[ОК]
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Ukraine's National Bank special bank account:
UA843000010000000047330992708
It's 100% not related to number of open programs or total Windows memory. I suspect the TC process runs out of Windows GDI resources or handles. A restart of TC solves the problem and then works again for days. TC1-8 never had this issure for me and I have used it for 20+ years 
I'll look out for error messages but I don't always get an error message, often the main window just stops drawing itself or shuts down.
I'm consicering disabling View Modes to see if that helps. That could isolate the issue at least.

I'll look out for error messages but I don't always get an error message, often the main window just stops drawing itself or shuts down.
I'm consicering disabling View Modes to see if that helps. That could isolate the issue at least.
Well, if you suspect Windows running out of specific resources, you could check them in Process Explorer or Process Hacker. Start TC, do some stuff, write down the resource value(s), and then repeat this after a few days before TC crashes.
Regards
Dalai
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
I just did a few tests...
1) Disabled Auto-switch for custom view modes, closed all tabs using custom view mode and only global colors are used. Restarted TC.
2) TC used 4.7MB memory according to Windows' job list.
3) Now I held CTRL+R for 60 seconds, causing TV to refreshing C:\ tab repeatedly.
4) Memory use only grew a little to 4.9MB.
I then tried the exact same procedure again but this time with a custom view mode selected for C:\. Same folder, open tabs and files. The memory grew to 9.9MB and doesn't drop after several minutes of inactivity.
Seemed to me something in reg. to custom view mode code is leaking so I then tried the test once again but disabled tab color for the selected custom view mode.
This caused the memory usage to drop down to 5MB.
Then I tried the same test two more times where I only turned tab color on and off - every time memory usage was aprox. 10MB with tab color on, and 5MB with tab color off.
Bottom-line: As far as I can see, non-default tab color in custom view mode causes the leak which over time could be why TC crashes here after a few days.
1) Disabled Auto-switch for custom view modes, closed all tabs using custom view mode and only global colors are used. Restarted TC.
2) TC used 4.7MB memory according to Windows' job list.
3) Now I held CTRL+R for 60 seconds, causing TV to refreshing C:\ tab repeatedly.
4) Memory use only grew a little to 4.9MB.
I then tried the exact same procedure again but this time with a custom view mode selected for C:\. Same folder, open tabs and files. The memory grew to 9.9MB and doesn't drop after several minutes of inactivity.
Seemed to me something in reg. to custom view mode code is leaking so I then tried the test once again but disabled tab color for the selected custom view mode.
This caused the memory usage to drop down to 5MB.
Then I tried the same test two more times where I only turned tab color on and off - every time memory usage was aprox. 10MB with tab color on, and 5MB with tab color off.
Bottom-line: As far as I can see, non-default tab color in custom view mode causes the leak which over time could be why TC crashes here after a few days.
- ghisler(Author)
- Site Admin
- Posts: 50550
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: