SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-05-2015, 01:06 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Placeshifter Causing Windows Server Crash

I updated the Sage.jar file on my Windows server. Since then I cannot connect with Placeshifter to the server. It causes an immediate crash. Extenders & Windows Clients work fine. Attached is the log file but I didn't see any indication of a reason. Also, no crash is logged by Windows and the service doesn't restart itself. It just stops running.
Attached Files
File Type: zip sagetv_0.zip (116.5 KB, 126 views)
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #2  
Old 09-05-2015, 01:15 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
The only issues that I'm seeing is this one...

Quote:
tmiranda.cd.api.IsComskipActive(api.java:107)
Sat 9/5 13:58:10.807 [MiniUIServerConnection@18b6919] sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
Sat 9/5 13:58:10.807 [MiniUIServerConnection@18b6919] sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
Sat 9/5 13:58:10.808 [MiniUIServerConnection@18b6919] java.lang.reflect.Method.invoke(Unknown Source)
Sat 9/5 13:58:10.808 [MiniUIServerConnection@18b6919] sage.Catbert$ReflectedJEPFunction.run(Catbert.java:2136)
Sat 9/5 13:58:10.808 [MiniUIServerConnection@18b6919] sage.jep.JEP$CommandEvaluator.evaluate(JEP.java:558)
Sat 9/5 13:58:10.808 [MiniUIServerConnection@18b6919] sage.jep.JEP.getValueAsObject(JEP.java:428)
Sat 9/5 13:58:10.808 [MiniUIServerConnection@18b6919] sage.Catbert.evaluateExpression(Catbert.java:641)
Sat 9/5 13:58:10.808 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.processChain(ZPseudoComp.java:4703)
Sat 9/5 13:58:10.809 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.processParentActions(ZPseudoComp.java:5212)
Sat 9/5 13:58:10.809 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.evaluate(ZPseudoComp.java:4928)
Sat 9/5 13:58:10.809 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.evaluateTree(ZPseudoComp.java:1154)
Sat 9/5 13:58:10.809 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.evaluate(ZPseudoComp.java:5127)
Sat 9/5 13:58:10.809 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.evaluateTree(ZPseudoComp.java:1154)
Sat 9/5 13:58:10.809 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.evaluate(ZPseudoComp.java:5127)
Sat 9/5 13:58:10.810 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.evaluateTree(ZPseudoComp.java:1154)
Sat 9/5 13:58:10.810 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.evaluate(ZPseudoComp.java:5127)
Sat 9/5 13:58:10.810 [MiniUIServerConnection@18b6919] sage.ZPseudoComp.evaluateTree(ZPseudoComp.java:1154)
Sat 9/5 13:58:10.810 [MiniUIServerConnection@18b6919] sage.PseudoMenu.activate(PseudoMenu.java:100)
Sat 9/5 13:58:10.810 [MiniUIServerConnection@18b6919] sage.UIManager.setUI(UIManager.java:1932)
Sat 9/5 13:58:10.810 [MiniUIServerConnection@18b6919] sage.UIManager.advanceUI(UIManager.java:1558)
Sat 9/5 13:58:10.811 [MiniUIServerConnection@18b6919] sage.UIManager.run(UIManager.java:1255)
Sat 9/5 13:58:10.811 [MiniUIServerConnection@18b6919] sage.UIManager.createAltUI(UIManager.java:326)
Sat 9/5 13:58:10.811 [MiniUIServerConnection@18b6919] sage.MiniClientSageRenderer.handleNewConnection(MiniClientSageRenderer.java:537)
Sat 9/5 13:58:10.811 [MiniUIServerConnection@18b6919] sage.MiniClientSageRenderer.access$700(MiniClientSageRenderer.java:18)
Sat 9/5 13:58:10.811 [MiniUIServerConnection@18b6919] sage.MiniClientSageRenderer$1$1.run(MiniClientSageRenderer.java:401)
Sat 9/5 13:58:10.811 [MiniUIServerConnection@18b6919] sage.Pooler$PooledThread.run(Pooler.java:252)
Sat 9/5 13:58:10.812 [MiniUIServerConnection@18b6919] EXCEPTION in getValueAsObject:sage.jep.ParseException: Error in method reflection of tmiranda_cd_api_IsComskipActive of java.lang.reflect.InvocationTargetException for:tmiranda_cd_api_IsComskipActive() || (NTEState != null) || (AlertLevel > 0) || IsDoingLibraryImportScan() || (Size(GetCurrentlyRecordingMediaFiles()) > 0) || (Size(GetAiringsThatWontBeRecorded(false)) > 0) || (GetProperty("show_mouse_icons", true) && IsDesktopUI())
But I don't know if that is causing your issue or not... It looks like it's coming from comskip plugin, but again, I can't say if that is the reason for the failure or not.
Reply With Quote
  #3  
Old 09-05-2015, 03:02 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Placeshifter works fine with both my 32-bit & 64-bit Linux test boxes. Not sure why there's a difference with the Windows version? I have the comskip plugin installed on both.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #4  
Old 09-05-2015, 05:21 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Did you update the Jar on the windows placeshifter as well? You might need a new jar if you've updated the server jar.
Reply With Quote
  #5  
Old 09-05-2015, 05:53 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by stuckless View Post
Did you update the Jar on the windows placeshifter as well? You might need a new jar if you've updated the server jar.
Yes, I updated it also.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #6  
Old 09-05-2015, 07:14 PM
sacrament055 sacrament055 is offline
Sage Aficionado
 
Join Date: Jul 2007
Posts: 474
I just tested my windows placeshifter and noticed it seems to work fine. This is the original 7.1.9 placeshifter without any updates.

the sage.jar I'm running is the one Fuzzy posted in the thread I created looking for a new version.
Reply With Quote
  #7  
Old 09-09-2015, 08:25 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
I've now determined that something is actively calling a shutdown. As far as I can tell It's these lines in the log that seem to be calling a shutdown.

Code:
Wed 9/9 9:22:24.441 [Thread-88@e90b51] [[SageTCPServer-Player:9279]]: EXCEPTION java.net.BindException: Address already in use: JVM_Bind AT java.net.DualStackPlainSocketImpl.bind0(Native Method)
Wed 9/9 9:22:24.442 [Thread-88@e90b51] java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
Wed 9/9 9:22:24.442 [Thread-88@e90b51] java.net.AbstractPlainSocketImpl.bind(Unknown Source)
Wed 9/9 9:22:24.444 [SageTV Shutdown@5508ab] SageTV SHUTDOWN is activating!
Not sure how to continue troubleshooting this.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #8  
Old 09-09-2015, 12:33 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by Taddeusz View Post
I've now determined that something is actively calling a shutdown. As far as I can tell It's these lines in the log that seem to be calling a shutdown.

Code:
Wed 9/9 9:22:24.441 [Thread-88@e90b51] [[SageTCPServer-Player:9279]]: EXCEPTION java.net.BindException: Address already in use: JVM_Bind AT java.net.DualStackPlainSocketImpl.bind0(Native Method)
Wed 9/9 9:22:24.442 [Thread-88@e90b51] java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
Wed 9/9 9:22:24.442 [Thread-88@e90b51] java.net.AbstractPlainSocketImpl.bind(Unknown Source)
Wed 9/9 9:22:24.444 [SageTV Shutdown@5508ab] SageTV SHUTDOWN is activating!
Not sure how to continue troubleshooting this.
Modify the source code in the sage.SageTV.java file where it prints out "SageTV SHUTDOWN is activating!" and right at that point have it call:

sage.AWTThreadWatcher.dumpThreadStates();

Then it'll print out the stacks of all the Java threads and you can find the one that's currently calling System.exit. I *think* that should work (because I'm pretty sure the thread that calls System.exit stays within that method until the VM has terminated so the stack trace should still show it while executing shutdown hooks).
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #9  
Old 09-09-2015, 01:12 PM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Ok, here is the log file that includes the dump. I'll look over it but posting it here for others to look at.
Attached Files
File Type: zip sagetv_0.zip (110.3 KB, 101 views)
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #10  
Old 09-09-2015, 03:20 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
There are two of these:

"Starting a player on socket 9279"

The second one is crashing due to "Address already in use".

The first one was opened with 192.168.22.121. The second one is on 157.142.237.13 if that helps any.

Is there some kind of resource conflict between local extenders and the placeshifter client?
Reply With Quote
  #11  
Old 09-09-2015, 03:57 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Here's the offender:

Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] Thread[Thread-91,1,main]
Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] java.lang.Thread.start0(Native Method)
Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] java.lang.Thread.start(Unknown Source)
Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] java.lang.ApplicationShutdownHooks.runHooks(Unknown Source)
Wed 9/9 14:08:29.749 [SageTV Shutdown@1c0a1ce] java.lang.ApplicationShutdownHooks$1.run(Unknown Source)
Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Shutdown.runHooks(Unknown Source)
Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Shutdown.sequence(Unknown Source)
Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Shutdown.exit(Unknown Source)
Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Runtime.exit(Unknown Source)
Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.System.exit(Unknown Source)
Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] sagetcpserver.TCPServerPlayer.run(TCPServerPlayer.java:91)
Wed 9/9 14:08:29.750 [SageTV Shutdown@1c0a1ce] java.lang.Thread.run(Unknown Source)

Error message from plugin before this:

Wed 9/9 14:08:29.656 [Thread-91@6777a] [[SageTCPServer-Player:9279]]: Starting a player on socket 9279
Wed 9/9 14:08:29.657 [Thread-91@6777a] [[SageTCPServer-Player:9279]]: EXCEPTION java.net.BindException: Address already in use: JVM_Bind AT java.net.DualStackPlainSocketImpl.bind0(Native Method)

So it's TCPServerPlayer's code that's doing it. Naughty plugin. It looks like it'll call System.exit() if it has a failure binding a socket to a specific port. You may have something else running on port 9279...killing that should solve the problem. Ideally though; the plugin would be fixed so that it doesn't do things like this...plugins should NEVER be calling System.exit().
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #12  
Old 09-10-2015, 07:36 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Yeah, we can chalk this up to a misbehaving plugin. Looks like the SageTCPServer plugin is holding open a bunch of ports. Disabling that plugin has fixed the issue. I guess I can live without the remote control app on my iDevices. I rarely use it anyway.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
HD200 causing Sagetv server software to crash? tvmaster2 SageTV Software 1 12-31-2013 08:33 AM
COmskip causing crash? mephista SageTV v7 Customizations 10 01-21-2011 08:16 PM
HD-PVR causing SageTV to Crash or sage.playbackexception:error (-4,0x80040217) Truxton Hardware Support 6 02-28-2010 06:33 PM
Imported Video causing Sage to Crash Ron SageTV Software 5 08-15-2009 06:52 AM
Windows Home Server causing Sage Service to start slowly jpaddock3000 SageTV Software 4 07-22-2009 11:14 AM


All times are GMT -6. The time now is 02:12 AM.


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