SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-15-2004, 06:23 AM
ldavis ldavis is offline
Sage Aficionado
 
Join Date: Aug 2003
Posts: 388
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
Reply With Quote
  #2  
Old 08-15-2004, 10:20 AM
krutaw's Avatar
krutaw krutaw is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Oklahoma City, OK
Posts: 457
Send a message via AIM to krutaw
Re: Utility to kill Sage

Quote:
Originally posted by ldavis
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.
Lain,

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
Reply With Quote
  #3  
Old 08-15-2004, 10:52 AM
carlgar carlgar is offline
Sage Icon
 
Join Date: Oct 2003
Location: Brentwood, TN
Posts: 1,866
Re: Utility to kill Sage

Quote:
Originally posted by ldavis
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.
I would suggest that the next time you think Sage is hung you look at the CPU usage in the Taskmgr. I have noticed that when I think Sage is hung it is a result of the system task running and using most (95%-98%) of the CPU. I have seen the system task take the CPU for as long as 20 min. I believe that Sage is probably still running but very slowly because of little CPU time.
__________________
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.
Reply With Quote
  #4  
Old 08-15-2004, 11:20 AM
ldavis ldavis is offline
Sage Aficionado
 
Join Date: Aug 2003
Posts: 388
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
Reply With Quote
  #5  
Old 08-15-2004, 02:21 PM
falchulk falchulk is offline
Sage Icon
 
Join Date: Sep 2003
Posts: 1,150
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.
Reply With Quote
  #6  
Old 08-17-2004, 03:05 AM
PaulG's Avatar
PaulG PaulG is offline
Sage Advanced User
 
Join Date: May 2004
Location: Australia
Posts: 83
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.