Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when processing audio: Assertion `length % m_num_channels == 0' failed. #90

Open
trostli opened this issue Jun 24, 2021 · 2 comments

Comments

@trostli
Copy link

trostli commented Jun 24, 2021

Hi there,

I am seeing the following error when using Chromaprint 1.4.3 . For reference I am running it on Heroku on the Heroku-18 stack which is based off of Ubuntu 18.04 . Would anyone be able to point me into the right direction?

The error doesn't seem to be dependent on which audio file it is given. I am feeding it a .wav file.

Stacktrace:

2021-05-17T21:05:56.723805+00:00 app[worker.1]: sidekiq 6.1.2 app [6 of 10 busy]: /build/chromaprint-NG9oJQ/chromaprint-1.4.3/src/audio_processor.cpp:148: virtual void chromaprint::AudioProcessor::Consume(const int16_t*, int): 
Assertion `length % m_num_channels == 0' failed.
2021-05-17T21:05:56.879442+00:00 heroku[worker.1]: Process exited with status 134
2021-05-17T21:05:56.981042+00:00 heroku[worker.1]: State changed from up to crashed
2021-05-17T21:05:56.983998+00:00 heroku[worker.1]: State changed from crashed to starting
@aw-was-here
Copy link

aw-was-here commented Jul 30, 2021

I've hit this issue many, many times--but not consistently--with m4v files, all with audio encoded in ALAC. So it seems to be a bug inherent to the algorithm rather than the file format.

@justin-parus
Copy link

I get this as well with other formats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants