System Tray icon disappears, HDS has to be restarted

Post here if you encounter any problems or bugs with the software.
Zero
Posts: 6
Joined: 2015.07.15. 15:05

System Tray icon disappears, HDS has to be restarted

Post by Zero »

Setup:
Win 10 x64 / DPI @200% (3840x2160)
HDS 4.71 (8168)

Hi,

Like the topic says "System Tray icon disappears, HDS has to be restarted"
Most likely to happen after resolution change or restart of explorer ... Other applications have this issue as well, such as Geforce Experience, Google Photo Backup, SABnzbd, they are however limited to a "explorer restart" the system tray for HDS seem to disappear for other reasons as well.
User avatar
hdsentinel
Site Admin
Posts: 3115
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: System Tray icon disappears, HDS has to be restarted

Post by hdsentinel »

When explorer.exe crashes, yes, the tray icons of all applications disappears.

Exactly for this situation, HDS automatically detects if explorer.exe crashes and restarts and then displays all of the tray icons again, so the icons should be automatically displayed again. Not a "limited explorer restart" but all tray icons with temperatures.

If this somehow does not happen, then you may try any of the following:
- click on the Hard Disk Sentinel shortcut again to force the re-display of icons
- use the configured hot key (Coniguration -> Hot keys) to access the main window and press the leftmost icon (two blue arrows) to make a "re-fresh": update the status and display the icons again
- connect/disconnect any external storage (even a pendrive) which triggers the above (a complete re-detect and display the icons according the changed configuration).

As you can see, Hard Disk Sentinel has many ways to show the tray icons again, even if explorer crashes, exactly to help even in a such problematic situation when explorer.exe crashes.
But if somehow these do not work, please send an e-mail to info@hdsentinel.com about step-by-step instructions about how to reproduce the problem and I'll try that and examine the situation.
Zero
Posts: 6
Joined: 2015.07.15. 15:05

Re: System Tray icon disappears, HDS has to be restarted

Post by Zero »

Hey,

I think there was some miscommunication here. Not sure what you mean with "all" icons disappear. I was talking about other applications with the same problem. I only use one tray icon for HDS, that with the highest temperature.

I know there are workarounds to get the icon showing again but that's beside the point. Also takes longer then simply restarting HDS manually. You have to fix it on your end. I restart explorer often because Windows 10's DPI is flawed. Every Time there is a resolution change the DPI scaling happens. That's when system tray icons either become corrupted, Active icons become Static, some become blurred, some disappear like HDS. When explorer restarts, DPI scaling occurs. I'm also not sure if manual restart of explorer is flagged as a crash? I don't have crashes.

To reproduce,

1. Use a DPI higher than default 100% on Windows 10
2. Restart explorer, from task manager for example
3. HDS system tray icon might comeback, it might not.
User avatar
hdsentinel
Site Admin
Posts: 3115
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: System Tray icon disappears, HDS has to be restarted

Post by hdsentinel »

Thanks, I did not know that only one icon configured to be displayed. I wanted to mean that "ALL" configured icons should be displayed (one in this case).

Of course, everything I can do is always done to improve the situations in all possible ways.

But if "sometimes work, sometimes don't" usually mean that the software does everything well - and Windows may refuse to do things correctly.
System tray icons are good examples, as sometimes when we want to show the icon the appropriate Windows function return success - but the icon is not visible. Hard Disk Sentinel automatically tries to re-fresh / update at numerous times, exactly at least to show the icon(s) properly.
This is why I wrote many ways to trigger such refresh earlier.

You did not write which version do you use. For high DPI situations, I'd suggest the latest 4.71.11 just released on the Download page as it has generic changes for such systems.

On explorer "crash" I mean that it is closed and restarted. This usually happened with older OSes when something (usually shell extension or something similar) caused that explorer.exe corrupted, crashed and automatically restarted. But yes, even manual "kill" of explorer.exe and restart is captured and as you can see, the icon is refreshed - just sometimes may not displayed by Windows.

I'll try to reproduce the situaton by manually terminating explorer.exe and restarting - and if possible, improve of course.
Thanks for your attention!
Zero
Posts: 6
Joined: 2015.07.15. 15:05

Re: System Tray icon disappears, HDS has to be restarted

Post by Zero »

I really appreciate you being so turow. You explain very well.
hdsentinel wrote: You did not write which version do you use. For high DPI situations, I'd suggest the latest 4.71.11 just released on the Download page as it has generic changes for such systems.
I did write what version I have HDS 4.71 (8168), Looking at the site HDS v4.71.11 is a beta version. That's why the app says I already have the latest. I might try the beta or wait for stable.
BTW, I remember from erlier that you have the forum set to "approve" every post. Because of spam and what not. But why do you need to approve a reply? no option to just approve new post? just wondering. Gives you more work :/

And again, thank you for taking the time to explain how things work it's unheard off!

For example:
I never thought of
hdsentinel wrote:System tray icons are good examples, as sometimes when we want to show the icon the appropriate Windows function return success - but the icon is not visible.
But then I wounder, how are other developers doing it? For example Comodo Internet Security which also has a dynamic system tray icon. It never gets static, blurry, or disappears. Perhaps ask them how they do it :roll: then again, best would be to have Microsoft fix there damn bugs ...
User avatar
hdsentinel
Site Admin
Posts: 3115
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: System Tray icon disappears, HDS has to be restarted

Post by hdsentinel »

There is no "magic" here, just other developers may update the tray icons more frequently.
Originally (long time ago, especially in single-core systems and older OSes) the tray icon handling was relatively slower and because of that, Hard Disk Sentinel updates only when really required.
Things are changing - and especially with hi DPI systems (and dynamic DPI change) more complicated.
This is a long way and still need to catch up how things may work in such situations and make the required modifications in newer versions - especially for such "unusual" events (like for manual restart of explorer).
User avatar
hdsentinel
Site Admin
Posts: 3115
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: System Tray icon disappears, HDS has to be restarted

Post by hdsentinel »

Zero wrote:BTW, I remember from erlier that you have the forum set to "approve" every post. Because of spam and what not. But why do you need to approve a reply? no option to just approve new post? just wondering. Gives you more work :/
Yes, this is still true as "clever" people attempts posting 100's of spam messages every day.
Unfortunately there is no option in PhpBB to approve an user (and all of his posts) so yes, need to approve all new posts/replies.
Yes this is more work - but I'm afraid have no better solution.
Post Reply