Solved JpegIO - Error 53 - understanding the problem
#1
solution in post #3

Hey. While i'm coding Addons for xbmc/kodi since ~2009 this error came up last days the first time. searching the net didnt gave me an appropiate answer.

(*) sometimes its been solved disabling firewall/proxy/av-software
(*) its often discussed in conjunction with newer win and android
(*) some links lead to a lib named bitmapfactory used by other tools/apps as well.
(*) affected systems dont show any picture from this url, functional systems show them all.. so its a yes/no problem - not a sometimes/maybe-thing.

* it seems, this lib cant use a jpg successfully, if its chunked
* is it a bug?
* do i fill the directory-item with wrong data?
* those picture-links are shown appropriate in the browser, on affected systems as well.

my addon (burningseries 1.4.6) is able to load these thumbs on some OS/Kodi-Versions (fi Helix14.2 on Win7), on other it throws this error(Win8.1), the item-picture stays empty.

part of a kodi.log
Code:
..
15:45:44 T:6324  NOTICE: [bs][readWatchedData] Familie : [B]Sibel & Max[/B] not found in watched.data
15:45:44 T:6324  NOTICE: http://s.bs.to/img/cover/193.jpg
15:45:44 T:6324  NOTICE: [bs][readWatchedData] Familie : [B]Türkisch für Anfänger[/B] not found in watched.data
15:45:44 T:6324  NOTICE: http://s.bs.to/img/cover/2755.jpg
15:45:44 T:6324  NOTICE: [bs][readWatchedData] Familie : [B]Um Himmels Willen[/B] not found in watched.data
15:45:44 T:6324  NOTICE: http://s.bs.to/img/cover/2094.jpg
15:45:44 T:6324  NOTICE: [bs][readWatchedData] Familie : [B]Unser Charly[/B] not found in watched.data
15:45:44 T:6324  NOTICE: http://s.bs.to/img/cover/2225.jpg
15:45:44 T:6324  NOTICE: [bs][readWatchedData] Familie : [B]Unternehmen Rentnerkommune[/B] not found in watched.data
15:45:44 T:6324  NOTICE: http://s.bs.to/img/cover/312.jpg
15:45:44 T:6324  NOTICE: [bs][readWatchedData] Familie : [B]Wildfire[/B] not found in watched.data
15:45:44 T:6324  NOTICE: [bs][showContent] --- ok
15:45:44 T:8000  NOTICE: Thread BackgroundLoader start, auto delete: false
15:45:46 T:5924 WARNING: JpegIO: Error 53: Not a JPEG file: starts with 0x%02x 0x%02x
15:45:46 T:5924   ERROR: Texture manager unable to load image from memory
15:45:46 T:2652 WARNING: JpegIO: Error 53: Not a JPEG file: starts with 0x%02x 0x%02x
15:45:46 T:2652   ERROR: Texture manager unable to load image from memory
15:45:46 T:4604 WARNING: JpegIO: Error 53: Not a JPEG file: starts with 0x%02x 0x%02x
15:45:46 T:4604   ERROR: Texture manager unable to load image from memory
15:45:46 T:7176 WARNING: JpegIO: Error 53: Not a JPEG file: starts with 0x%02x 0x%02x
15:45:46 T:7176   ERROR: Texture manager unable to load image from memory
..

all informations appreciated.
regards chmee
Reply
#2
Can you somehow provide suche a broken image? (this image is no valid jpeg anymore when it hits kodi. It must be corrupted during transfer or so.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
the server sends compressed data, the curl client does not use encoding value from the header for unknown reasons.

as a workaround you can append |encoding=gzip to the urls.

just to make it explicit. in my tests

Code:
kodi-send --action="ShowPicture(http://s.bs.to/img/cover/2094.jpg)"
will fail but
Code:
kodi-send --action="ShowPicture(http://s.bs.to/img/cover/2094.jpg|encoding=gzip)"

will work.
Reply
#4
thanks a lot. indeed. is it worth to mark it as bug somewhere?
Reply

Logout Mark Read Team Forum Stats Members Help
JpegIO - Error 53 - understanding the problem1