Skip to content

Early Edits fail to process #37

@bjfranks

Description

@bjfranks

So, I was just going through files trying to count game elements and noticed that whenever an empty edit came up, the library crashed due to a list index being out of range. Here are three similar errors. For each, I give the file name and the index of the chart failing, followed by the stack trace. Find the files attached:

Dance Vibrations 2
Traceback (most recent call last):
  File "...", line 10, in calculate_statistics
    note_data = NoteData(simfileInstance.charts[chart])
  File "D:\Meatball\venv\lib\site-packages\simfile\notes\__init__.py", line 136, in __init__
    self._columns = NoteData._get_columns(self._notedata)
  File "D:\Meatball\venv\lib\site-packages\simfile\notes\__init__.py", line 142, in _get_columns
    first_line = first_measure.strip().splitlines()[0].strip()
IndexError: list index out of range

That Is Fair 4
Traceback (most recent call last):
  File "...", line 10, in calculate_statistics
    note_data = NoteData(simfileInstance.charts[chart])
  File "D:\Meatball\venv\lib\site-packages\simfile\notes\__init__.py", line 136, in __init__
    self._columns = NoteData._get_columns(self._notedata)
  File "D:\Meatball\venv\lib\site-packages\simfile\notes\__init__.py", line 142, in _get_columns
    first_line = first_measure.strip().splitlines()[0].strip()
IndexError: list index out of range

Virtual Emotion 0
Traceback (most recent call last):
  File "...", line 10, in calculate_statistics
    note_data = NoteData(simfileInstance.charts[chart])
  File "D:\Meatball\venv\lib\site-packages\simfile\notes\__init__.py", line 136, in __init__
    self._columns = NoteData._get_columns(self._notedata)
  File "D:\Meatball\venv\lib\site-packages\simfile\notes\__init__.py", line 142, in _get_columns
    first_line = first_measure.strip().splitlines()[0].strip()
IndexError: list index out of range

files.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    non-strict parsingbugs related to malformed simfiles that StepMania accepts

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions