-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
non-strict parsingbugs related to malformed simfiles that StepMania acceptsbugs related to malformed simfiles that StepMania accepts
Milestone
Description
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
Metadata
Metadata
Assignees
Labels
non-strict parsingbugs related to malformed simfiles that StepMania acceptsbugs related to malformed simfiles that StepMania accepts