![]() |
|
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
|
|||
|
|||
Memory Leaks -> Lockup?
WAF problem.
Morning in the house: flip on TV/Sage. Uh Oh. Screen shows Sage's Logo with the spinning triple circles (the A in SAGE) - the please wait indicator. This is a stock current release 4 system. No fancy stuff - no DVD, music, HD. Just DVR of Std Def TV. One tuner. Stock GUI. Hasn't been rebooted for weeks. I grab a screen showing process status (enclosed). Says memory and VM is up to almost 256MB. 1,900 handles (window elements) in use. Cannot get Sage to terminate. Windows shutdown hangs (maybe becuase sage won't exit). Cross-fingers, force power off. Rebooted fine. no apparent damage. Grab another process status of Sage, 12 hours and may viewings later. Memory is 99MB. Memory leaks? enclosed: screen grabs Last edited by stevech; 05-03-2006 at 09:53 PM. |
#2
|
||||
|
||||
Current release is v5.0.2.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#3
|
|||
|
|||
Narflex has posted before that what windows reports for Sage memory usage is incorrect and that the fluctuations in memory is due to java doing its thing. I don't know enough about it to explain it, but you can do a forum search for the thread Narflex replied in or maybe someone else can better explain it.
|
#4
|
|||
|
|||
I have had the same issue with v5.0.2 and when I look in the debugging log I get java out of memory errors...
__________________
Server: Asus M3A; AMD Phenom quad core CPU; 3Gb RAM ; ATi x1600 PCIe Video Card Tuners: 1 Adaptec PVR 3610, 2 PVR 500s; 1 HDHomerun; 2 HD PVR Storage: 1.2 Tb Clients: 2 HD Extenders |
#5
|
|||
|
|||
I can add that when I hit 225,000 in memory for SageTV.exe. It breaks. I run in service mode so it is not as big of a deal because recordings continue. It is just painful because I can't relaunch SageTV.exe from my MCE remote without HIP or Girder (which are not installed) It takes me about 2-3 days for SageTV to get to the breaking point. I'll turn on logging to file a bug report.
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#6
|
||||
|
||||
If you're getting OutOfMemory errors in your log file, PLEASE submit a bug report. Those should not be happening. http://sagetv.com/bugs.html
__________________
Jeffrey Kardatzke Founder of SageTV |
#7
|
|||
|
|||
apologies in advance for dumb user response...
What about Windows reporting 1900 handles in use? Doesn't this imply a problem? Out Of Memory Errors? These would be in the file tv.sage.mod.0.log? Well - that file seems to be erased each time you startup Sage. So when Sage locked up and wouldn't terminate, I don't know why - there were no errors presented via the OSD and I cannot access the log file. Sage stopped responding to the window manager so I can do nothing. Could not shut down Windows. After restarting Sage, the log file above contained just the most recent startup events. There were a number of WARNING symbolMap Duplicat Theme: xxx ---------- Perhaps there's a different logfile I'm supposed to look at for post-morteum. |
#8
|
||||
|
||||
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
#9
|
||||
|
||||
Note that Windows taks manager memory usage (and also that reported by my Motherboard Information plugin) includes memory that is allocated by other things -- some that sage has no control over:
I recent traced down a massive memory leak to my use of FFDSHOW's kernel deinterlacing filter -- each time I Skipped in Sage, a few 100K was leaked... (this was easy to see when I used my motherboard info plugin, graphing the memory use for Sage)... Try falling back to the basic configuration: no plugins, no custom STVs, use Sage's decoders, no post-processors, and see if you still have your memory leak, if not, add each customization in turn until you find the culprit.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki ![]() |
#10
|
|||
|
|||
As I said - I have a vanilla system already. No 3rd party decoders or plug-ins. Hauppauge hardware.
It's a blame game? What about the 1900 handles? Last edited by stevech; 05-05-2006 at 01:29 PM. |
#11
|
|||
|
|||
My SageTV.exe says 393,859 handles and 28 threads.
Is that alot? B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#12
|
||||
|
||||
Note that 'Handles' are anything that is system-wide that sage needs to have access to, not just window elements (eg file handles, thread handles, registry keys, device handles...)
On my system, using service mode and with assorted customisations I have: On startup: SageTV: 121MB VMsize, 750 handles SageTVService 65Mb, 1028 handles While playing back something (after 20 secs) SageTV: 135MB VMsize, 2697 handles (increasing) SageTVService 68Mb, 1028 handles After stopping playing back something SageTV: 125MB VMsize, 2597 handles SageTVService 68Mb, 1028 handles After a few days: SageTV: 175Mb (stable), 350,000 handles SageTVService: 76Mb, 1140 handles hmm so there does seem to be some kind of 'handle leak' on my system (some more playing with decoder/renderer reveals that it is only when I use VMR9 as my renderer, and it creates about 50 new handles/sec)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki ![]() Last edited by nielm; 05-06-2006 at 02:52 AM. |
#13
|
|||
|
|||
After just one night of having the sagetv client running on my computer (probably watched around 3-4 hours of shows) my client computer showed 1,024,000 handles. (Running 5.02) It only showed about 18mb memory usage though.
|
#14
|
||||
|
||||
Quote:
__________________
Jeffrey Kardatzke Founder of SageTV |
#15
|
|||
|
|||
Yes - there appears to be a handle leak somewhere. I had over 600,000 handles (forgot to mention - that was with Sage restarted today). Didn't even know it until I read this thread. Here's the intersting thing, if I turn off VMR9 and set it to overlay, the leak stops. I can do this while keeping the task manager open and monitor it. The moment I watch a video and I have details set to VMR 9 it starts incrementing the handles. If I set it to overlay, it stops. I tried both Sage and NVidia decoders and it didn't seem to matter - but overlay stops it and VMR9 starts the leak (finally got those nvidia decoders working but I'm not noticing any quality difference - maybe I need glasses or something).
FWIW - I set my debug logging to TRUE in properties and I have the Sage log. If someone is interested, let me know where to send it. Thanks, Mike Last edited by mike1961; 05-06-2006 at 03:54 PM. |
#16
|
|||
|
|||
Well - the VMR9 setting only seems to create the handle leak on my computer in one room and not the other two. There are some differences like it's happening on my Intel 2.66 ghz computer and not on the AMD 3200's. Could be something else causing it of course but I can make it happen on one computer by using the VMR 9 setting.
EDITED - Scratch that. I have to check the other computers again because I did not change the channel after changing the setting...just a sec on this. Mike. Last edited by mike1961; 05-06-2006 at 04:09 PM. |
#17
|
|||
|
|||
Yes - it does it on all the computers. I set to VMR9 and then watch TV (but not a show already watched if you change settings) just change the channel bring up the task manager and watch you handles just start increasing by the second.
Mike |
#18
|
||||
|
||||
Quote:
|
#19
|
|||
|
|||
VMR9 off on mine with the handle leak problem in version 4
|
#20
|
|||
|
|||
I have version 5 and it only happens with VMR9. But I also have the latest Java version which could be part of the problem.
Not at all sure how long it has been going on. Mike. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|