samheg / romcollectionbrowser

Automatically exported from code.google.com/p/romcollectionbrowser
GNU General Public License v2.0
0 stars 0 forks source link

unicode characters in synopsis file cause crash #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Update database with an entry that has certain unicode characters

For instance, in a file with "René van den Enden" as the developer of a game, 
RCB crashed with the following error:

Error:
10:04:50 T:140305833707792 M:3107155968  NOTICE: self.log("resolved path from 
developer name: " +pathnameFromDeveloper, util.LOG_LEVEL_INFO)
10:04:50 T:140305833707792 M:3107155968  NOTICE:   File 
"/home/mediapc/.xbmc/scripts/Rom Collection Browser 
V0.5/resources/lib/dbupdate.py", lin
e 574, in log
10:04:50 T:140305833707792 M:3107155968  NOTICE: self.logFile.write(prefix + 
message+"\n")           
10:04:50 T:140305833707792 M:3107155968  NOTICE: UnicodeEncodeError
10:04:50 T:140305833707792 M:3107155968  NOTICE: :
10:04:50 T:140305833707792 M:3107155968  NOTICE: 'ascii' codec can't encode 
character u'\xe9' in position 87: ordinal not in range(128)
10:04:50 T:140305833707792 M:3107155968   ERROR: Scriptresult: Error
10:04:50 T:140305833707792 M:3107147776   ERROR: ClearBlock: Trying to clear 
non existent block /home/mediapc/.xbmc/scripts/Rom Collection Brows
er V0.5

In addition to "é", I have encountered this error with "²" (superscript). 

It appears that the crash is only related to error logging?

What version of the product are you using? On what operating system?
RCB 0.5, 64 bit linux

Please provide any additional information below.

Text of problematic synopsis (courtesy of Wimpy's database):

*
245D3533
Pong
Platform: Magnavox Odyssey²
Region: Homebrew
Media: Cartridge
Controller: Odyssey² Joystick
Genre: Sports - Tennis
Release Year: 2004
Developer: René van den Enden
Publisher: Packrat Video Games
Players: 2 VS
_________________________
*
It's a wonder that Magnavox never released pong for the Odyssey 2 back in the 
day. Rene van den Enden has done an excellent job with this game of speed and 
skill. Play solo or against an opponent in this blast from the past! There are 
11 variations of Pong, from Squash to Tennis, to the original classic and more. 
Keep the ball in play as long as possible for the winning high-score or best 
time! Significant to this release is that this cartridge version is 
significantly better than previous releases. The game is now 4K and offers many 
more Pong games and variations. 

Original issue reported on code.google.com by vey...@gmail.com on 18 Jul 2010 at 12:14

GoogleCodeExporter commented 9 years ago
I think that I have fixed this one, too. But I will test this with the current 
version again.

Original comment by maloep on 31 Jul 2010 at 7:13

GoogleCodeExporter commented 9 years ago

Should be fixed in 0.7.8/9

Original comment by maloep on 7 Dec 2010 at 9:24