|
SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.) |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Utility to kill Sage
OK. We all know that Sage is very stable but still it occasionally hangs. I can always go to Taskmgr and kill the program, but I would like to automate the process to make Sage more user firendly.
To that end, I am trying to write a simple application to check to see if Sage is hung and then kill it if it is hung. This would be run each time the "reset" button is pressed on the remote. I know how to unconditionally kill an application from the command line so that is easy to do. Determining if the app is hung seems more difficult. There are several articles online but since I am not a programmer (last time I did any serious coding it was Fortran) the approaches do not make sense to me. Thanks in advance for your help. Lain |
#2
|
||||
|
||||
Re: Utility to kill Sage
Quote:
I'm not going to tell you you're wrong about the way you're looking at this, only that I look at it a bit differently. Here's why... I'm currently using a PVR-350/nForceII chipset and Malore's Commercial Advance STV beta. This combination hangs every once in awhile, and requires several changes in the software to get the video back up and running through the tvout of the PVR-350. Now, with that said, Sage is still up and running just fine, the tv-out just hung. *sigh* So, why not just let the user decide when to kill the application, and assign the kill application to a button on the remote control (this is what I did.)
__________________
Warm Regards, Andy Kruta A+, CNA, MCSA, Network+, RHCE "It's kinda fun to do the impossible" - Walt Disney |
#3
|
|||
|
|||
Re: Utility to kill Sage
Quote:
__________________
Server : Intel Core i7 2.8 GHz Processor: Gigabyte X58A-UD3R Motherboard: 6 GB Memory : 1 120 GB Intel SSD :3 2 TB WD hard drives:1 Hauppauge PVR 2250: 3 HDHomeRuns:1 HD300 extender;1 HD200 extender;1 HD100 extender 2 MVP Media Extenders: Windows 7 64 bit Home Premium all updates applied, SageTV V7.1.7.254. |
#4
|
|||
|
|||
Krutaw,
Thanks for the suggestion. That is actually my fall back position and probably where I will end up. I think that you are right and that solution will be easier and less likely to produce unexpected results. I will need to give some thought on how to make sure that the kill button is hard to accidently press. I just thought it would be a little more user friendly (Read: No more "The tv froze again!!"). Ultimately, there is always the off button on the PC, but I have never been able to convince my significant other to use it. Carlgar, I always check to make sure that Sage is "Not Responding" before killing the app. On my systems, I have never seen CPU utilization peak with 95% going to system idle tasks. I have seen 95% or so of the current CPU being used going to system idle task, but only when overall CPU usage is low. In either case, to me, 20 min is way to long to wait for the system to correct itself. I would consider that a hung application |
#5
|
|||
|
|||
I have a built in menu option that runs taskkill.exe (internal windows app that can shutdown taks by name). It then goes into a loop for 6 seconds to make sure that sage is closed then it starts it again. This comes in very handy at times.
|
#6
|
||||
|
||||
go to www.sysinternals.com & download the pstools.zip, it has a handy little utility (actually they are ALL handy especially if you are a CLI type person) called pskill which allows you to kill a process by PID or name
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|