SageTV Community  

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

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #161  
Old 12-22-2010, 01:42 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by barney B.A. View Post
I have lots of plugins. I suppose it could be one of them, however I only ever had issues since installing sjq4. Could it be that there is another plugin not playing nicely with sjq4? I am willing to help any way I can. Be warned though that I am not a programmer and the extent of my scripting abilities ends with the dos prompt and notepad.
A bad interaction between plugins is possible - anything is possible with so many separate parts working together (i.e. many plugins). I mean the only way to track it down is to do a fresh install of just the core, run it for a few days and confirm that there is no signs of heap problems. Next, install SJQ by itself, use it, and see what happens. If there are no mem issues then start adding plugins one by one until we find the bad interaction, if one exists. Also, you'd have to install one plugin along side SJQ, use it for a few days then remove it and install the next, etc. There are just too many combinations once you start talking about more than a few additional plugins.

Part of the problem is that SJQ installs a lot of stuff as dependencies... Jetty and some jetty apps (remote APIs). It's a big beast on its own. Like I said, I stripped my system down to core + SJQ (and deps) and could not reproduce the issue. I've since added back some other plugins (SRE, SageAlert, various UI mods) and haven't had any issues since.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #162  
Old 12-25-2010, 12:59 PM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
EXE does not exist...

Just installed SJQ 4, set it up and getting the following error when a task runs "Exe does not exist or cannot be executed! [C:\Program Files\SageTV\SageTV\jre\bin\java.exe] in the Log for the Test Script...

Any suggestions?

Thanks,
Matt
__________________
Server: SageTV 7.1.9, WHS, Super Micro X8SAX, i7 920, 3GB Ram
Storage: 4 TB SATA Pool
Clients: 1 x HD-100, 2 x HD-200, 1 x HD-300
Tuners: Hauppauge PVR 500, 2 x HD-PVR, USB-IRT
Reply With Quote
  #163  
Old 12-25-2010, 11:09 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by matterw View Post
Just installed SJQ 4, set it up and getting the following error when a task runs "Exe does not exist or cannot be executed! [C:\Program Files\SageTV\SageTV\jre\bin\java.exe] in the Log for the Test Script...

Any suggestions?

Thanks,
Matt
It would appear that the bundled JRE with SageTV is not laid out in a standard way. Where is the java.exe located under C:\Program Files\SageTV\SageTV\jre\? Either way, the expected path is hardcoded so I'm going to have to make a code change, but I'll need to know where it is.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #164  
Old 12-25-2010, 11:35 PM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
Quote:
Originally Posted by Slugger View Post
It would appear that the bundled JRE with SageTV is not laid out in a standard way. Where is the java.exe located under C:\Program Files\SageTV\SageTV\jre\? Either way, the expected path is hardcoded so I'm going to have to make a code change, but I'll need to know where it is.
It's interesting. I checked the directory C:\Program Files\SageTV\SageTV\jre\bin and could not find java.exe (my guess it was using the java.exe in c:\windows\system32 since that was in the path), so I renamed the jre directory under SageTV and set JAVA_HOME to c:\program files\Java\jre6 and now I get a different message -- "LOG4J: Configured Loggin for: sagex-api using file : sagex-api.log4j.properties javax.script.ScriptException: java.lang.NumberFormatException: null"

Any suggestions on this one?
__________________
Server: SageTV 7.1.9, WHS, Super Micro X8SAX, i7 920, 3GB Ram
Storage: 4 TB SATA Pool
Clients: 1 x HD-100, 2 x HD-200, 1 x HD-300
Tuners: Hauppauge PVR 500, 2 x HD-PVR, USB-IRT
Reply With Quote
  #165  
Old 12-26-2010, 12:18 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Did you delete the recording that was queued? If not, how did you queue the task? View the metadata for that task. Is there an SJQ4_ID variable set? Actually, I know there isn't, and that's the problem. This either happens because the recording has since been deleted or the task was not queued in response to a recording started event nor from the recording details screen. If there is no metadata for the task, just delete it because it'll never work. Requeue it from the recording details screen if it hasn't been deleted. Ensure there is proper metadata assigned to the task (SJQ4_TYPE=MediaFile and SJQ4_ID=nnnnnn, where nnnnnn is a valid integer).
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #166  
Old 12-26-2010, 12:38 AM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
Quote:
Originally Posted by Slugger View Post
Did you delete the recording that was queued? If not, how did you queue the task? View the metadata for that task. Is there an SJQ4_ID variable set? Actually, I know there isn't, and that's the problem. This either happens because the recording has since been deleted or the task was not queued in response to a recording started event nor from the recording details screen. If there is no metadata for the task, just delete it because it'll never work. Requeue it from the recording details screen if it hasn't been deleted. Ensure there is proper metadata assigned to the task (SJQ4_TYPE=MediaFile and SJQ4_ID=nnnnnn, where nnnnnn is a valid integer).
That looks like it fixed it -- I just Queued the Task manually. After looking at the threads it seems that I have the same confusion as bikesquid:

(
Quote:
Originally Posted by bikesquid View Post
My client now seems to be doing a comskip on a NEW recording, probably explains the 'null' error I was getting. In the good ol' days of v3 it simply scanned the directory and tackled anything without the .edl... I liked that, how can I get that process concept back? AND how can I get it to do the things left unprocessed by post update black hole?
)

I am used to SJQ just scanning the whole directory, but now it seems that the paradigm has changed, so I need to get used to it.

One other piece -- how does SJQ take care of removing old *.edl files when the recording is removed. Is that another script?

******
Update:
******
Based on your response earlier in this thread, I found the answer to my question on how to clean up the old files...:

Quote:
Originally Posted by Slugger View Post
Best way to get the file cleaner: install my Sage Artifact Delete plugin. If you would rather implement it in SJQ then open a ticket and I'll write a tutorial on one way to do it (but it probably won't be before Christmas).
__________________
Server: SageTV 7.1.9, WHS, Super Micro X8SAX, i7 920, 3GB Ram
Storage: 4 TB SATA Pool
Clients: 1 x HD-100, 2 x HD-200, 1 x HD-300
Tuners: Hauppauge PVR 500, 2 x HD-PVR, USB-IRT

Last edited by matterw; 12-26-2010 at 12:45 AM. Reason: Found the answer
Reply With Quote
  #167  
Old 12-26-2010, 08:03 AM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
IOError java.io.UTFDataFormatException

When I looked at the sjqagent.log file today I see quite a few "IOError
java.io.UTFDataFormatException"
errors.

Attached is a piece of the SJQ Agent log file. Can you provide any reason or root cause for this error?

Thanks,
Matt
Attached Files
File Type: txt sjqagent.12262010.txt (2.5 KB, 159 views)
__________________
Server: SageTV 7.1.9, WHS, Super Micro X8SAX, i7 920, 3GB Ram
Storage: 4 TB SATA Pool
Clients: 1 x HD-100, 2 x HD-200, 1 x HD-300
Tuners: Hauppauge PVR 500, 2 x HD-PVR, USB-IRT
Reply With Quote
  #168  
Old 12-26-2010, 08:38 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Define "quite a few"? Always? Only when comskip is the task that's being run? Any other tasks? All tasks? If it's just comskip that's causing it then I'd say that output from comskip is causing it. If it's every task then I'd ask what version of Java you're running because the code that's failing is JRE code (I pass the output of the exe to a JRE class, which is then throwing the exception). If it's more than one exe, but not all exes then that's a whole different scenario requiring investigation.

Is there a matching error in the sjq.log file for the SJQ server at the same time as the client error? I wouldn't expect one, but I'd be curious to know if there is one.

With that said, tasks are still completing successfully, right? The logging of output is done separately from the actual command execution and so even though the logging is failing, the task should still be running properly and being marked as completed. Assuming that's true, then it's not a fatal error (other than task output is not being logged back to the SJQ db), but I'd still like some more details so that I can try to track it down if it's indeed a problem that I can address in my code.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #169  
Old 12-26-2010, 02:19 PM
matterw matterw is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: New Jersey
Posts: 169
Send a message via AIM to matterw
Quote:
Originally Posted by Slugger View Post
Define "quite a few"? Always? Only when comskip is the task that's being run? Any other tasks? All tasks? If it's just comskip that's causing it then I'd say that output from comskip is causing it. If it's every task then I'd ask what version of Java you're running because the code that's failing is JRE code (I pass the output of the exe to a JRE class, which is then throwing the exception). If it's more than one exe, but not all exes then that's a whole different scenario requiring investigation.

Is there a matching error in the sjq.log file for the SJQ server at the same time as the client error? I wouldn't expect one, but I'd be curious to know if there is one.

With that said, tasks are still completing successfully, right? The logging of output is done separately from the actual command execution and so even though the logging is failing, the task should still be running properly and being marked as completed. Assuming that's true, then it's not a fatal error (other than task output is not being logged back to the SJQ db), but I'd still like some more details so that I can try to track it down if it's indeed a problem that I can address in my code.
It's happened 13 times since I left it last night... Seems like a lot to me. I attached both logs in an attempt to give you more insight into the issue. If there is more logging that could help, then let me know and I'll be more than happy to provide...

The JRE version is 1.6.0_23-b05.

/Matt
Attached Files
File Type: zip sjq-logs.zip (231.5 KB, 132 views)
__________________
Server: SageTV 7.1.9, WHS, Super Micro X8SAX, i7 920, 3GB Ram
Storage: 4 TB SATA Pool
Clients: 1 x HD-100, 2 x HD-200, 1 x HD-300
Tuners: Hauppauge PVR 500, 2 x HD-PVR, USB-IRT

Last edited by matterw; 12-26-2010 at 02:23 PM. Reason: Add JRE version
Reply With Quote
  #170  
Old 12-26-2010, 03:49 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Some research has yielded the likely cause of the issue. It seems UTF-8 encoded strings used in Java IO streams can only be 64K max in length. I'm assuming, from some limited testing/experience, the output of comskip is greater than 64K and is causing the issue.

You can star this ticket if you want to be informed of progress on the fix. I'm still assuming that tasks are properly completing and therefore this isn't a critical bug and so it will be fixed some time after the new year.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #171  
Old 12-26-2010, 06:27 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by Slugger View Post
I'm assuming, from some limited testing/experience, the output of comskip is greater than 64K and is causing the issue.
@matterw - It will only generate that much if verbose is set to 10. Edit the comskip.ini and try setting verbose to 0 to suppress all of the text.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #172  
Old 12-27-2010, 11:20 AM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Is there a way to have the test script set a variable that is then passed to the executable? I'm trying to have the test script check the channel number and use different profiles in ShowAnalyzer based on the channel number. My theory is to set a variable that gets added as a command-line argument to the executable.
Reply With Quote
  #173  
Old 12-27-2010, 11:34 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
There's no way to that now. As an alternative, you could write a property to wiz.bin in the test script (via Configuration.SetServerProperty()) and then read that prop back in the exe (only if the exe is itself a groovy script, you could wrap other exes in a groovy script, if necessary). Open a ticket to allow mods to exe cmd args via test script. Not sure how feasible it is, but if there's a ticket I'll at least investigate it (after the holidays).
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #174  
Old 12-27-2010, 10:45 PM
hchucky hchucky is offline
Sage Advanced User
 
Join Date: Jun 2004
Posts: 140
V3 Uninstall??

Slugger, I've been running v3 for a while. Recently I upgraded SJQ to v4 however v3 kept running. Today I decided to look into v4 further. I installed the v4 plugin client and GUI plugin. I uninstalled the v3 agent which was running as a Windows service.

I can still get to v3 through the web GUI. Shouldn't v3 have been cleaned up\removed (accept the v3 win agent) when v4 was installed?

Thx,
HC
Reply With Quote
  #175  
Old 12-27-2010, 10:56 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by hchucky View Post
Slugger, I've been running v3 for a while. Recently I upgraded SJQ to v4 however v3 kept running. Today I decided to look into v4 further. I installed the v4 plugin client and GUI plugin. I uninstalled the v3 agent which was running as a Windows service.

I can still get to v3 through the web GUI. Shouldn't v3 have been cleaned up\removed (accept the v3 win agent) when v4 was installed?

Thx,
HC
Yes, if you installed v3 as a Sage v7 plugin. If you just carried over the v6 version of the plugin when upgrading to v7 then it would not have auto cleaned itself. If that's the case, just remove the sjq.context.xml file from SageTV/jetty/contexts/, that will uninstall and stop v3 from running.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #176  
Old 12-27-2010, 11:50 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Sorry, this has to be a dumb question but how do you edit tasks if you have made a typo and how do you delete tasks?

Also - by default comskip seems to return a code that indicates failure as far as SJQ is concerned. I fixed this in the past (ie. SJQ2-3) using a batch file that changes the return code - but now I am getting a "blue" bullet in completed tasks, even though it seems to have completed ok.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #177  
Old 12-28-2010, 12:36 AM
hchucky hchucky is offline
Sage Advanced User
 
Join Date: Jun 2004
Posts: 140
Quote:
Originally Posted by Slugger View Post
Yes, if you installed v3 as a Sage v7 plugin. If you just carried over the v6 version of the plugin when upgrading to v7 then it would not have auto cleaned itself. If that's the case, just remove the sjq.context.xml file from SageTV/jetty/contexts/, that will uninstall and stop v3 from running.
Thanks Slugger!

HC
Reply With Quote
  #178  
Old 12-28-2010, 12:39 AM
hchucky hchucky is offline
Sage Advanced User
 
Join Date: Jun 2004
Posts: 140
Quote:
Originally Posted by wayner View Post
Sorry, this has to be a dumb question but how do you edit tasks if you have made a typo and how do you delete tasks?

Also - by default comskip seems to return a code that indicates failure as far as SJQ is concerned. I fixed this in the past (ie. SJQ2-3) using a batch file that changes the return code - but now I am getting a "blue" bullet in completed tasks, even though it seems to have completed ok.
You can edit tasks in the sjqagent.properties file located in the SageTV\plugins\sjq-agent\conf directory.

I think blue= good, but I may be wrong...this is all new to me as well.

HC
Reply With Quote
  #179  
Old 12-28-2010, 07:40 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by wayner View Post
Sorry, this has to be a dumb question but how do you edit tasks if you have made a typo and how do you delete tasks?

Also - by default comskip seems to return a code that indicates failure as far as SJQ is concerned. I fixed this in the past (ie. SJQ2-3) using a batch file that changes the return code - but now I am getting a "blue" bullet in completed tasks, even though it seems to have completed ok.
Quote:
Originally Posted by hchucky View Post
You can edit tasks in the sjqagent.properties file located in the SageTV\plugins\sjq-agent\conf directory.

I think blue= good, but I may be wrong...this is all new to me as well.

HC
Blue is good. But you can also tell SJQ what return code range is acceptable via the task editor. Load up your clients in the GUI, then select the supported tasks and then edit them. There is a min/max return code setting, which is where you tell SJQ what the expected return codes are for the task. You can also edit the rest of the task's settings. You can also delete tasks from there as well.

Also, you can directly edit the sjqagent.properties file as well. You can edit this file while SJQ is running, there is no need to stop SJQ nor Sage to edit the file.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #180  
Old 12-28-2010, 11:33 AM
hchucky hchucky is offline
Sage Advanced User
 
Join Date: Jun 2004
Posts: 140
Manual Recordings..

Is there a way to disable the prompting for a Task and Trigger Event when setting up a manual recording?

HC
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
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
SJQv4: Technology Preview Slugger SageTV v7 Customizations 39 12-17-2010 01:17 PM
SageTV Plugin Developers: Any way to see stats for your plugin? mkanet SageTV Software 4 12-12-2010 10:33 PM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
SJQv4: Design Discussion Slugger SageTV v7 Customizations 26 10-18-2010 08:22 AM


All times are GMT -6. The time now is 07:11 PM.


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