Author Topic: How to restore Trash Can icon change ?  (Read 2862 times)

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
How to restore Trash Can icon change ?
« on: July 22, 2025, 06:36:12 am »
Hi !

Since I've got the icon bug (which occurs from time to time and seems to be related with xcenter use) after dynamic icon update, The Trash can icon no more changes from empty to full !

Any idea to restore this object icons ?
Thanks     

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 411
  • Karma: +30/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #1 on: July 24, 2025, 06:35:28 am »
The Trash can icon no more changes from empty to full ! Any idea to restore this object icons ?

The easiest way is to replace it.

From a commandline, run this to delete the existing one:

oo /d "<XWP_TRASHCAN>" f

Then, run this to recreate it. This is all on one line:

oo /n XWPTrashCan TrashCan "<WP_DESKTOP>" DEFAULTVIEW=DETAILS;ALWAYSSORT=YES;DEFAULTSORT=9;DETAILSCLASS=XWPTrashObject;SORTCLASS=XWPTrashObject;OBJECTID="<XWP_TRASHCAN>";

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #2 on: July 25, 2025, 07:38:45 pm »
Hi!

Trashcan was deleted and created again using previous command.
But I'm surprised that this didn't resolve the problem which happens since I installed the new dynamic png
The Trashcan always show empty TrashCan while I put into it several elements and when opening it, elements are into it but the TrashCan icon show empty !

Regards

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #3 on: July 26, 2025, 09:38:34 am »
Here is a screenshot.

The trashcan on the desktop shows empty while the opened trashcan view has files into it and the left corner icon (near mouse pointer) has the correct full trashcan ico !

Note: I found that my problem about lost icon on some folder which are added as a widget into my xcenter could be related to the use of OS4 PMMERGE
I put back original PMMERGE, restarted and re-installe + re-registered dynamic ico update followed by a WPS restart.
Then checked the trashcan, deleted it. Restart and then created it but the problem is the same as you can see into this screen cap   

Lars

  • Hero Member
  • *****
  • Posts: 1447
  • Karma: +72/-0
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #4 on: July 26, 2025, 11:28:25 am »
I suppose, the trash can is derived from WPFolder. I would hope that its settings notebook has two pages for closed and opened object. Maybe you   can reselect the icons.

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #5 on: July 26, 2025, 04:32:58 pm »
I suppose, the trash can is derived from WPFolder. I would hope that its settings notebook has two pages for closed and opened object. Maybe you   can reselect the icons.

No, there is no icon (open or close) settings 

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #6 on: July 26, 2025, 05:08:03 pm »
I just uninstalled dynamic ico 2.5.6 and trashcan works again !

The culprit is dynamic ico 2.5.6
(all new issue are linked to this package - lost of folder icons, trashcan full not working... each uninstall/install of this package provided the same bugs)
What is the purpose of WPPngCache class which doesn't exist under 2.5.2.2 ?

Returning to 2.5.2.2 under which all works very well without any bugs.
I'll reinstall 2.5.6 when a corrective is available

Could it be possible something into it doesn't work as supposed?
« Last Edit: July 26, 2025, 05:10:28 pm by Remy »

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 411
  • Karma: +30/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #7 on: July 28, 2025, 07:50:08 pm »
I just uninstalled dynamic ico 2.5.6 and trashcan works again !
Could it be possible something into it doesn't work as supposed?

Given that no one else has reported this problem, nor your original problems with D.I. 2.56, nor other WPS issues we've worked on in the past, I have to assume there is something seriously non-standard about your system that is causing these issues.

It could be alternate versions of PMWP, PMMERGE, the various SOM dlls (possibly from installing VACPP), or some add-on you've been using for years. It's up to you to determine what _you_ did to _your_ system to trigger (not "cause") this bug. Without that info, there's almost nothing I can do to fix it because neither I nor seemingly anyone else can duplicate it.

Quote
What is the purpose of WPPngCache class which doesn't exist under 2.5.2.2 ?

WPPngCache is the first new SOM/WPS code in at least 10 years that actually _does_ something beside put pages in a notebook.

The first time any class or object is asked to display its unique icon, it creates a cache object to manufacture and cache multiple sizes of its icon. Some of these cache objects are private to the object that created them (e.g. PM exe's) while others are shared among all objects that use the same icon (e.g. VIO exe's). The result is a 90+% reduction in memory usage over v2.52 (plus the ability to use different sized icons in Icon and Tree views).

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5400
  • Karma: +46/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: How to restore Trash Can icon change ?
« Reply #8 on: July 28, 2025, 11:03:40 pm »
Hello Remy

I can not reproduce your problem. I remember that long, long time ago sometime that problem shows in ArcaOS 5.0, but I no longer experienced that problem.

Do you have some other WPS Enhancer like eSchemes or Imagination? Anything else ?

Maybe you can run "ClassLst > remyClass.txt and compare it with mine (Attached) to see any rare registered class.

Regards
« Last Edit: July 28, 2025, 11:38:12 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #9 on: July 29, 2025, 12:56:43 am »
I just uninstalled dynamic ico 2.5.6 and trashcan works again !
Could it be possible something into it doesn't work as supposed?

Given that no one else has reported this problem, nor your original problems with D.I. 2.56, nor other WPS issues we've worked on in the past, I have to assume there is something seriously non-standard about your system that is causing these issues.

It could be alternate versions of PMWP, PMMERGE, the various SOM dlls (possibly from installing VACPP), or some add-on you've been using for years. It's up to you to determine what _you_ did to _your_ system to trigger (not "cause") this bug. Without that info, there's almost nothing I can do to fix it because neither I nor seemingly anyone else can duplicate it.

Quote
What is the purpose of WPPngCache class which doesn't exist under 2.5.2.2 ?

WPPngCache is the first new SOM/WPS code in at least 10 years that actually _does_ something beside put pages in a notebook.

The first time any class or object is asked to display its unique icon, it creates a cache object to manufacture and cache multiple sizes of its icon. Some of these cache objects are private to the object that created them (e.g. PM exe's) while others are shared among all objects that use the same icon (e.g. VIO exe's). The result is a 90+% reduction in memory usage over v2.52 (plus the ability to use different sized icons in Icon and Tree views).

Hi,

I do not use alternate version except PMMERGE used from OS4 bujt knowing it, I did test using the AOS original PMMERGE but the problem always occurs and eco runtimes. AOS xcenter seems  seems involved due desktop icons having ramdomly issue have a widget into AOS xcenter lite. Other objects have no issue except the trashcan for which the full icon doesn't appear for the desktop icon only

Could cpu T° monitoring have an impact on D.I ?
Whe will  2.5.2.2 perfectly work without any issue and the latest build not ? logic will suppose it is into the changed or added code   

May it possible WPPngCache is cahing wrong icons ?
I only see this option which is new and could create problems
« Last Edit: July 29, 2025, 01:33:40 am by Remy »

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #10 on: July 29, 2025, 01:25:29 am »
Hello Remy

I can not reproduce your problem. I remember that long, long time ago sometime that problem shows in ArcaOS 5.0, but I no longer experienced that problem.

Do you have some other WPS Enhancer like eSchemes or Imagination? Anything else ?

Maybe you can run "ClassLst > remyClass.txt and compare it with mine (Attached) to see any rare registered class.

Regards

Do you have some other WPS Enhancer like eSchemes or Imagination? Anything else ?
Nothing added.

My desktop is as it was provide by AOS, just organised it in an other way and some added programs
There are some differences and a few more entries into mine but I don't know what it will do.
Here it is:
« Last Edit: July 29, 2025, 01:28:18 am by Remy »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5400
  • Karma: +46/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: How to restore Trash Can icon change ?
« Reply #11 on: July 29, 2025, 04:57:39 am »
Hello Remy

I checked your WPS classes list and I haven't found anything strange. I even install some of the ones you have to try it out and I was not able to replicate the issue.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #12 on: July 29, 2025, 09:26:33 am »
Could os2 ini file size have an impact ?
Mine is very big and it can't be reduced a lot having it reduced several times.
Any debug or log file available during the install time ?
or could a build without "WPPngCache class" be provided to check if this could be the culprit ?

I display png icons for the elements placed on the desktop and ico into folders.
The ugly is that it always show png for icons under properties despite I set it to ico and would like use ico only when seen under folders
« Last Edit: July 29, 2025, 09:36:50 am by Remy »

Lars

  • Hero Member
  • *****
  • Posts: 1447
  • Karma: +72/-0
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #13 on: July 29, 2025, 03:12:00 pm »
Hi Remy,

I don't know if this intentional or not but on your system "WPPngCache" class is not registered.
But it is easy enough to register via XWP by specifying "WPPngCache" as the class name and "C:\SYS\DLL\PNGDESK.DLL" as the SOM DLL containing the class.

Or had you backlevelled to 2.5.2.2 while you where dumping the class list ?
« Last Edit: July 29, 2025, 03:19:27 pm by Lars »

Remy

  • Hero Member
  • *****
  • Posts: 917
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #14 on: July 30, 2025, 12:42:02 am »
Hi Remy,

I don't know if this intentional or not but on your system "WPPngCache" class is not registered.
But it is easy enough to register via XWP by specifying "WPPngCache" as the class name and "C:\SYS\DLL\PNGDESK.DLL" as the SOM DLL containing the class.

Or had you backlevelled to 2.5.2.2 while you where dumping the class list ?

Yes, I took the class list dump after having backleveled to 2.5.2.2