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

ASSERT: "samples_needed >= 0" in file src/engine/readaheadmanager.cpp when holding finger on MIDI controller during scratching #5411

Closed
mixxxbot opened this issue Aug 22, 2022 · 2 comments

Comments

@mixxxbot
Copy link
Collaborator

Reported by: Pegasus-RPG
Date: 2010-06-02T14:06:50Z
Status: Fix Released
Importance: High
Launchpad Issue: lp588729
Tags: assert, crash, engine


Trunk r2407 introduced a bug that causes the following error when using a MIDI controller with the new scratch behavior and just holding my finger so the track is stopped. (Can be exaserbated by lower latency and toggling Play while holding the track.)

Fatal: []: ASSERT: "samples_needed >= 0" in file src/engine/readaheadmanager.cpp, line 61

This happens on Linux and Windows. Tested with an SCS.3d.

@mixxxbot
Copy link
Collaborator Author

Commented by: rryan
Date: 2010-06-04T21:02:37Z


Albert, Sean and I tracked this down to samples_needed going negative in EngineBufferScaleLinear. The logic to subtract the remainder was subtracting from samples_needed such that it went negative. In r2407, two asserts in EBSL that verify that samples_needed is greater than 0 were disabled, so the problem propagated to the RAMAN once EBSL tried to read with a negative samples_needed.

@mixxxbot
Copy link
Collaborator Author

Issue closed with status Fix Released.

@mixxxbot mixxxbot transferred this issue from another repository Aug 24, 2022
@mixxxbot mixxxbot added this to the 1.8.0 milestone Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant