Skip to content

Character maps to <undefined> #8

@zsoi

Description

@zsoi

Unity Version: 2019.3.8.f1 (Win64)
Analyzer Version: master (49396c2)
Addressables Version: 1.7.5
SBP Version: 1.5.10
Python: 3.8.2 (Win64)

I've ran the analyzer over our set of asset bundles which are generated by Addressables and at least one bundle could not be parsed properly:

Traceback (most recent call last):
  File ".\analyzer.py", line 1450, in <module>
    main()
  File ".\analyzer.py", line 78, in main
    objs = p.parse(datafile + ".txt")
  File ".\analyzer.py", line 145, in parse
    data = f.read()
  File "[..]\Python38\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 21026952: character maps to <undefined>

Beforehand, some warnings about a unhandled type were printed.
Maybe the converted bundle files should be handled as UTF-8?

The analyzer just exits when it reaches this error. Maybe it should continue parsing the rest of the bundles, only printing a warning/error for this bundle?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions