Skip to content

[server and core] TypeError on any Encoders with experience all #157

Description

@Tointoin

While applying the experience all on the selection Tests,
empty results for encoders are created with draft status. No other experience are created.
Worker's logs give this error:

[2020-03-09 12:52:55,766: ERROR/ForkPoolWorker-9] Task timeside.server.tasks.experience_run[4175ee46-0ea9-43ba-8fbd-513a2e948e25] raised unexpected: TypeError('slice indices must be integers or None or have an __index__ method')
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/celery/app/trace.py", line 385, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/celery/app/trace.py", line 650, in __protected_call__
    return self.run(*args, **kwargs)
  File "/srv/lib/timeside/timeside/server/tasks.py", line 39, in experience_run
    item.run(experience)
  File "/srv/lib/timeside/timeside/server/models.py", line 523, in run
    pipe.run()
  File "/srv/lib/timeside/timeside/core/processor.py", line 554, in run
    frames, eod = item.process(frames, eod)
  File "/srv/lib/timeside/timeside/core/preprocessors.py", line 74, in wrapper
    process_func(analyzer, downmix_frames, eod)
  File "/srv/lib/timeside/timeside/core/preprocessors.py", line 186, in wrapper
    for adapted_frames, adapted_eod in analyzer.frames_buffer.frames(frames, eod):
  File "/srv/lib/timeside/timeside/core/preprocessors.py", line 160, in frames
    self.buffer = stack[nb_frames * self.stepsize:]
TypeError: slice indices must be integers or None or have an __index__ method

It seems to be the case since use of AubioDecoder.
This error does not occure while applying all encoders at the same time on Tests selection (or all analyzers on the same selection). This occures only with all experience.

Activity

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions