brummer10 / guitarix

guitarix virtual versatile amplification for Jack/Linux
249 stars 26 forks source link

failed to lock memory: Cannot allocate memory #54

Closed FabioNevesRezende closed 3 years ago

FabioNevesRezende commented 3 years ago

I've already used guitarix in other distros (Debian, Artix) but now (on Archlinux) I'm having error trying to use it. When I start the program (with jackd already runnig through QJackCtl as I always did and worked) it fails wit this error messages:

[16:17:43] system init *** mlockall failed: [16:17:43] system init

failed to lock memory: Cannot allocate memory [16:17:43] system init failed to lock memory: Cannot allocate memory [16:17:44]

loaded state *** from file /home/fabio/.config/guitarix/gx_head_rc

[16:17:44] Jack init *** The jack sample rate is 48000/sec

[16:17:44] Jack init *** The jack buffer size is 1024/frames ...

[16:17:44] PitchTracker *** error creating realtime thread - tuner

not started

I've already added my user to the audio group and restarted but the error remains.

hfiguiere commented 3 years ago

you say you have used it on other distro, but you didn't tell which one it is this time.

FabioNevesRezende commented 3 years ago

@hfiguiere I've edited and added the distros

hfiguiere commented 3 years ago

Apparently on ArchLinux the user needs to be added to a realtime group.

https://wiki.archlinux.org/index.php/Realtime_process_management https://wiki.archlinux.org/index.php/Professional_audio

FabioNevesRezende commented 3 years ago

yup, that solved the problem, thanks