Wohlstand / OPL3BankEditor

A small cross-platform editor of the OPL3 FM banks of different formats (Downloads in README below)
GNU General Public License v3.0
141 stars 12 forks source link

[CRITICAL] Crash to desktop under Arch Linux #193

Closed freq-mod closed 1 year ago

freq-mod commented 1 year ago

Init audioOut... Using RtAudio driver: jack RtApiJack::getDeviceInfo: error determining Jack input/output channels!

RtApiJack::getDeviceInfo: error determining Jack input/output channels! Desired latency 0.02 Buffer size 960 terminate called after throwing an instance of 'RtAudioError' what(): RtApiJack::probeDeviceOpen: requested number of channels (2) + offset (0) not found for specified device (0:Family 17h/19h HD Audio Controller Digital Microphone). Przerwane (zrzut pamięci) [anon@shitbox ~]$

build didnt fail...

freq-mod commented 1 year ago

It works under Wine

Wohlstand commented 1 year ago

You should disable the JACK at RtAudio module 👀 (I'll try to take a look at code sooner, but now I am out of home)

freq-mod commented 1 year ago

Trying to build using vendored rtaudio and rtmidi doesnt work, it moans about RtAudio.h cant be found

Wohlstand commented 1 year ago

Did you clonned submodules?

git submodule init
git submodule update
freq-mod commented 1 year ago

yes

Wohlstand commented 1 year ago

I fixed the CMake build that you noted (QMake build works just fine): https://github.com/Wohlstand/OPL3BankEditor/commit/193bf190c71723707d13fd0d2aa930b41741b578

Wohlstand commented 1 year ago

I also added an option to disable Jack support at vendored RtAudio.

freq-mod commented 1 year ago

OK so it builds, but still crashes... will try to disable jack

Wohlstand commented 1 year ago

According to the log, it's just a failure of RtAudio that never tries other APIs and goes "Use JACK or die, m***!"

freq-mod commented 1 year ago

disableing jack fixes the crash. thanks!

Wohlstand commented 1 year ago

I'll apply the same fix to the OPN2 Bank Editor too.