noedigcode / konfyt

Digital keyboard workstation for Linux.
http://www.noedig.co.za/konfyt
GNU General Public License v3.0
42 stars 1 forks source link

Konfyt segfault if closed running external application #28

Closed luciorgomes closed 5 months ago

luciorgomes commented 1 year ago

Hi

If I run a reverb (like zita-rev or DragonFly...) via External Applications and close Konfyt with the reverb app still running it causes a segfault message. In this cases the Linuxsampler engine do not stop:

Previously closing the external app:

[luciorg@lucio-dellg155530 ~]$ konfyt
Setting QT_XCB_GL_INTEGRATION to none.
lscp_client_create: cmd: connect: Conexão recusada
LscpEngine: Shutting down engine.
LscpEngine: Removing everything related to Konfyt_LS...
LscpEngine:     Found audio device: 0
LscpEngine:     Found MIDI device: 0
LscpEngine:     Found related channel: /run/media/luciorg/HD\x20Externo/Samples/Giga/Mega\x20Piano/00\x20GM500\x20MegaPiano.gig
LscpEngine:         Channel removed.
LscpEngine:     Destroyed audio device.
LscpEngine:     Destoryed MIDI device.
LscpEngine: Stopping Linuxsampler process.

Not closing the external app

[luciorg@lucio-dellg155530 ~]$ konfyt 
Setting QT_XCB_GL_INTEGRATION to none.
QProcess: Destroyed while process ("zita-rev1") is still running.
Falha de segmentação (imagem do núcleo gravada)
noedigcode commented 1 year ago

I mitigated the issue in the latest commit. You can test if you can build from source. I'll only be making an official release in a while.