Skip to content

Division by zero error while calculating multi-anchor slider shape #7

@Patipol-BKK

Description

@Patipol-BKK
C:\Users\user\Desktop\beatmaps\test2\1000885 Roselia - MIIRO\Roselia - MIIRO (lit120) [lolia's Destroyer].osuTraceback (most recent call last):
  File "dataset_formatter.py", line 43, in <module>
    parser.build_beatmap()
  File "C:/Users/user/Documents/GitHub/python-osu-parser\beatmapparser.py", line 372, in build_beatmap
    self.parse_hit_object(object_line)
  File "C:/Users/user/Documents/GitHub/python-osu-parser\beatmapparser.py", line 232, in parse_hit_object
    hit_object["points"])
  File "C:/Users/user/Documents/GitHub/python-osu-parser\slidercalc.py", line 61, in get_end_point
    cx, cy, radius = get_circum_circle(p1, p2, p3)
  File "C:/Users/user/Documents/GitHub/python-osu-parser\slidercalc.py", line 122, in get_circum_circle
    ux = ((x1 * x1 + y1 * y1) * (y2 - y3) + (x2 * x2 + y2 * y2) * (y3 - y1) + (x3 * x3 + y3 * y3) * (y1 - y2)) / d
ZeroDivisionError: division by zero

Got the specific error while calculating this slider 00:00:512 (2) from this beatmap:
image

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