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 07-09-2005, 03:16 PM
morpheus morpheus is offline
Sage User
 
Join Date: Jul 2005
Posts: 22
Exclamation Runaway Memory Leak in SageTV Service

Last night, after Windows performed in automatic update, XP informed me that it was out of virtual memory.
I rebooted the system, and immediately noticed that the user interface was very slow. It gradually got much slower to the point that I could not even use it.
I rebooted again but the same thing happened.
Since I use this PC only for SageTV, and it has 512 MB of RAM, I suspected a memory leak. I opened Windows task manager and looked at the performance tab. All of the physical memory was being used, and page file use was 1 GB.
As an experiment, I stopped the SageTV service. Immediately, memory usage went back down to a normal idle state for XP. I started the SageTV service again, keeping an eye on the performance tab of task manager. Immediately memory usage went up, and within one minute all physical memory was used and the page file was again at 1 GB. The funny thing is, during this time memory usage by SageTV (as reported in the task manager processes tab) shoots up at the beginning but when it reaches around 400 MB, it suddenly drops down to 70 MB.
Since the Java automatic updater installed an update for the j2se runtime environment last night, I suspected that this might be the culprit. I uninstalled j2se, downloaded a fresh copy (1.4.2) and reinstalled it. I also did a reinstall (repair) of SageTV itself. I guess the next step is to uninstall SageTV and reinstall it, but that means losing my favorites.
Has anyone else seen this? I just spent $350 on a capture card and SageTV software, I'd like to get it working before I have to go on an overseas deployment.
Thanks,
morpheus
Reply With Quote
  #2  
Old 07-09-2005, 03:37 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Uninstalling & re-installing SageTV won't lose your favorites, unless you dump your wiz.bin file. As long as you keep wiz.bin & the properties files, all your old data & settings should still be there.

It is always possible that there is a memory problem in SageTV, but double check the other process on the Processes tab of Task Manager. For example: quite a while back, someone found that Norton AntiVirus was eating memory while auto-scanning the recording dirs. If you've added any customizations, try not using those to see what happens too.

- 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
  #3  
Old 07-09-2005, 03:42 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
I'd suggest also deleting all your Library Import directories and seeing if that helps at all.
Reply With Quote
  #4  
Old 07-09-2005, 04:02 PM
morpheus morpheus is offline
Sage User
 
Join Date: Jul 2005
Posts: 22
Exclamation Thanks, but still not working

Thanks for the advice. I implemented your suggestions.
First, I uninstalled and reinstalled SageTV. However, the memory leak did not go away.
Second, I do not have Norton installed. In fact, SageTV is the only thing I use this PC for.
Third, I tried deleting all of my media import directories. The memory leaks still did not go away.
I'm fairly certain that this is a problem with SageTV itself, for the following reasons:
1. Windows runs fine and memory usage is stable as long as SageTV and SageTV service are not running.
2. As soon as I start either SageTV or SageTV service, memory usage begins to increase dramatically, and it does not stop increasing until all physical memory has been used and the page file is at its limit.
The confusing thing is that task manager reports that SageTV is only using 120 MB. However, when I stopped SageTV, memory usage in the performance tab of task manager immediately returns to normal, with about 320 MB physical memory available. If I start SageTV again, physical memory available decreases to nearly zero within 30 seconds.
It seemed to be working okay before last night's automatic update. I'd rather not reinstall Windows but this seems to be my only option, unless you guys can come up with something.
Reply With Quote
  #5  
Old 07-09-2005, 04:14 PM
salsbst's Avatar
salsbst salsbst is offline
SageTVaholic
 
Join Date: Jun 2003
Posts: 2,592
I'd suggest uninstalling and reinstalling the Java Runtime Environment.
Reply With Quote
  #6  
Old 07-09-2005, 04:42 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
I'd suggest looking at what Windows XP update installed and possibly rolling back before that with System Restore. It doesn't sound like you had a memory issue prior to this.

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
  #7  
Old 07-09-2005, 05:59 PM
carlgar carlgar is offline
Sage Icon
 
Join Date: Oct 2003
Location: Brentwood, TN
Posts: 1,866
I would suggest that you save a copy of your properies and wiz files. Then remove your current wiz files so sage will built and new one when it starts. If this solves your problem then your wiz.bin file is probably corrupted. If so, I hope you have an uncorrupted older wiz.bin file or you may just have to start over with the new one.
__________________
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
  #8  
Old 07-10-2005, 01:11 AM
morpheus morpheus is offline
Sage User
 
Join Date: Jul 2005
Posts: 22
still trying...

Thanks again for the suggestions.

As I mentioned in my original post, I already rolled back the j2se to the version that comes with SageTV, but this did not solve the problem.

I am going to try a radical solution, but one which is likely to solve my problem... reformat my hard disk and reinstall everything from scratch. I will let you know how this goes. If it works, I'm going to turn off all those damn automatic updating programs.

Wish me luck...
Reply With Quote
  #9  
Old 07-10-2005, 09:57 PM
morpheus morpheus is offline
Sage User
 
Join Date: Jul 2005
Posts: 22
reformatting the hard disk fixed the problem...duh

Well, I figured it would be faster than trying to debug the problem, so I reformatted my hard disk and reinstalled everything from scratch. SageTV is now working properly, it doesn't use up all of my memory like it used to.

I would recommend to everyone, though, that you do not allow the j2se to automatically install updates. Also, if your machine is behind a firewall and you are not running any e-mail clients on it, you might also consider turning off Windows automatic update. At the very least, install updates one at a time manually and make sure SageTV still works after each one.

Thanks to everyone for the help.
Reply With Quote
  #10  
Old 07-16-2005, 12:37 AM
Doubletop's Avatar
Doubletop Doubletop is offline
Sage Advanced User
 
Join Date: Apr 2005
Location: New Zealand
Posts: 126
I'm having the same problem as reported as soon as I wake sage tv up from sleeping the memory usage creeps up to a few megs from max (512Mb) over about 30 seconds.

Not looking forward to a hard disk reformat and re-install. I took me 2 weeks to get everything working properly when I installed a new motherboard..

So have we confrimed that its the java runtime that needs to be dropped back to 1.4.2?
Reply With Quote
  #11  
Old 07-27-2005, 11:31 PM
Doubletop's Avatar
Doubletop Doubletop is offline
Sage Advanced User
 
Join Date: Apr 2005
Location: New Zealand
Posts: 126
Further update on this there are a number of possible conditions only one has the problem

Sleep OK
Awake OK
Playback OK
Record OK
Record one channel and playback different recording OK
Playback a channel whilst recording it NOT OK

One other observation when I had a 512Mb and a 256Mb memory installed the whole system would regularly crash. I took out the 256Mb and the system is far more stable. However, that is probably a memory incompatibility problem rather than a Sage TV problem.
Reply With Quote
  #12  
Old 07-27-2005, 11:36 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by Doubletop
Playback a channel whilst recording it NOT OK
That could be related to the capture device you are using or the recording quality being used for the recording. So, what device are you using & what is the recording quality setting?

- 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
  #13  
Old 08-04-2005, 03:11 AM
Doubletop's Avatar
Doubletop Doubletop is offline
Sage Advanced User
 
Join Date: Apr 2005
Location: New Zealand
Posts: 126
The card is a haupauge PVR 350 it has hardware encoding. I am set up for best quality

BTW just installed another 512mb of Ram taking me up to 1Gb, it was all in use within a couple of minutes of the install. Nothing else was running other than SageTV and FreeMeter which I am using for the monitor, and of course all the background stuff you need to get Sage TV running.
Reply With Quote
  #14  
Old 08-06-2005, 08:00 AM
krunkyou krunkyou is offline
New Member
 
Join Date: Aug 2005
Posts: 2
I'm having the exact same problem. I'm running the sage software with WinDVD creator. I'm using a Plextor ConvertX TV402U capture device. My System is a Dell Pentium 4 3.8 with Hyperthreading, 512 Memory. The operating system is Windows Media Center. I'm recording in DivX, highest quality.

Here is what I noticed. The system is fine until I record something. After the recording is done, the system attempts to convert the mpg or mpgs (they are in parts sometimes) into an AVI file. Sage creates a TMP file for the conversion. As this temp drive grows, the Page File (not the system memory) grows and grows and grows until it maxes out the system. The system memory stays the same, about 50-80k) Doesn't matter how big I configure the page file, the conversion process will run away with whatever is there. The PC becomes slow and I get messages that I'm running out of virtual memory. Usually, at some point the conversion stalls before it has a chance to complete, but the system never gives back the Virtual memory it took until I stop the Sage service. When I restart the service, it will try to convert the file again, and my virtual memory fills up again. The only way to stop the cycle is to delete the recording. If there are no files to convert, no problems.

I can't be the only person who has this problem. I'm probably going to shoot a note to Support today to see what they have to say, but if anybody here can shed some light on this, it would be appreciated. Thanks.

Last edited by krunkyou; 08-06-2005 at 08:02 AM.
Reply With Quote
  #15  
Old 08-09-2005, 08:39 PM
SageTVFan SageTVFan is offline
New Member
 
Join Date: Aug 2005
Posts: 1
Memory Leak in 2.2 is real

I've been using SageTv for a while, and I've reformatted my hard drive as well.

The problem does come back.

It's unfortunate, since I use SageTV to record programs... maybe it will be fixed in version 3. (fingers crossed)
Reply With Quote
  #16  
Old 12-12-2005, 11:19 AM
whardy7 whardy7 is offline
Sage User
 
Join Date: Aug 2004
Posts: 33
Is this solved, yet?

I record homeschool classes several times throughout the night and day and am losing far too many because this virtual memory problem keeps coming up. It will ultimately send the system to a crawl until it won't record anything else. After I reboot, I have 100gig left about every time.

Any solutions to this yet?
Reply With Quote
  #17  
Old 12-12-2005, 12:37 PM
cmaffia's Avatar
cmaffia cmaffia is offline
Sage Expert
 
Join Date: May 2004
Posts: 612
Send a message via Yahoo to cmaffia
It looks like these users were having problems with version 2.2.... have you tried v4.0 yet?

Quote:
Originally Posted by whardy7
I record homeschool classes several times throughout the night and day and am losing far too many because this virtual memory problem keeps coming up. It will ultimately send the system to a crawl until it won't record anything else. After I reboot, I have 100gig left about every time.

Any solutions to this yet?
__________________
Server: Dual Tuner: PVR-150MCE/PVR-250MCE/SageTV v5.02/Asus Pundit-R 2.4GHZ/512MB DDR RAM/250 GB Maxtor HD (8MB Buffer) External Seagate 400GB HD via USB 2.0/Onboard ATI 9100 using SVIDEO TV-Out/Nvidia DVD decoder/Actisys 200L IR Blaster (Dish receiver) USBUIRT (DirectTV receiver)/Lite-On 4X DVD-R/RW/Windows XP Pro SP2/Adesso Mini IR Keyboard w/integrated mouse/Tivo "Peanut" Remote via USBUIRT/Dish Network Model 301/DirectTV subscriber/Webserver Plugin v2.8
Reply With Quote
  #18  
Old 12-12-2005, 08:43 PM
whardy7 whardy7 is offline
Sage User
 
Join Date: Aug 2004
Posts: 33
No, I am using 2.0.0.1.
I will try 4.0, but I cannot find any evidence of an upgrade. Do I have to purchase all over again?
Reply With Quote
  #19  
Old 12-12-2005, 09:11 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by whardy7
I will try 4.0, but I cannot find any evidence of an upgrade. Do I have to purchase all over again?
From the SageTV info page, there is a link to the download page. It is a free upgrade for any currently registered user; just install it to the same directory where SageTV is already installed.

I always make a backup of the current installation's data files, though... for simplicity, I simply copy the entire directory to another location before installing an upgrade.

- 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
  #20  
Old 12-12-2005, 09:12 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Nope, don't have to repurchase. Just download the current 4.0 version and you can then either install over top of 2.0.

However, if it were me, I'd copy out my wiz.bin and then uninstall 2.0 and then set up a new config pointing to the same recoding folders. Then, shut down sage and copy back in the wiz.bin and retain your recordings.
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:14 AM.


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