Fri, 12 May 2023 10:56:52 +0200 Bengt Gördén <bengan@bag.org> :
On 2023-05-12 08:17, Per Jessen wrote:
bent fender wrote:
Leap-15.4
I don't have the Leap so I can only comment in general terms.
Regardless of whether I start qjackctl before or not, launching rosegarden fails with this
~ # rosegarden Cannot lock down 86611866 byte memory area (Cannot allocate memory) Cannot use real-time scheduling (RR/5)(1: Operation not permitted) JackClient::AcquireSelfRealTime error Segmentation fault (core dumped)
I have no idea what 'rosegarden' even is, so just some wild guessing -
this sounds like some sort of permissions/privileges/limits issue - locking down memory, (presumably a failed mlock() ?) real-time scheduling not permitted etc.
Per is right here. It could be several things but I would try limits first.
You should have a file /etc/security/limits.d/audio.conf or /usr/etc/security/limits.d/audio.conf that says:
@audio - rtprio 95 @audio - memlock unlimited #@audio - nice -19
There was no 'audio.conf' anywhere in the system, so I placed one with the above 3 lines at /etc/security/limits.d/audio.conf That made some progress, all I get now is clean segfault :-)
Be sure to restart your computer after that. Logout/login doesn't seem to do the trick here.
You can also install studio-controls (from edogawa) which takes care of your audio/jack setup. I ported it a couple of years ago but edogawa made it better.
https://software.opensuse.org/package/studio-controls
-- /bengan