Skip to content

shifting sample pitch too high crashes sfizz #1311

@mrbumpy409

Description

@mrbumpy409

Overview

Using an envelope to shift the pitch of a sample too high crashes sfizz (and brings down the whole DAW as well, in my case). I discovered the bug while trying to create a sine wave sweep across the entire frequency range. The sweep works great when played at note C1 (with middle C = C4), but notes higher up the keyboard cause sfizz to crash.

Steps to Reproduce

  1. Download and extract pitch shift crash.zip.
  2. Load frequency_sweep.sfz into sfizz.
  3. Play note F2 or higher.

Actual Result

sfizz crashes, and possibly also brings down the DAW (in my case, REAPER also crashes). If I launch REAPER from the command line, I get the following text output when sfizz crashes:

Assert failed: !hasNanInf(buffer.getConstSpan(0))
Assert failed at /usr/src/packages/BUILD/library/src/sfizz/Voice.cpp:1352
Trace/breakpoint trap (core dumped)

Expected Result

sfizz shouldn't crash.

Additional Information

  • OS: KDE neon 6.2 (based on Ubuntu 24.04)
  • sfizz version: 1.2.3
  • DAW: REAPER v7.33
    • Audio driver: JACK / Pipewire
    • Audio sample rate: 48000 Hz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions