SageTV Community  

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

Notices

Phoenix This forum is for discussing the user-created Phoenix custom interface for SageTV.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-04-2013, 08:26 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Not loading custom vfs file

I'm really not sure if this is really a phoenix issue, but I just came across this while re-installing my main client (hardware upgrades). Clean windows install, clean sagetvclient install. Upgraded STV, and installed weather plugin as prompted. then installed gemstone UI Mod, which in turn installed phoenix, and obviously a lot more. Gemstone loads up fine, and functions relatively fine - however, the gemstone vfs views are not being loaded in. The x-gemstone-vfs.xml file resides in C:\Program Files (x86)\SageTV\SageTV\STVs\Phoenix\vfs like it always has, but none of those views are present. installing BMT on the client has the views missing there as well. no reference to it is showing up in phoenix.log.

So, first guess: Phoenix is not looking for new xml file sin STVs/Phoenix/vfs anymore -> move the file to userdata/Phoenix/vfs and restart - no change.

Pour more detailed through phoenix log, and find a line mentioning that the cache is not changed, so it reimports that - apparently in lieu of searching for new vfs xml's. I delete the cache xml file from userdata/Phoenix/cache, restart the client, and it brings in the gemstone xml file perfectly fine.

Shut it back down, and move the gemstone file back to the STV/Phoenix/vfs location, and again, it doesn't import it, saying the cache is unchanged.

Delete the cache file again, and it works fine.

So, I'm thinking there's a bug in phoenix regarding the vfs cache file, and new xml files being ignored - not sure if this is a new or recently changed process.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #2  
Old 03-05-2013, 06:10 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
This is a bug... although not sure why it affected your gemstone view. I did have Jusjoken test this before I shipped the changes, and it appeared to have worked... but I guess not.

I verified that it was doing this for the bmt plugins
http://forums.sagetv.com/forums/showthread.php?t=60075

but I didn't think it would affect gemstone.

When phoenix starts, it is supposed to check the timestamps of ALL vfs files against the cached version, and if ANY of the files are newer, then it rebuilds the cached file, and then loads that file. That's obviously not working

This change happened in the last build, if I recall. There are some timing issues in how Phoenix resolves filters, sources, etc, that this build fixes... but breaks this.
Reply With Quote
  #3  
Old 03-05-2013, 08:35 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,727
I never tried a clean Gemstone install so I assume that's the issue that is not being handled with the cache check. Any manual update to the gemstone vfs according to my testing will force the vfs cache to rebuild.

k
Reply With Quote
  #4  
Old 03-05-2013, 08:52 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Yeah, perhaps this is coming out of doing a fresh install and direct install of gemstone. So, the first time phoenix is loaded, both vfs files are already there... not sure though, really.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #5  
Old 03-05-2013, 11:44 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by jusjoken View Post
I never tried a clean Gemstone install so I assume that's the issue that is not being handled with the cache check. Any manual update to the gemstone vfs according to my testing will force the vfs cache to rebuild.

k
Quote:
Originally Posted by Fuzzy View Post
Yeah, perhaps this is coming out of doing a fresh install and direct install of gemstone. So, the first time phoenix is loaded, both vfs files are already there... not sure though, really.
My "fix" for this will be to remove the cache check and rebuild the file anytime it is asked. It's a quick process anyways...
Reply With Quote
  #6  
Old 03-05-2013, 10:36 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stuckless View Post
My "fix" for this will be to remove the cache check and rebuild the file anytime it is asked. It's a quick process anyways...
I'd agree - I'm not sure what prompted the cache file anyways - I can't imagine the vfs building is very intensive.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #7  
Old 03-06-2013, 04:58 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
I'd agree - I'm not sure what prompted the cache file anyways - I can't imagine the vfs building is very intensive.
What "prompted" it was that there are timing issues in how sections of the VFS are processed. ie, if you override a core view/filter/group, etc, from another vfs file, then any core views that relied on that group/filter would still use the original and not the new one.

Since very few people (aside from myself) acutally create custom views (oe extend the behaviour of existing views, as I do) it's not a "bug" that would have been known to many people.

The solution was to process the vfs and resolve all the views/groups/filter, etc, and re-write the vfs into a single vfs file, and then load that file, and all the timing issues go away. Since this is an intermediate file, I decided to cache it. I agree... it didn't need to be cached... it was just easy to do so... and hard to do it right, apparently
Reply With Quote
  #8  
Old 03-06-2013, 07:14 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stuckless View Post
What "prompted" it was that there are timing issues in how sections of the VFS are processed. ie, if you override a core view/filter/group, etc, from another vfs file, then any core views that relied on that group/filter would still use the original and not the new one.

Since very few people (aside from myself) acutally create custom views (oe extend the behaviour of existing views, as I do) it's not a "bug" that would have been known to many people.

The solution was to process the vfs and resolve all the views/groups/filter, etc, and re-write the vfs into a single vfs file, and then load that file, and all the timing issues go away. Since this is an intermediate file, I decided to cache it. I agree... it didn't need to be cached... it was just easy to do so... and hard to do it right, apparently
Makes sense. So is this intermediate file references on every vfs lookup, or is it used from memory? if so, it seems like if it is being used from memory, it really doesn't need to be rendered down to a file, and you could load in the vfs files on startup (or view refresh), and just work from memory that way.

Somewhat related, but not really - is there a 'easy' way to have the vfs system managed via server side files alone, so the vfs files don't have to be duplicated to each client?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #9  
Old 03-06-2013, 08:13 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
Makes sense. So is this intermediate file references on every vfs lookup, or is it used from memory? if so, it seems like if it is being used from memory, it really doesn't need to be rendered down to a file, and you could load in the vfs files on startup (or view refresh), and just work from memory that way.
Yeah, I don't need to write it back to the filesystem, but I do, because it's the only real way that I can inspect the vfs entries and verify that things are gettnig loaded. ie, if you ceck that file, you'll see that in the header, I list ALL the files that contribute to this intermediate file. I can probably add an option to NOT create the file.

Quote:
Somewhat related, but not really - is there a 'easy' way to have the vfs system managed via server side files alone, so the vfs files don't have to be duplicated to each client?
There is no "easy" way, but I see what you saying... on each client, you need to have ALL vfs files if you want to use that view. Something I can look into.
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
Using the default STV in Custom STV Mode from custom STVs (v6.4 & later) Opus4 SageTV Studio 49 09-23-2011 05:50 PM
Loading SageMC cjalphonso SageMC Custom Interface 2 11-17-2009 10:59 AM
What is the easiest way to assign custom command to the custom button? thenewguy1979 SageTV Software 0 09-14-2008 01:13 PM
Help with loading .STV Athfar SageTV Customizations 8 09-18-2005 09:20 PM
Split file recordings bug in 2 pane view (no custom STV) -- fixable with Studio? Alex0230 SageTV Customizations 3 06-14-2004 08:06 PM


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


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