monocasual / giada

Your Hardcore Loop Machine.
https://www.giadamusic.com
GNU General Public License v3.0
1.68k stars 99 forks source link

Segmentation fault (core dumped) when enabling audio input #521

Open enorrmann opened 2 years ago

enorrmann commented 2 years ago

Environment

seg fault when enabling audio input, with alsa and jack

To Reproduce Steps to reproduce the behavior:

  1. Go to preferences
  2. enable input
  3. restart
  4. Segmentation fault (core dumped)
  5. Jack: JackClient::PortRegister ref = 3 name = Giada:outport 1 type = 32 bit float mono audio port_index = 6 Jack: WaitGraphChange... Jack: JackClient::PortRegister ref = 3 name = Giada:inport 0 type = 32 bit float mono audio port_index = 7 Jack: JackClient::Activate Jack: JackPosixThread::StartImp : create non RT thread Jack: JackPosixThread::ThreadHandler : start Jack: JackClient::kBufferSizeCallback buffer_size = 256 Jack: JackClient::Init : period = 5333 computation = 100 constraint = 5333 Jack: JackPosixThread::AcquireRealTimeImp priority = 5 Jack: JackClient::ClientNotify ref = 3 name = Giada notify = 2 Jack: JackClient::kActivateClient name = Giada ref = 3 Jack: JackClient::ClientNotify ref = 3 name = Giada notify = 18 Jack: JackClient::Connect src = Giada:outport 0 dst = system:playback_1 Jack: JackClient::ClientNotify ref = 3 name = Giada notify = 18 Jack: JackClient::Connect src = Giada:outport 1 dst = system:playback_2 Jack: JackClient::Connect src = system:capture_1 dst = Giada:inport 0 Segmentation fault (core dumped)

gvnnz commented 2 years ago

@enorrmann can you please paste here the log messages you get at startup? How to enable logging: Config -> Misc -> Debug Messages -> To standard output

enorrmann commented 2 years ago

@enorrmann can you please paste here the log messages you get at startup? How to enable logging: Config -> Misc -> Debug Messages -> To standard output

emilio@zep:~/git/giada/build$ ./giada [MidiMapper::init] scanning midimaps directory '/home/emilio/.giada/midimaps/'... [MidiMapper::init] unable to scan midimaps directory! [MidiMapper::read] midiMap not specified, nothing to do [Engine::init] MIDI map read failed! [KA] using system 0x2 [KA] Opening device out=0, in=6, samplerate=44100

RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:2,0), Device or resource busy.

[KA] 7 device(s) found 0) default ins=32 outs=32 duplex=32 isDefaultOut=1 isDefaultIn=1 sampleRates: 4000 5512 8000 9600 11025 16000 22050 32000 44100 48000 88200 96000 176400 192000 1) hw:HDA NVidia,3 ins=0 outs=8 duplex=0 isDefaultOut=0 isDefaultIn=0 sampleRates: 32000 44100 48000 88200 96000 176400 192000 2) hw:HDA NVidia,7 ins=0 outs=8 duplex=0 isDefaultOut=0 isDefaultIn=0 sampleRates: 32000 44100 48000 88200 96000 176400 192000 3) hw:HDA NVidia,8 ins=0 outs=8 duplex=0 isDefaultOut=0 isDefaultIn=0 sampleRates: 32000 44100 48000 88200 96000 176400 192000 4) hw:HDA NVidia,9 ins=0 outs=8 duplex=0 isDefaultOut=0 isDefaultIn=0 sampleRates: 32000 44100 48000 88200 96000 176400 192000 5) hw:HD-Audio Generic,3 ins=0 outs=8 duplex=0 isDefaultOut=0 isDefaultIn=0 sampleRates: 32000 44100 48000 88200 96000 176400 192000 6) hw:HD-Audio Generic,0 ins=2 outs=0 duplex=0 isDefaultOut=0 isDefaultIn=0 sampleRates: 44100 48000 96000 192000

RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (hw:2,0), Device or resource busy.

RtApiAlsa::probeDeviceOpen: unable to synchronize input and output devices.

[mixer::reset] buffers ready - maxFramesInLoop=529200, framesInBuffer=1024 [mixer::enable] enabled [KA] latency = 0 [KM] using system 0x2 Segmentation fault (core dumped)