|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Sage Process on Server Crashing
This is happening several times a day. I'm not using the service. Latest v9 on Win10 64 Pro. Any ideas what's causing it? hs_err_pid and log attached.
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#2
|
||||
|
||||
Also getting separately, around once per day, an error that the SageTV process has stopped, which stops all SageTV activity until I click it. Details below. It's better if the process just stops itself rather than waiting for input as it restarts...
Code:
Faulting application name: SageTV.exe, version: 9.1.5.683, time stamp: 0x594a4a96 Faulting module name: ntdll.dll, version: 10.0.15063.447, time stamp: 0xd51d5c5e Exception code: 0xc0000005 Fault offset: 0x0002ef5d Faulting process id: 0x27bc Faulting application start time: 0x01d30e39f60e6701 Faulting application path: C:\Program Files (x86)\SageTV\SageTV\SageTV.exe Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll Report Id: d6b5dcc2-69bf-4969-9da6-d416ca855e4b Faulting package full name: Faulting package-relative application ID:
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#3
|
|||
|
|||
Your system is running out of native memory. There are a few others posting in other threads having the same issue. Try turning off the photo screensaver if you are running it. Something is wrong in V9 that is affecting several users in the same way. The log you posted already was out of memory at the top. If it crashes again, post the last log file that isn't showing 'out of memory' issues. Sagetv_1.txt is older than sagetv_0.txt and sagetv_2 is older than that, etc.
|
#4
|
||||
|
||||
Thanks, will do. Every time I look it's running at <30% RAM usage, but I guess it just suddenly maxes out and crashes...
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#5
|
|||
|
|||
Quote:
One of the above or the combination of all is using too much. It does seem to be a new issue in V9 for some. I've been looking through the source code for a memory leak and so far haven't found anything. Keep those log files coming and I'll keep looking. Last edited by wnjj; 08-06-2017 at 07:19 PM. |
#6
|
||||
|
||||
If you go to this photo in the photos menu and view it, does it crash?
V:\Photos\2006\200612\IMG_3829.jpg There may be something specifically odd about that photo that's causing it to allocate a huge chunk of native memory incorrectly which would create a problem like this. If it does reproduce it...please DO NOT delete that photo so we can fix the underlying problem.
__________________
Jeffrey Kardatzke Founder of SageTV |
#7
|
||||
|
||||
There is something odd about that photo. I'm on it.
But I currently have it displayed on a PC client and an Android extender with no apparent ill effect. I've attached it anyway, but it looks like all the others from this end. Nope, too big to attach, it's here: http://www.gillyon.com/downloads/IMG_3829.jpg
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#8
|
|||
|
|||
Quote:
Several users are crashing in imageloader but some are even crashing the JVM itself. The imageloader crash is because there are mallocs that don't check for success (null pointer). Those will crash even if a small amount is requested but not available. The real issue is why is so much native memory being used up or fragmented? It seems that some who upgraded V7 systems started having this issue. Perhaps they were using close to the limit before and are now just over or maybe their media types or photo formats bring out a memory leak or bug? |
#9
|
||||
|
||||
My system was more stable after turning off "Optimized Image Loader" but was still having crashes using any of the 9.1 versions. I've had to go back to 9.0.13 to get a stable system.
John |
#10
|
|||
|
|||
That's quite interesting. The most significant change memory-wise in 9.1.x was turning on G1GC string deduplication. I wonder if that feature enabling saving of Java heap has a cost to native memory?
|
#11
|
||||
|
||||
Quote:
Also Narflex gives and explanation here why turning off the "Optimized Image Loader" would reduce the impact on native memory John Last edited by JREkiwi; 08-07-2017 at 09:10 PM. |
#13
|
|||
|
|||
Quote:
|
#14
|
||||
|
||||
Quote:
John |
#15
|
||||
|
||||
I watched today as the memory usage on my server went from the usual 21% to 76%, for an extended time. The server has 8GB. I've attached the logs, but no crash today. I think the high usage coincides with an EPG update.
Logs here: http://www.gillyon.com/downloads/sagetv_0.zip
__________________
unRAID Server: Intel Core i5 7600K, 48GB DDR4, 2x512GB PCIe M.2 Cache Pool, 2x10TB SATA3 Parity Drive, 3x8TB SATA Array, 1x hdHomeRun DVB-T2 Quattro, IPTV via xTeVe, unRAID 6.8.3, tvHeadEnd for recording back end, Emby Clients: 3 Nvidia Shields, 3 FireTV, 3 Win10 Pro PC Clients |
#16
|
|||
|
|||
How's the change in GC working? I'm curious to know if that was the issue.
|
#17
|
||||
|
||||
Quote:
Not sure if G1GC was the entire problem, but from my reading it certainly seems more suited to large JAVA heaps. John Last edited by JREkiwi; 08-18-2017 at 02:16 PM. |
#18
|
||||
|
||||
Quote:
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
#19
|
||||
|
||||
The optimized image loader should actually use less system memory overall and definitely performs faster than that non-optimized one (as one would expect). It does use more native memory and less Java memory...but in the overall total it will be less. I definitely think it would be worth trying to enable that again now that you've seen improvement...I wouldn't want people disabling that as a potential fix for things that aren't broken now that the GC setting has been changed back.
__________________
Jeffrey Kardatzke Founder of SageTV |
#20
|
||||
|
||||
Quote:
John |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Server crashing corrupt wiz.bin? | rxnelson | SageTV Software | 12 | 11-08-2015 09:12 PM |
SageTV Server Restore - Validate my process... | greggerm | SageTV Software | 2 | 02-26-2013 12:21 PM |
Streamlined process for BD to server | superteancum | SageTV Media Extender | 11 | 02-13-2009 08:32 AM |
SageTV Server keeps crashing | grauchy | SageTV Software | 2 | 02-21-2008 09:35 AM |
MVP Server crashing | Ralnee | SageTV Software | 2 | 11-11-2003 08:39 AM |