Notalib / LYT

m.e17.dk
GNU Lesser General Public License v3.0
10 stars 12 forks source link

ReferenceError: Can't find variable: deferred #527

Closed simmoe closed 10 years ago

simmoe commented 11 years ago

When I try to open some of the books on my shelve, they don't open as expected, instead the loader icon stays on.

This happens only on two of ten books on my shelve - regardless of whether they are full text or books I've heard before. But it may happen that I open a book once, and it works, but second time i load it from shelve, it doesn't. When the issue has arrived the player is unusable, the page needs a reload before it works again

The log displays the following on book 36736 (the deferred error is on last line)

[70212] Player: resuming from lastmark cjgw000D.smil#sfe_par_0013_0024, smilOffset 0.002
log.js:47[70212] Section: loading("cjgw000D.smil")
log.js:47[70213] DTB: Getting: http://test.m.e17.dk/DodpFiles/10034974/36736/cjgw000D.smil (2 attempts left) [forceclose ON]
log.js:47[70214] Playlist: load: queue segment (N/A)
log.js:168DTB: Got: http://test.m.e17.dk/DodpFiles/10034974/36736/cjgw000D.smil
log.js:47[70943] Segment: loading cjgw000D.smil#sfe_par_0013_0024
log.js:47[70944] DTB: Getting: http://test.m.e17.dk/DodpFiles/10034974/36736/36736.htm (2 attempts left) [forceclose ON]
log.js:47[71617] DTB: Coercing http://test.m.e17.dk/DodpFiles/10034974/36736/36736.htm into HTML
log.js:168DTB: Got: http://test.m.e17.dk/DodpFiles/10034974/36736/36736.htm
log.js:168Segment: cjgw000D.smil#sfe_par_0013_0024 finished extracting text, html and loading images
log.js:47[71632] Playlist: load: set currentSegment to [cjgw000D.smil#sfe_par_0013_0024, 154.998, 162.598, http://test.m.e17.dk/DodpFiles/10034974/36736/13_Taynikmaens_kraft.mp3]
log.js:47[71632] Player: seekSegmentOffset: play cjgw000D.smil#sfe_par_0013_0024, offset 0.002000000000066393
log.js:47[71633] Player: seekSegmentOffset: load http://test.m.e17.dk/DodpFiles/10034974/36736/13_Taynikmaens_kraft.mp3
log.js:47[73876] Player: seekSegmentOffset: got offset out of bounds: segment start is 154.998
player.js:278ReferenceError: Can't find variable: deferred
mzedeler commented 11 years ago

This seems to work now. @simmoe?

simmoe commented 11 years ago

Can't reproduce on live - can't test on http://test.m.e17.dk/lyt-2.0.0_010 (server don't respond)

mzedeler commented 11 years ago

@katiakn + @KRW-nota: can you reproduce this?

saebekassebil commented 10 years ago

No longer relevant, closing