Skip to content

thread 'cpal_wasapi_out' panicked at 'Received 1056 samples, while the configured buffer size is 512 #8

Description

@bastian-fenske

Hi Ales.

Thank you for your generous work!

I cloned your repo and built it via cargo xtask bundle -p kotoist --release. When I open the plug-in in Ableton, I can't enter code into the editor (and there is only a "run" button). I tired to add an Options.txt to the Ableton preferences directory, like mentioned in some support forum answers from many years ago, but without success. Also, entering text in other plug-ins works.

Then I ran the exe and got this error (while the UI looked and behaved exactly the same as in Ableton):
thread 'cpal_wasapi_out' panicked at 'Received 1056 samples, while the configured buffer size is 512': C:\Users\MyName\.cargo\git\checkouts\nih-plug-a2d2dc277b128e13\16c6c58\src\wrapper\standalone\backend\cpal.rs:832

I thought, I might have to pass the buffer size to nih_plug_xtask in the .cargo/config.toml, but could not figure out, how. I never worked with Rust before and usually don't work on Windows.

robbert-vdh/nih-plug#147

Do you have any idea?

Windows 10 Pro
Ableton Live 11.3.35

22:35:10 [INFO] Loading jack from libjack64.dll.
22:35:10 [INFO] Audio inputs are not connected automatically to prevent feedback. Use the '--input-device' option to choose an input device.
22:35:10 [INFO] Use the '--midi-input' option to select a MIDI input device.
22:35:10 [INFO] Use the '--midi-output' option to select a MIDI output device.
22:35:10 [INFO] Using the WASAPI backend
22:35:10 [ERROR] thread 'cpal_wasapi_out' panicked at 'Received 1056 samples, while the configured buffer size is 512': C:\Users\MyName\.cargo\git\checkouts\nih-plug-a2d2dc277b128e13\16c6c58\src\wrapper\standalone\backend\cpal.rs:832
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: BaseThreadInitThunk
  14: RtlUserThreadStart

22:35:10 [WARN] Warning: Unsupported render callback. Expected egui_glow::CallbackFn
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions