Skip to content

Crash if ffmpeg reports N/A for speed #70

Description

@felix920506

Classifications

  • Running python ./jellybench_py/hwi.py manually (within the Poetry shell) works and produces correct results.
  • This happens on a Virtual Hardware (VM, WSL, ...)
  • The issue occurs during the benchmark section of the script (after Starting Benchmark...).
  • A server issue or faulty server response is causing the problem.
  • jellybench was run in --debug mode (recommended for issue reports).
  • I am using the latest version (branch develop) of jellybench. I understand older versions are not supported.

Description

If ffmpeg returns N/A for speed for whatever reason, the program throws an exception and exits.

If N/A is returned for speed the same test should be re-ran

Error Code or Output

Status: Done    Workers:    1Last Speed: 01.12     0% [                                                                ] ETA:  --:--:--> > Current Test: 720p - 1080p
> > > Current Device: cpu
> > > > Workers: 1, Last Speed: -0.5
> > > > Workers: 4, Last Speed: 3.4215384615384616
> > > > Scaling back to: 3, Last Speed: 0.8399387755102041

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/user/Documents/GitHub/pyTAB/jellybench_py/core.py", line 825, in main
    return cli()
           ^^^^^
  File "/Users/user/Documents/GitHub/pyTAB/jellybench_py/core.py", line 792, in cli
    valid, runs, result = benchmark(
                          ^^^^^^^^^^
  File "/Users/user/Documents/GitHub/pyTAB/jellybench_py/core.py", line 197, in benchmark
    output = worker.workMan(total_workers, ffmpeg_cmd)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Documents/GitHub/pyTAB/jellybench_py/worker.py", line 131, in workMan
    speeds.append(float(new_line[6].split("=")[-1].replace("x", "")))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'N/A'

Steps to Reproduce

  1. Start benchmark
  2. Hope it happens
  3. If it doesn't happen then do it enough times until it happens

Operating System

MacOS

System Architecture

ARM64 (64-bit)

Python Version

3.12.8

CPU[s]

Apple M1 Pro

GPU[s]

Apple M1 Pro

Additional Context

No response

Possible Solution

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions