psmokotnin / osm

Open sound meter. FFT based application for tuning sound systems.
GNU General Public License v3.0
233 stars 37 forks source link

Cannot do measurement on same device as noise generator use in Linux #70

Open xhpohanka opened 1 year ago

xhpohanka commented 1 year ago

Hello,

I have tried OSM on my machine (up to date Linux, Arch, Cinnamon, pipewire). Unfortunately when I try to generate noise and record on the same device (I have tried behringer UMC and M32r) the OSM reports alsa error: -22 invalid argument "287".

What would be compatible linux setup, please?

psmokotnin commented 8 months ago

That should work. Does it happen only with this device or with any device?

TkonekT commented 8 months ago

Hello ,

First and foremost : Thank you so much for this extraordinary software!

I withdrew my contribution because I was wondering whether it wouldn't be better to start again on a new thread, so I'm continuing here. Sorry about my English, it can be a random at times...

I've got some issues with OMS Open_Sound_Meter-v1.3-x8664.AppImage on Linux. I have the same error with Behringer UCM404HD USB sound card, but not with a M32R (important). ---> alsa error: -22 invalid argument "287" (extract from journalctl)_ Full duplex mode seem not working with this Behringer card, but working with internal card, and my external Midas M32r card...

My setup : I have 2 PCs, a desktop and a laptop.

I tried several recent LiveUSB distributions on my laptop, and same issue with Behringer Card : Mint, Ubuntu, Ubuntu Studio, Mageia (Kernel 6.4.9) ---> all : alsa error: -22 invalid argument "287"

When I Run OMS by CLI on laptop : ~/Apps/OMS/Open_Sound_Meter-v1.3-x86_64.AppImage 5 str: "No such file or directory" can't load Music-Noise 48 5 str: "No such file or directory" can't load Music-Noise 96 Invalid QML element name "meta::Filter"; type names must begin with an uppercase #letter Invalid QML element name "meta::Measurement"; type names must begin with an uppercase letter Invalid QML element name "meta::Windowing"; type names must begin with an uppercase letter

Measurement is started, and I click on generator to start

_ ALSA error: -22 Argument invalide "287"

Other test on laptop : ~/Apps/OMS/Open_Sound_Meter-v1.3-x86_64.AppImage 5 str: "No such file or directory" can't load Music-Noise 48 5 str: "No such file or directory" can't load Music-Noise 96 Invalid QML element name "meta::Filter"; type names must begin with an uppercase letter Invalid QML element name "meta::Measurement"; type names must begin with an uppercase letter Invalid QML element name "meta::Windowing"; type names must begin with an uppercase letter

Here I stop the measurement and start generator, a red cross appears in the measurement area often, and just after

QObject::moveToThread: Current thread (0x7fde4c003a50) is not the object's thread (0x7fde00000cf0). Cannot move to target thread (0x7fde4c0032d0)

In this case, OMS freeze, I must kill process.

Just for information / dmesg :

Midas M32R
usb 2-1: new high-speed USB device number 6 using xhci_hcd usb 2-1: New USB device found, idVendor=26a0, idProduct=0003, bcdDevice= 0.10 usb 2-1: New USB device strings: Mfr=12, Product=7, SerialNumber=13 usb 2-1: Product: DN32-USB usb 2-1: Manufacturer: KLARK TEKNIK usb 2-1: SerialNumber: 440EAA7B

Behringer UMC404HD usb 2-1: new high-speed USB device number 8 using xhci_hcd usb 2-1: New USB device found, idVendor=1397, idProduct=0509, bcdDevice= 1.12 usb 2-1: New USB device strings: Mfr=1, Product=3, SerialNumber=0 usb 2-1: Product: UMC404HD 192k usb 2-1: Manufacturer: BEHRINGER

TkonekT commented 8 months ago

Same problem with live usb Linux Mint on another computer. This workstation was configured with Windows 8, and OMS works fine with it...

xhpohanka commented 8 months ago

Actually I was not able to use OSM on Linux reliably. It's a bit pain for me, as it is my primary system. When I need it I switch to windows.

TkonekT commented 8 months ago

Maybe JACK support would perhaps avoid having problems related to the hardware, as suggested on the https://github.com/psmokotnin/osm/pull/60 pull-request.

TkonekT commented 6 months ago

Same issue with Focusrite Scarlett 4i4 gen 3 (new purchase thinking it was going to be good), but works with a Scarlett 2i2 gen 3 (loaned before purchase) !!!

So I'm really disappointed...

TkonekT commented 2 months ago

Merci ! @jeromelebleu

Your modification solved the problem on my Scarlett 4i4 GEN3. Thanks a lot!

jeromelebleu commented 2 months ago

You're welcome @TkonekT, glad to know that it solved your problem too! Hope that it will be fixed in upstream at some time…

psmokotnin commented 2 months ago

For the next release soon, there will be a fix included.