Posts: 40,483
Threads: 491
Joined: Aug 2002
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.
Dean Roddey
Explorans limites defectum
Posts: 440
Threads: 49
Joined: Apr 2007
(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.
Posts: 745
Threads: 33
Joined: Oct 2008
(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.
_______________
Denon 3808ci, 2112ci ,Sonos, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Posts: 40,483
Threads: 491
Joined: Aug 2002
12-14-2019, 08:10 AM
(This post was last modified: 12-14-2019, 08:15 AM by Dean Roddey.)
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.
Dean Roddey
Explorans limites defectum
Posts: 40,483
Threads: 491
Joined: Aug 2002
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.
Dean Roddey
Explorans limites defectum