Skip to content

Corruption occurring in voice manager #695

@jpcima

Description

@jpcima

Obtained with following instrument and MIDI Fuzz plugin
WilkinsonAudio.NakedDrums/Wilkinson Audio/Naked Drums/Stereo/Naked Drums OH.sfz

==2419555== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 2 from 2)
==2418969== Thread 14:
==2418969== Conditional jump or move depends on uninitialised value(s)
==2418969==    at 0x7B8D68F: sfz::Voice::checkOffGroup(sfz::Region const*, int, int) (Voice.cpp:1474)
==2418969==    by 0x7B525B8: sfz::Synth::Impl::noteOnDispatch(int, int, float) (Synth.cpp:1112)
==2418969==    by 0x7B5273A: sfz::Synth::noteOn(int, int, unsigned char) (Synth.cpp:1027)
==2418969==    by 0x7A6B4C5: SfizzVstProcessor::processEvents(Steinberg::Vst::IEventList&) (SfizzVstProcessor.cpp:460)
==2418969==    by 0x7A6D298: SfizzVstProcessor::process(Steinberg::Vst::ProcessData&) (SfizzVstProcessor.cpp:262)
==2418969==    by 0x2A7FF8: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x21D914: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x221505: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x19289F: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x192C74: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x192D71: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x570D229: ??? (in /usr/lib/libjack.so.0.1.0)
==2418969== 
Assert failed: ampegOut.data()
Assert failed at /home/jpc/documents/projects/sfizz/src/sfizz/Voice.cpp:735
==2418969== 
==2418969== Process terminating with default action of signal 5 (SIGTRAP): dumping core
==2418969==    at 0x7B907F2: sfz::Voice::Impl::amplitudeEnvelope(absl::lts_2020_02_25::Span<float>) (Voice.cpp:735)
==2418969==    by 0x7B90B11: sfz::Voice::Impl::ampStageStereo(sfz::AudioSpan<float, 2ul>) (Voice.cpp:781)
==2418969==    by 0x7B99AEF: sfz::Voice::renderBlock(sfz::AudioSpan<float, 2ul>) (Voice.cpp:637)
==2418969==    by 0x7B57B2D: sfz::Synth::renderBlock(sfz::AudioSpan<float, 2ul>) (Synth.cpp:928)
==2418969==    by 0x7AA694F: sfz::Sfizz::renderBlock(float**, unsigned long, int) (sfizz.cpp:184)
==2418969==    by 0x7A6D30C: SfizzVstProcessor::process(Steinberg::Vst::ProcessData&) (SfizzVstProcessor.cpp:272)
==2418969==    by 0x2A7FF8: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x21D914: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x221505: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x19289F: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x192C74: ??? (in /usr/lib/carla/carla-bridge-native)
==2418969==    by 0x192D71: ??? (in /usr/lib/carla/carla-bridge-native)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions