Stellaris

Stellaris

Stellaris Dashboard
Aelie 23 May, 2021 @ 10:29am
Unicode characters in names crash parser
Unicode characters in names crash the parser (this one is Ú)

concurrent.futures.process._RemoteTraceback: """ Traceback (most recent call last): File "concurrent\futures\process.py", line 239, in _process_worker File "stellarisdashboard\parsing\save_parser.py", line 268, in parse_save File "stellarisdashboard\parsing\save_parser.py", line 370, in parse_save UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 17010383: invalid continuation byte """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "stellarisdashboard\parse_existing_saves.py", line 24, in <module> File "stellarisdashboard\parse_existing_saves.py", line 16, in main File "stellarisdashboard\cli.py", line 116, in f_parse_saves File "stellarisdashboard\parsing\save_parser.py", line 239, in get_gamestates_and_check_for_new_files File "concurrent\futures\_base.py", line 444, in result File "concurrent\futures\_base.py", line 389, in __get_result UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 17010383: invalid continuation byte [20608] Failed to execute script parse_existing_saves
< >
Showing 1-7 of 7 comments
blubblubblobb  [developer] 25 May, 2021 @ 10:12am 
Hi, thanks for letting me know about this bug, I will look into it! I think there were some similar problems in the past.

Would you be able to send me a save file that causes this crash? It would help me a lot. (for example by email to blubblubblobb@gmail.com)
blubblubblobb  [developer] 29 May, 2021 @ 2:50am 
Thanks, I changed to a different encoding which seems to work (let's hope it's the right one).

Unfortunately this specific save file still fails for a different reason: there seems to be this event

scope={ type=country id=52 random={ 0 3989503670 } from={ type=country id=52 random={ 0 385529837 } from={ type=fleet id=128 random={ 0 939942291 } from={ type=fleet id=128 random={ 0 3449065047 } from={ ....
nested 1000+ layers deep, which breaks the parser :-/

(google suggests it's related to the more events mod)

Right now I can't fix it, but I might be able to take a look at that problem later.
Aelie 29 May, 2021 @ 9:11am 
sure! i dont know if events are important for the dashboard though, you might just want to abort/skip events that go too many layers deep
blubblubblobb  [developer] 30 May, 2021 @ 2:39am 
Yea that's actually a good suggestion, after some depth is exceeded the parser could match up the braces to skip blocks like this. I'll try that.
blubblubblobb  [developer] 30 May, 2021 @ 3:47am 
Nice, it was easier than I thought and seems to work well.
blubblubblobb  [developer] 30 May, 2021 @ 4:29am 
I made a release with the bugfixes, you can get it here https://github.com/eliasdoehne/stellaris-dashboard/releases

Let me know if you find any more problems!
< >
Showing 1-7 of 7 comments
Per page: 1530 50