giada icon indicating copy to clipboard operation
giada copied to clipboard

Selecting PulseAudio for Sound System and ALSA for MIDI System will cause a segfault

Open ranguli opened this issue 3 years ago • 1 comments

Environment

  • OS: Pop!_OS 21.10
  • Giada version: Reproduced on v0.16.2 .deb, and v0.21.0 Flatpak + AppImage

Describe the bug Selecting PulseAudio as the Sound System and ALSA as the MIDI System Clicking "Config" causes a segmentation fault.

To Reproduce Steps to reproduce the behavior:

  1. Launch Giada from the console (to view stdout/stderr)
  2. Click on 'Config'
  3. Set the Sound System to PulseAudio
  4. Set the MIDI System to ALSA
  5. Restart the application
  6. Click on 'Config' again
  7. Observe the application has crashed, see console output

Expected behavior Graceful handling of unsupported config options.

Additional context

➜  ~ giada
[init] Giada 0.16.2
[init] Build date: 2020-11-19
[init] Dependencies:
[init]   FLTK - 1.3.5
[init]   RtAudio - 5.1.0
[init]   RtMidi - 4.0.0
[init]   Libsamplerate
[init]   Libsndfile - libsndfile-1.0.31
[init]   JSON for modern C++ - 3.9.1
[init]   JUCE - 5.4.7
[midiMapConf::init] scanning midimaps directory '/home/joshua/.giada/midimaps/'...
[midiMapConf::init] unable to scan midimaps directory!
[midiMapConf::read] midimap not specified, nothing to do
[init] MIDI map read failed!
[KA] using system 0x6
[KA] No API available, nothing to do!
[mixer::init] buffers ready - framesInSeq=88200, framesInBuffer=0
[KM] using system 0x2
[KM] 1 output MIDI ports found
  0) Midi Through:Midi Through Port-0 14:0
[KM] 1 input MIDI ports found
  0) Midi Through:Midi Through Port-0 14:0
[1]    15505 segmentation fault (core dumped)  giada

ranguli avatar Apr 03 '22 15:04 ranguli

@ranguli can't reproduce here on Debian 11. Could you please attach the giada.conf file located in ~/.giada?

gvnnz avatar Apr 09 '22 16:04 gvnnz