SageTV Community  

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

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-28-2009, 07:31 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
All object ids reset!?

Sometime after Jul 24, 0:07 EDT all the object ids in my wiz.bin were changed. This last recording had MediaFile ID 10016738 then the next recording had media file id 164157. Is this expected behaviour or is this a side effect of upgrading to 6.6.1? My only problem is that all the existing objects have had their id numbers changed so in my other plugins where I refer to a favourite by id number I now get a null pointer in return because Sage has decided to renumber all the objects. If the id counter needed to be reset for some reason then that's fine, but why renumber existing objects? Why not just reset the counter for newly created objects? Is there anyway to get the previous id number of an object or is any reference to an object by its id simply invalid now?
__________________
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
  #2  
Old 07-28-2009, 09:34 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
IDs can be resequenced when SageTV needs to do so, so it is expected.

- 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-28-2009, 09:42 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Existing objects (specifically favourites) are also renumbered by design during this process? Is there anyway to get the old id so external references (i.e. references made by plugins) can also be remapped? Undoubtedly, this unannounced, in the sense that plugins have no way of being told that it is happening, remapping by Sage must break quite a few plugins (I know if breaks some of mine).
__________________
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
  #4  
Old 07-29-2009, 01:42 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Yeah, I get burned by this periodically as well, and it's pretty annoying when it happens. In my experience it can happen not just when you upgrade to a new version, but potentially any time you restart the service. I have yet to find a good workaround; unfortunately there just doesn't seem to be any sort of long-term invariant way for third-party apps to refer to database objects.

If renumbering is unavoidable, it sure would be nice if there were some kind of hook or callback function that could be passed a Map from old ID into new ID for all renumbered objects. Or more crudely, just dump all the old->new ID pairs to a text file and let plugins check the timestamp and update their data files appropriately.

At the very least, there should be a note in the documentation for API methods such as GetFavoriteID, GetMediaFileID, et al. indicating that the IDs are not stable long-term.
__________________
-- Greg
Reply With Quote
  #5  
Old 07-29-2009, 11:22 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
There's another solution which should realistically eliminate the need for this to occur. We'll change the rollover point to be 500,000,000 instead of 10,000,000 so it'll take 50 times longer to occur (which should mean it'd take about the lifespan of a person to occur).
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #6  
Old 07-29-2009, 11:43 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Rolling over at 500M will definitely suffice. Doing so means you won't hear from me about this again until approximately July, 2109. I'd say I won't be around by then, but I'll put a little faith in modern medicine and say there's an outside shot (slim, but not 0%).

Is this rollover change something we can expect in an upcoming beta or further down the road?
__________________
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
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
ERROR (-12): There was a null object requested to playback rybarra SageTV Software 9 11-11-2012 09:32 AM
exporting watched episode IDs drewg SageTV Customizations 0 07-09-2009 03:47 PM
ActiveX Com Object danward79 SageTV Studio 2 04-30-2006 02:04 PM
latest beta abandons new channel ids in EPG jimbobuk SageTV Beta Test Software 0 05-25-2003 04:47 PM


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


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