Skip to content

UnboundLocalError when providing any 'hints' #2

@hcphoenix

Description

@hcphoenix

Steps to reproduce:

  1. Download LamentOfDilbert.zip (any file I've tried this with will do, but just in case...)
  2. Run crosslooper --loop-len-min 168 LamentOfDilbert.ogg from inside any folder

You'll get an error like this: UnboundLocalError: cannot access local variable 'best_length' where it is not associated with a value
image

Occurs on both Windows and Debian with Python 3.12.4.

168 (i.e. 2 mins 48 seconds) is a reasonable value for the loop length of the test file, which is set up to loop very cleanly. I haven't yet had a file I've tested crosslooper with where hinting with args didn't give either this error or a result identical to if I provided no hints.

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