Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XBMC 12.1 Issue #2

Closed
kuruoujou opened this issue Apr 18, 2013 · 4 comments
Closed

XBMC 12.1 Issue #2

kuruoujou opened this issue Apr 18, 2013 · 4 comments
Assignees
Labels

Comments

@kuruoujou
Copy link
Owner

There appears to be an issue with XBMC 12.1. Report received via e-mail. Possible cause is python JSON libraries, or what's passed into them. Needs further testing.

Target operating system appears to be Windows Vista, 7, or 8. Actual OS wasn't reported in e-mail.

Python error, as reported, follows:

10:30:21 T:4036   ERROR: EXCEPTION Thrown (PythonToCppException) :
-->Python callback/script returned the following error<--
 - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
 Error Type: <type 'exceptions.UnicodeDecodeError'>
 Error Contents: 'utf8' codec can't decode byte 0xe2 in position 198: invalid continuation byte Traceback (most recent call last):
 File "C:\Users\%username%\AppData\Roaming\XBMC\addons\script.xbmal\default.py",
line 141, in <module>
w = MainDiag()
 File "C:\Users\%username%\AppData\Roaming\XBMC\addons\script.xbmal\default.py",
line 89, in __init__
   mappings = lg.generateList(pDialog)
 File "C:\Users\%username%\AppData\Roaming\XBMC\addons\script.xbmal\default.py", line 42, in generateList
   searchResults =self.a.search(season[0]['showtitle'].encode('ascii', 'ignore'))
  File "C:\Users\%username%\AppData\Roaming\XBMC\addons\script.xbmal\resources\lib\myanimelist.py", line 104, in search
  response_data = json.loads(response)
  File "C:\Program Files (x86)\XBMC\system\python\Lib\json\__init__.py", line 307, in loads
   return _default_decoder.decode(s)
  File "C:\Program Files (x86)\XBMC\system\python\Lib\json\decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
 File "C:\Program Files (x86)\XBMC\system\python\Lib\json\decoder.py", line 336, in raw_decode
    obj, end = self._scanner.iterscan(s, **kw).next()
 File "C:\Program Files (x86)\XBMC\system\python\Lib\json\scanner.py", line 55, in iterscan
     rval, next_pos = action(m, context)
 File "C:\Program Files (x86)\XBMC\system\python\Lib\json\decoder.py", line 217, in JSONArray
    value, end = iterscan(s, idx=end, context=context).next()
 File "C:\Program Files (x86)\XBMC\system\python\Lib\json\scanner.py", line 55, in iterscan
     rval, next_pos = action(m, context)
File "C:\Program Files (x86)\XBMC\system\python\Lib\json\decoder.py", line 183, in JSONObject
     value, end = iterscan(s, idx=end, context=context).next()
File "C:\Program Files (x86)\XBMC\system\python\Lib\json\scanner.py", line 55, in iterscan
 rval, next_pos = action(m, context)
File "C:\Program Files (x86)\XBMC\system\python\Lib\json\decoder.py", line 155, in JSONString
     return scanstring(match.string, match.end(), encoding, strict)
  UnicodeDecodeError: 'utf8' codec can't decode byte 0xe2 in position 198: invalid continuation byte
 -->End of Python script error report<--
@ghost ghost assigned kuruoujou Apr 18, 2013
@kuruoujou
Copy link
Owner Author

Same error in XBMC 11 according to same user after downgrading, appears to be an issue with python and windows, now:

23:37:16 T:5928   ERROR: Error Type: <type 'exceptions.UnicodeDecodeError'>
23:37:16 T:5928   ERROR: Error Contents: 'utf8' codec can't decode byte
0xe2 in position 198: invalid continuation byte
23:37:16 T:5928   ERROR: Traceback (most recent call last):
                                              File
"C:\Users\%username%\AppData\Roaming\XBMC\addons\script.xbmal\default.py",
line 141, in <module>
                                                w = MainDiag()
                                              File
"C:\Users\%username%\AppData\Roaming\XBMC\addons\script.xbmal\default.py",
line 89, in __init__
                                                mappings =
lg.generateList(pDialog)
                                              File
"C:\Users\%username%\AppData\Roaming\XBMC\addons\script.xbmal\default.py",
line 42, in generateList
                                                searchResults =
self.a.search(season[0]['showtitle'].encode('ascii', 'ignore'))
                                              File
"C:\Users\%username%\AppData\Roaming\XBMC\addons\script.xbmal\resources\lib\myanimelist.py",
line 104, in search
                                                response_data =
json.loads(response)
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\__init__.py", line 307, in loads
                                                return
_default_decoder.decode(s)
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\decoder.py", line 319, in decode
                                                obj, end =
self.raw_decode(s, idx=_w(s, 0).end())
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\decoder.py", line 336, in raw_decode
                                                obj, end =
self._scanner.iterscan(s, **kw).next()
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\scanner.py", line 55, in iterscan
                                                rval, next_pos =
action(m, context)
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\decoder.py", line 217, in JSONArray
                                                value, end = iterscan(s,
idx=end, context=context).next()
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\scanner.py", line 55, in iterscan
                                                rval, next_pos =
action(m, context)
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\decoder.py", line 183, in JSONObject
                                                value, end = iterscan(s,
idx=end, context=context).next()
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\scanner.py", line 55, in iterscan
                                                rval, next_pos =
action(m, context)
                                              File "C:\Program Files
(x86)\XBMC\system\python\Lib\json\decoder.py", line 155, in JSONString
                                                return
scanstring(match.string, match.end(), encoding, strict)
                                            UnicodeDecodeError: 'utf8'
codec can't decode byte 0xe2 in position 198: invalid continuation byte

kuruoujou added a commit that referenced this issue Apr 27, 2013
…nment, as that seems to be consistant among issues.
@nille02
Copy link

nille02 commented Apr 27, 2013

No Luck with this changes.

@kuruoujou
Copy link
Owner Author

I just tried to reproduce with a fresh install of xbmc 12.1 and xbmal in windows, and was unable to. As the issue seems to be in generating mappings, it's possible one of the shows is causing this issue - probably something with a non-standard character.

So, in order to help me figure out where the issue is at, could you (or someone running into this issue) replace your script.xbmal folder with the one I just uploaded and try to generate the mapping list again? It will fail, but it should output every show it maps before it tries to map it. When you do, could you paste your xbmc.log file to http://xbmclogs.com/, and submit the link as a comment (or email it to me directly if you don't want anyone else to see it, for whatever reason)?

Thanks for your help in this.

@nille02
Copy link

nille02 commented Apr 27, 2013

The normal movie scaper get in troubble if an Movie has the letter öäü or ß in his name.

You got an mail with the log file

kuruoujou added a commit that referenced this issue Apr 27, 2013
…o ascii, otherwise it will fail out. Still debugging issue #2.
kuruoujou added a commit that referenced this issue Apr 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants