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

crash on note play with mf-taiko-drum-ogg #804

Closed
falkTX opened this issue Apr 9, 2021 · 6 comments · Fixed by #811
Closed

crash on note play with mf-taiko-drum-ogg #804

falkTX opened this issue Apr 9, 2021 · 6 comments · Fixed by #811
Assignees
Labels
bug Something isn't working

Comments

@falkTX
Copy link
Contributor

falkTX commented Apr 9, 2021

I have this tiny sfz file (not sure the origins now) which when loaded in sfizz it instantly crashes when playing a note.

python3: /Shared/Personal/FOSS/Repo/Debian-Plugins/sfizz/external/abseil-cpp/absl/types/span.h:278: absl::lts_20210324::Span<T>::operator[](absl::lts_20210324::Span<T>::size_type) const [with T = const float; absl::lts_20210324::Span<T>::reference = const float&; absl::lts_20210324::Span<T>::size_type = long unsigned int]::<lambda()>: Assertion `false && "i < size()"' failed.
Aborted

sfizz build fresh from today.

since the sfz kit is so small, I will just upload it in here

mf-taiko-drum-ogg.tar.gz

@redtide
Copy link
Member

redtide commented Apr 9, 2021

For reference the samples lib is a CC-BY-3.0 coming from Fiedler Audio.

@paulfd paulfd added the bug Something isn't working label Apr 9, 2021
@jpcima
Copy link
Collaborator

jpcima commented Apr 9, 2021

The problem is with sampleEnd, it fills the value -2 in the indices array
fill<int>(indices->subspan(i), sampleEnd);

@jpcima
Copy link
Collaborator

jpcima commented Apr 9, 2021

There are 2 aspects to this problem

  • sfizz is not robust against a failure to load a file, it will produce a crash as reported
  • stb_vorbis produces an "outofmem" error, this requires us to allocate a larger temporary memory for OGG decoding

Sorry, something went wrong.

@jpcima
Copy link
Collaborator

jpcima commented Apr 9, 2021

The sound files load now, but there's another issue.
This instrument has a very long release time.
When opening the default sfizz at polyphony 64, playing lots of notes up to the hard limit, the voice thief fails to do its job on new notes, and the instrument becomes pretty much silent. @paulfd

@paulfd
Copy link
Member

paulfd commented Apr 9, 2021

I'll have a look at it !

@paulfd paulfd self-assigned this Apr 9, 2021
@paulfd paulfd mentioned this issue Apr 10, 2021
@paulfd
Copy link
Member

paulfd commented Apr 10, 2021

I think what the original author wanted is to have loop_mode=one_shot rather than ampeg_release=100. Nevertheless such a long release time had impacts which are now hopefully resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants