Skip to content

[BUG] Fluidsynth randomly accepts or rejects a certain soundfont #1457

@spessasus

Description

@spessasus

FluidSynth version

Execute fluidsynth --version and provide the output.

fluidsynth --version
ALSA lib pcm_dsnoop.c:567:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2722:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:404:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_a52.c:1036:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:481:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib confmisc.c:160:(snd_config_get_card) Invalid field card
ALSA lib pcm_usb_stream.c:481:(_snd_pcm_usb_stream_open) Invalid card 'card'
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
FluidSynth runtime version 2.4.1
Copyright (C) 2000-2024 Peter Hanappe and others.
Distributed under the LGPL license.
SoundFont(R) is a registered trademark of Creative Technology Ltd.

FluidSynth executable version 2.4.1
Sample type=double

Describe the bug

Okay, so this is a very strange bug:
The attached sf3 soundfont sometimes loads and sometimes doesn't as demonstrated in the video.
It reports "failed to read sample data" while other times it loads? Also the samples seem to be mismatched, especially the drums. Again, it's random.
I have set up a fallback soundfont and that's when the piano can be heard, meaning that Calm 4 has failed to load.
https://github.com/user-attachments/assets/35a15ffa-8506-468b-94f8-8fecef4b2179

Expected behavior

It should either fail 100% of the time or load 100% of the time. The file doesn't change (unless fluid modifies it somehow?) so it should be deterministic.

Steps to reproduce

  1. Calm 4.sf3.zip (remove .zip, it's just a soundfont, not an archive)
  2. Load it a few times.
  3. Sometimes it loads, sometimes it doesn't.

Note: I used this command: fluidsynth Downloads/Calm\ 4.sf3 Downloads/Persona4\ Specialist.mid -o audio.driver=pulseaudio
Omitting audio.driver or using a different MIDI file don't make a difference.

Additional context

This soundfont has mixed samples. Both compressed and uncompressed. And it crashes Polyphone, so it's probably a bit messed up. Though spessasynth loads it 100% of the time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions