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 05-03-2006, 09:50 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
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
Attached Images
File Type: jpg SageError3May06.jpg (135.4 KB, 497 views)
File Type: jpg SageError3May06-2.jpg (94.0 KB, 445 views)

Last edited by stevech; 05-03-2006 at 09:53 PM.
Reply With Quote
  #2  
Old 05-04-2006, 06:30 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
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.
Reply With Quote
  #3  
Old 05-04-2006, 06:38 AM
blade blade is offline
SageTVaholic
 
Join Date: Jan 2005
Posts: 2,500
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.
Reply With Quote
  #4  
Old 05-04-2006, 06:43 AM
BBCritical BBCritical is offline
Sage Aficionado
 
Join Date: Jun 2005
Posts: 308
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
Reply With Quote
  #5  
Old 05-04-2006, 06:48 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
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
Reply With Quote
  #6  
Old 05-04-2006, 10:51 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
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
Google
Founder of SageTV
Reply With Quote
  #7  
Old 05-04-2006, 09:10 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
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.
Reply With Quote
  #8  
Old 05-04-2006, 09:25 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
See this FAQ entry for info on debug logging.

- Andy
__________________
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.
Reply With Quote
  #9  
Old 05-05-2006, 11:58 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
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:
  • Sage's native (non-java) code layer
  • Native (non-java) code from thrd-party plug-ins
  • DirectShow DLLs for the capture cards
  • DirectShow DLLs for playback -- decoders, post-processors, renderers etc
A bug / memory leak in the latter 3 would be unfixable by Sage, and it would be very difficult to trace the source.

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
Reply With Quote
  #10  
Old 05-05-2006, 01:26 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
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.
Reply With Quote
  #11  
Old 05-05-2006, 04:27 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
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
Reply With Quote
  #12  
Old 05-06-2006, 02:49 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
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.
Reply With Quote
  #13  
Old 05-06-2006, 03:01 PM
Azam Azam is offline
Sage User
 
Join Date: Feb 2006
Posts: 10
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.
Reply With Quote
  #14  
Old 05-06-2006, 03:06 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by nielm
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)
Can you submit a bug report on this please?
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #15  
Old 05-06-2006, 03:52 PM
mike1961 mike1961 is offline
Sage Icon
 
Join Date: Dec 2005
Location: California
Posts: 1,555
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.
Reply With Quote
  #16  
Old 05-06-2006, 04:06 PM
mike1961 mike1961 is offline
Sage Icon
 
Join Date: Dec 2005
Location: California
Posts: 1,555
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.
Reply With Quote
  #17  
Old 05-06-2006, 04:19 PM
mike1961 mike1961 is offline
Sage Icon
 
Join Date: Dec 2005
Location: California
Posts: 1,555
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
Reply With Quote
  #18  
Old 05-06-2006, 07:58 PM
jominor's Avatar
jominor jominor is offline
Sage Expert
 
Join Date: Dec 2003
Posts: 573
Quote:
Originally Posted by nielm
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...)
)
I have Sage, running as an exe and running for at least 3 months with 1115. Note, this is with 2.x. I have yet to upgrade, so this leak appears new.
Reply With Quote
  #19  
Old 05-06-2006, 10:01 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
VMR9 off on mine with the handle leak problem in version 4
Reply With Quote
  #20  
Old 05-06-2006, 11:52 PM
mike1961 mike1961 is offline
Sage Icon
 
Join Date: Dec 2005
Location: California
Posts: 1,555
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.
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 11:24 PM.


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