Bugzilla – Bug 7337
Jive's method of determining last chunk to fetch is broken
Last modified: 2009-09-08 09:18:09 UTC
The following code is used to determine the last chunk of data to fetch: -- load last chunk local lastKey = math.modf(self.last_chunk.count / BLOCK_SIZE) if not self.store[lastKey] then return lastKey * BLOCK_SIZE, BLOCK_SIZE end This fails if you have a count that is larger than block size (200) and is a multiple of block size. To reproduce, set your block size to 10 and go to LMA -> Recent Artists, which contains 50 items. Jive will fetch chunk '0 10' and then try to fetch '50 10' which returns no results and crashes DB. There will be some number of people out there who have, say, exactly 400 artists and will have a completely broken artists menu.
Do you have a patch, andy?
No Ben and I are looking at it.
Created attachment 2997 [details] patch to fix erroneously requesting null last chunk
fixed in jive r2057, 7.0 branch
This bug has recently been fixed in the latest release of SqueezeCenter 7.0.1 Please try that version, if you still see the error, then reopen this bug. To download this version, please navigate to: http://www.slimdevices.com/su_downloads.html