Skip to content

Crash opening metrics plot when client.csv interaction log is corrupted #199

Description

@Abe404

Opening the metrics plot or exporting metrics could crash with IndexError: list index out of range in interaction_time.events_from_client_log when logs/client.csv contained blank lines. Some logs also had records that were out of chronological order, which may cause problems for computation of annotation duration.

Fixed in b9fd4b2: adds log_recovery.py, which detects blank/out-of-order lines and, when found, backs up the original log as corrupt_client_backup_<datetime>.csv, removes blank/unparseable lines, and stable-sorts by timestamp before reprocessing. The metrics progress dialog shows the recovery steps.

Commit: b9fd4b2

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready for releasewhen an issue is in master but not yet in a release

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions