eve-spyglass / spyglass

9 stars 9 forks source link

Non ASCII Chatlog names causes crash. #19

Closed tconnard closed 6 years ago

tconnard commented 6 years ago

Having a chatlog with non ASCII characters in its name causes spyglass to crash. This happens even when spyglass is not following that chat.

02/14 06:37:56|
02/14 06:37:56| ------------------- Spyglass 1.0.0 starting up -------------------
02/14 06:37:56|
02/14 06:37:58| Load jump bridges
02/14 06:37:58| Creating chat parser
02/14 06:37:59| Initializing contextual menus
02/14 06:37:59| Updating the map
02/14 06:38:00| Map setup complete
02/14 06:38:00| Setting new theme: light
02/14 06:38:00| Load jump bridges
02/14 06:38:00| Creating chat parser
02/14 06:38:00| Updating the map
02/14 06:38:00| Map setup complete
02/14 06:38:00| Load jump bridges
02/14 06:38:01| Creating chat parser
02/14 06:38:01| Updating the map
02/14 06:38:01| Map setup complete
02/14 06:38:01| Load jump bridges
02/14 06:38:01| Creating chat parser
02/14 06:38:01| Updating the map
02/14 06:38:01| Map setup complete
02/14 06:38:12| -- Unhandled Exception --
02/14 06:38:12|   File "spyglass.py", line 139, in <module>
    app = Application(sys.argv)
  File "spyglass.py", line 131, in __init__
    self.mainWindow = viui.MainWindow(chatLogDirectory, trayIcon, backGroundColor)
  File "E:\spyglass-1.0.0\src\vi\ui\viui.py", line 159, in __init__
    self.changeTheme(initialTheme)
  File "E:\spyglass-1.0.0\src\vi\ui\viui.py", line 474, in changeTheme
    self.rescanIntel()
  File "E:\spyglass-1.0.0\src\vi\ui\viui.py", line 337, in rescanIntel
    filePath = (str(self.pathToLogs) + str(os.sep) + str(file))

02/14 06:38:12| <type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\u261c' in position 0: ordinal not in range(128)
UNKNOWN314159 commented 6 years ago

I'm having the same issue. I run Spyglass and get an error dialog "Fatal Error!: Failed to execute script spyglass". When I hit OK, the program exits. Attached is my output log file. output.log

UNKNOWN314159 commented 6 years ago

It appears the issue can be avoided by resetting (deleting) the /EVE/spyglass/ folder where the program stores the .SQLITE3 file.

petsagouris commented 6 years ago

This problem seems to be easily solvable with this