![]() |
|
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. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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... |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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... |
#4
|
||||
|
||||
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 |
#5
|
||||
|
||||
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 Founder of SageTV |
#6
|
|||
|
|||
Rolling over at 500M will definitely suffice. Doing so means you won't hear from me about this again until approximately July, 2109.
![]() 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... |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
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 |