You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parsing this replay fails with the following exception:
<type 'exceptions.AttributeError'>
Traceback (most recent call last):
File "xxx", line 51, in upload_file
analysis.perform()
File "xxx", line 27, in perform
replay = sc2reader.load_replay(self.filename, load_level=4, do_tracker_events=False)
File "build/bdist.macosx-10.9-intel/egg/sc2reader/factories/sc2factory.py", line 85, in load_replay
return self.load(Replay, source, options, **new_options)
File "build/bdist.macosx-10.9-intel/egg/sc2reader/factories/sc2factory.py", line 137, in load
return self._load(cls, resource, filename=filename, options=options)
File "build/bdist.macosx-10.9-intel/egg/sc2reader/factories/sc2factory.py", line 146, in _load
obj = cls(resource, filename=filename, factory=self, **options)
File "build/bdist.macosx-10.9-intel/egg/sc2reader/resources.py", line 309, in __init__
engine.run(self)
File "build/bdist.macosx-10.9-intel/egg/sc2reader/engine/engine.py", line 174, in run
for new_event in (event_handler(event, replay) or []):
File "build/bdist.macosx-10.9-intel/egg/sc2reader/engine/plugins/context.py", line 18, in handleGameEvent
self.load_message_game_player(event, replay)
File "build/bdist.macosx-10.9-intel/egg/sc2reader/engine/plugins/context.py", line 257, in load_message_game_player
self.logger.error("Bad pid ({0}) for event {1} at {2} [{3}].".format(event.pid, event.__class__, Length(seconds=event.second), event.frames))
AttributeError: 'CameraEvent' object has no attribute 'frames'
GGTracker also fails to parse this replay, so I assume this has nothing to do with my OS/Python version/use case. This game was resumed from replay, so it might change some things internally.
Okay, I resolved the various issues that were causing these exceptions. The root issue is now properly written to the log as follows:
Bad pid (13) for event <class 'sc2reader.events.game.CameraEvent'> at 14.07 [13555].
I expect that this is related to the fact that it is a resumed replay. We don't properly use the player "rejoin" events to construct our player listings. Instead we use the initial player details that are never updated on resumed replays. I suppose we could call this a needed enhancement.
GraylinKim
changed the title
Replay parsing fails: AttributeError: 'CameraEvent' object has no attribute 'frames'
"Rejoin" events not used for players list on resumed replays.
Dec 29, 2014
Parsing this replay fails with the following exception:
GGTracker also fails to parse this replay, so I assume this has nothing to do with my OS/Python version/use case. This game was resumed from replay, so it might change some things internally.
This should fail:
sc2parse
output (not very helpful, cause tracker events):The text was updated successfully, but these errors were encountered: