Skip to content

Reverence crashes on attempt to access values of mapSolarSystemContentCache table #24

Description

@DarkFenX

This 'table' is FSD_MultiIndex which is fairly new to me; i tried to access it multiple ways:

  1. .itervalues()
  2. .iteritems()
  3. various getters (Get, GetIfExists, get, [key])

All of them work, but once i get my hands on FSD_Object (e.g. the one keyed with 30000001 in this table), reverence crashes with following traceback:

Traceback (most recent call last):
  File "run_json.py", line 70, in <module>
    table_data = miner.get_table(table_name)
  File "/home/dfx/src/eve/phobos/miner/bulkdata.py", line 49, in get_table
    lines = EveNormalizer().run(bulk_table)
  File "/home/dfx/src/eve/phobos/miner/eve_normalize.py", line 36, in run
    data = self._route_object(eve_container)
  File "/home/dfx/src/eve/phobos/miner/eve_normalize.py", line 49, in _route_object
    return method(self, obj)
  File "/home/dfx/src/eve/phobos/miner/eve_normalize.py", line 147, in _tmp
    container[key] = self._route_object(value)
  File "/home/dfx/src/eve/phobos/miner/eve_normalize.py", line 49, in _route_object
    return method(self, obj)
  File "/home/dfx/src/eve/phobos/miner/eve_normalize.py", line 122, in _pythonize_fsdobj
    value = getattr(obj, key, None)
  File "/usr/local/lib/python2.7/dist-packages/reverence/fsd.py", line 745, in __getattr__
    return schema['loader'](self.__data__, self.__offset__ + off, schema)
  File "/usr/local/lib/python2.7/dist-packages/reverence/fsd.py", line 402, in __init__
    footerOffset = endOfFooter - _uint32(data, endOfFooter)
ValueError: _uint32_from requires a buffer of at least 4 bytes

Attempt to print object doesn't work either, although with different traceback.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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