Charmed Quark Systems, Ltd. - Support Forums and Community
tray icon keeps disappearing - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: CQC Support (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=9)
+--- Thread: tray icon keeps disappearing (/showthread.php?tid=9866)

Pages: 1 2 3 4 5 6 7


RE: tray icon keeps disappearing - Dean Roddey - 12-13-2019

Oh, wouldn't that be ridiculous if I'd been banging my head against the code all this time and it turned out to be the scheduler stopping it because it thinks it's a task that's supposed to run for a while and then stop it. Oy vey! Yeh, keep an eye on it. If it continues to be happy, that'll be a good sign. I can update the installer to change that setting.


RE: tray icon keeps disappearing - Bugman - 12-14-2019

(12-13-2019, 03:55 PM)Dean Roddey Wrote: Oh, wouldn't that be ridiculous if I'd been banging my head against the code all this time and it turned out to be the scheduler stopping it because it thinks it's a task that's supposed to run for a while and then stop it. Oy vey! Yeh, keep an eye on it. If it continues to be happy, that'll be a good sign. I can update the installer to change that setting.

So we think this is fixed now? I always had to start the tray monitor manually each time I upgraded to a new version. I'm now on 5.4.0 and it fails every once and awhile when coming out of sleep mode. Funny, that it fails but still has the tray icon up, but disappears when you hover over it.


RE: tray icon keeps disappearing - kfly - 12-14-2019

(12-14-2019, 05:30 AM)Bugman Wrote:
(12-13-2019, 03:55 PM)Dean Roddey Wrote: Oh, wouldn't that be ridiculous if I'd been banging my head against the code all this time and it turned out to be the scheduler stopping it because it thinks it's a task that's supposed to run for a while and then stop it. Oy vey! Yeh, keep an eye on it. If it continues to be happy, that'll be a good sign. I can update the installer to change that setting.

So we think this is fixed now? I always had to start the tray monitor manually each time I upgraded to a new version. I'm now on 5.4.0 and it fails every once and awhile when coming out of sleep mode. Funny, that it fails but still has the tray icon up, but disappears when you hover over it.

on 5.4.906 and have not seen the issue(disappear with hover over tray icon). I don't do sleep but was happening about once every 2 weeks. Not sure if it is fixed or something changed.


RE: tray icon keeps disappearing - Dean Roddey - 12-14-2019

The system tray manager apparently doesn't watch the applications all the time. If one dies without shutting down cleanly, it will not know that. When you over it tries to find it and can't, and then removes the icon.

Sleep is a messy business and it's incredibly difficult to find subtle bugs that happen because of the weirdness that goes on when a system goes to sleep. There's no reasonable way to debug such things. Sleeping isn't something that's friendly to more complex programs that are talking other things and other things are talking to it and such. They cannot just shut down on a moment's notice, but Windows will just stop them almost immediately and leave them in whatever weird state they happen to be in, because they want client type systems to be able to go to sleep very quickly. It's hard to say what will happen if a program is then resurrected in almost any potential state because it wasn't able to clean up completely before it got frozen.

So I wouldn't be totally shocked if it happened once in a while coming out of sleep. But, in terms of just a non-sleeping system, if it falls over then, I'd assign it to some more fundamental issue with the tray monitor, but never found one despite years of looking. The task scheduler killing might explain why that is.

Of course when it would fall over, folks would probably restart it manually. Then it wouldn't be running under the task scheduler and wouldn't get stopped by it, and would run fine. Then at some point they'd log out and back in and it would be back on the death watch again. So that would explain some of the (seeming) unpredictability of it, if that is indeed what is happening.


RE: tray icon keeps disappearing - Dean Roddey - 12-14-2019

I guess it's also possible that the task scheduler's kill timer runs out while the system is asleep. You wake it up, the task scheduler starts, sees the program is still running and whacks it immediately. So if it had been started automatically on the last login, it wouldn't be that unusual if the kill timer timed out while it was asleep.