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

Bug #588729 reported by Sean M. Pappalardo on 2010-06-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
High
Phillip Whelan

Bug Description

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.

Related branches

Changed in mixxx:
assignee: mad (madjester) → Phillip Whelan (pwhelan)
RJ Skerry-Ryan (rryan) wrote :

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.

Phillip Whelan (pwhelan) on 2010-06-17
Changed in mixxx:
status: Confirmed → Fix Committed
RJ Skerry-Ryan (rryan) on 2010-10-05
Changed in mixxx:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers