Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xhpohanka opened this issue Jul 26, 2023 · 9 comments
Open

Comments

@xhpohanka
Copy link

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
Copy link
Owner

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

@TkonekT
Copy link

TkonekT commented Mar 17, 2024

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-x86_64.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.

  • The desktop has Debian (Sid) with the kernel deliberately locked to version 5.15.0-3-amd64 (for a number of reasons, including the capricious use of VMware player for OBD II, but let's not get carried away)...
    ---> OMS works with all soundcards (Behringer UMC404HD & Midas M32) with kernel 5.15.0-3-amd64 but not with 6.7.9-amd64(sid), anyway, I've gone back to version 5.15.0-3-amd64..

  • The laptop has the latest Debian Stable, with a kernel in 6.1.0-18-amd64 (PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01))
    ---> With Behringer UMC404HD card, OMS won't generate sound when measurement is enabled on my laptop with a standard 6.1.0-18-amd64 kernel and even with a 5.15.152-amd64 kernel which I had to compile, because 5.15.0-3-amd64 kernel was no longer present in the repositories...
    But I insist, with this laptop setup, the internal sound card and the external Midas M32R sound card can generate a sound while the measurement is in progress
    I also tested Room Eq Wizard which didn't give me any problems with all the cards are, but maybe (definitely) the hardware calls don't work the same way.

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
Copy link

TkonekT commented Mar 18, 2024

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

@xhpohanka
Copy link
Author

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
Copy link

TkonekT commented Mar 20, 2024

Maybe JACK support would perhaps avoid having problems related to the hardware, as suggested on the #60 pull-request.

@TkonekT
Copy link

TkonekT commented Apr 30, 2024

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
Copy link

TkonekT commented Sep 8, 2024

Merci ! @jeromelebleu

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

@jeromelebleu
Copy link

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants