[11.02RC3 32 bit]: Delphi exception when screen is back on

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
azrl
Junior Member
Junior Member
Posts: 4
Joined: 2023-10-23, 22:00 UTC

[11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *azrl »

If I leave the PC turned on without interacting for some time, when the screen turns back on, I find this error message:
---------------------------
Error creating window device context.
Error creating window device context
Windows 11 Enterprise 10.0 (Build 22621), base: 00400000

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

Delphi exception: EOutOfResources
Stack trace:
76DF90E2
0044DFCD 0044FFD2 >0042B86A 0044F570 0042B86A 00430FF2
00431140
Raw:
00451A4C 004026AC 00402D5C 00451A4C 00451A4C 0044D9B3
00445770 0044CDF5 00446B8F 00446728 00472D15 00472EA6
0045418A 0044F4C6 0042B86A 00402EBA 0044DFCD 004502A1
0042D865 0044F63A 0044FFD2 0042B86A 0044F570 0042B86A
0044D353 00430FF2 00431140 004312FA
---------------------------

Please note that I observed the same behavior with TC 11.01 32bit (update performed just hoping to remove the problem...)

Some more info (don't know if can be significant):
1) the desktop zoom is set to 125%
2) I always use TC maximized to full screen, but after upgrading from W10 to W11, after leaving the PC on and unused until the screen is automatically deactivated (15 minutes), when I reactivate the PC I find the TC window resized, occupying approximately 50% of the desktop
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *ghisler(Author) »

This means that something is leaking resources like window handles or graphics objects, probably a plugin or Explorer extension. You can open task manager with Ctrl+Shift+Esc and add columns for USER and GDI objects to observe when they start going up. It's normal that they increase at the beginning because Total Commander is caching icons, but they should not get much higher than 1-2000. For GDI, the limit seems to be 10000 per app, so when this is reached, TC can no longer create new objects and you will get errors like the above one.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *ghisler(Author) »

2azrl
Since you are on Windows 11, which is 64-bit only, could you try the same with Total Commander 64-bit? Just install the combined 32-+64-bit version normally (not as an update) to get the desktop icon for 64-bit too. 64-bit programs have less resource restrictions than 32-bit.
Author of Total Commander
https://www.ghisler.com
azrl
Junior Member
Junior Member
Posts: 4
Joined: 2023-10-23, 22:00 UTC

Re: [11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *azrl »

Thank you
Indeed, at the time of the crash there were 9999 GDi objects
When disabling content plugins the crash does not occur; I'm experimenting (reenabling them one at a time), in order to identify which one is creating the problem.
PS: one of the plugins I use (doesn't seem to be the offending one, anyway) is 32bit only, and this prevents me from installing TC 64bit...
User avatar
Dalai
Power Member
Power Member
Posts: 9615
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: [11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *Dalai »

2azrl
GDI objects are graphical objects. Although it's possible that Content plugins show graphical objects (in some kind of dialog), I find it somewhat unlikely - unless it's a combined plugin like WLX+WDX. In my opinion, other plugin types like Lister and File-system plugins and, to a lesser degree, Packer plugins are more likely to create GDI objects.

Anyway, please report back what you find!

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *ghisler(Author) »

PS: one of the plugins I use (doesn't seem to be the offending one, anyway) is 32bit only, and this prevents me from installing TC 64bit...
Which one? Maybe there are similar replacements?
Author of Total Commander
https://www.ghisler.com
azrl
Junior Member
Junior Member
Posts: 4
Joined: 2023-10-23, 22:00 UTC

Re: [11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *azrl »

@Dalai: as soon as I have time to perform some more experiments, I will report the results (the tests need to have the PC left "idle" for some hours, but right now I'm using it intensively)
@ghisler: unfortunately, at the moment I have no replacements for the 32bit plugin: it's something I wrote myself for a very specific usage, using Power Basic. Anyway, as soon as possible I will try to recode it using a 64bit-capable compiler (FreeBasic)
azrl
Junior Member
Junior Member
Posts: 4
Joined: 2023-10-23, 22:00 UTC

Re: [11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *azrl »

I apologize for the late reply...
From what I have been able to verify, on my PC the increase of GDI objects that leads to the crash is caused by the content plugin "Media 0.6.1" (32 bit only): this happens if the PC is idle for a few hours. This behavior has only been happening for a few weeks now (probably after a Windows 11 update?)
Thanks to @ghisler for giving me directions on how to identify the problem
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49232
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [11.02RC3 32 bit]: Delphi exception when screen is back on

Post by *ghisler(Author) »

Thanks for your feedback. Try one of the other media plugins, e.g. from totalcmd.net.

Moderator message

Moved to plugins forum
Author of Total Commander
https://www.ghisler.com
Post Reply