Ardour5 can't create new session

Support & discussion regarding DAWs and MIDI sequencers.

Moderators: MattKingUSA, khz

Post Reply
daggaz
Established Member
Posts: 22
Joined: Sun Nov 27, 2011 8:25 am

Ardour5 can't create new session

Post by daggaz »

Hi.
I have a fresh installation of Ardour 5 in Manjaro + KX Studio Tools, but when I try to create a new file or open an old one I get a series of errors related to the locked memory and some realtime setup issues...
I already lookup for some more info about how to edit /etc/security/limits.conf or how to give more memory, but all the threads I could find are old, outdated or very vage.
Has anyone some idea of how to solve this?
Here's what the terminal shows when I run Ardour there:

Code: Select all

user$ ardour5
WARNING: Your system has a limit for maximum amount of locked memory!
         This might cause Ardour to run out of memory before your system runs
         out of memory. You can view the memory limit with 'ulimit -l', and it
         is normally controlled by /etc/security/limits.conf

bind txt domain [gtk2_ardour5] to /usr/share/ardour5/locale
Ardour5.12.0 (built using 5.12 and GCC version 8.3.0)
ardour: [INFO]: Your system is configured to limit Ardour to only 1048576 open files
ardour: [INFO]: Loading system configuration file /etc/ardour5/system_config
ardour: [INFO]: Loading user configuration file /home/diego/.config/ardour5/config
ardour: [INFO]: CPU vendor: GenuineIntel
ardour: [INFO]: AVX-capable processor
ardour: [INFO]: CPU brand:       Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
ardour: [INFO]: Using SSE optimized routines
ardour: [INFO]: Loading default ui configuration file /etc/ardour5/default_ui_config
ardour: [INFO]: Loading user ui configuration file /home/diego/.config/ardour5/ui_config
Color shuttle bg not found
ardour: [INFO]: Loading color file /usr/share/ardour5/themes/dark-ardour.colors
ardour: [INFO]: Loading ui configuration file /etc/ardour5/clearlooks.rc
ardour: [INFO]: Loading ui configuration file /etc/ardour5/clearlooks.rc
Found nothing along /home/diego/.config/ardour5/templates:/usr/share/ardour5/templates
run dialog
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
Scanning folders for bundled LV2s: /usr/lib/ardour5/LV2
error: failed to expand CURIE `lv2patch:writable'
lilv_world_load_file(): error: Error loading file `file:///usr/lib/lv2/padthv1.lv2/padthv1.ttl'
Set cursor set to default
Here are the errors associated with this failed session:

Errors/Messages:
ERROR: JACK: Cannot use real-time scheduling (RR/5)(1: Operation not permitted)
ERROR: JACK: JackClient::AcquireSelfRealTime error
ERROR: LADSPA: cannot load module "/usr/lib/ladspa/lsp-plugins-ladspa.so" (/usr/lib/ladspa/lsp-plugins-ladspa.so: undefined symbol: _ZN3lsp17builtin_resourcesE)
ERROR: LADSPA: cannot load module "/usr/lib/ladspa/lsp-plugins-ladspa.so" (/usr/lib/ladspa/lsp-plugins-ladspa.so: undefined symbol: _ZN3lsp17builtin_resourcesE)
ERROR: LADSPA: cannot load module "/usr/lib/ladspa/lsp-plugins-ladspa.so" (/usr/lib/ladspa/lsp-plugins-ladspa.so: undefined symbol: _ZN3lsp17builtin_resourcesE)
WARNING: Ignoring LV2 plugin "Big Meter" because its buffer-size requirements cannot be satisfied.
WARNING: Ignoring invalid LV2 plugin http://padthv1.sourceforge.net/lv2
INFO: Loading bindings from /etc/ardour5/ardour.keys
Loading menus from /etc/ardour5/ardour.menus
ERROR: JACK: Cannot create thread res = 1

---------
run dialog
Cannot get session parameters.
Thanks!
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: Ardour5 can't create new session

Post by merlyn »

I use Arch and I'd guess Manjaro does realtime and memory lock config the same way.

Have you installed the realtime-privileges package?

That creates /etc/security/limits.d/99-realtime-privileges.conf with the correct entries.
daggaz
Established Member
Posts: 22
Joined: Sun Nov 27, 2011 8:25 am

Re: Ardour5 can't create new session

Post by daggaz »

In theory it is already installed and running in real-time mode :/ (See attached).
Attachments
Screenshot from 2019-08-08 18-00-47.png
Screenshot from 2019-08-08 18-00-47.png (109.82 KiB) Viewed 1194 times
Screenshot from 2019-08-08 17-57-31.png
Screenshot from 2019-08-08 17-57-31.png (43.94 KiB) Viewed 1194 times
merlyn
Established Member
Posts: 1392
Joined: Thu Oct 11, 2018 4:13 pm
Has thanked: 168 times
Been thanked: 247 times

Re: Ardour5 can't create new session

Post by merlyn »

Is your user in the realtime group?
User avatar
turbidh20
Established Member
Posts: 190
Joined: Sun Aug 04, 2019 12:48 pm
Location: UK
Has thanked: 8 times
Been thanked: 2 times

Re: Ardour5 can't create new session

Post by turbidh20 »

I'm using the core repo kernel in Arch with the following tweaks...

/etc/sysctl.d/99-sysctl.conf

Code: Select all

fs.inotify.max_user_watches = 600000
vm.swappiness = 10
I implement these changes at boot (my own systemd startup.service)...

Code: Select all

# increase the highest requested RTC interrupt frequency (default is 64 Hz)
echo 2048 > /sys/class/rtc/rtc0/max_user_freq
echo 2048 > /proc/sys/dev/hpet/max-user-freq
As Merlin said, install the realtime-privileges package and you need to be in the realtime group. I'm also in the audio group. The Arch wiki has all you need.

I'm currently running Jack @48KHz for 3 msec latency (Parameters -> 48000/48/3).
Arch Linux (i7-4790k/GTX970); UMC204HD; MPK Mini MKII; Jack2 (QjackCtl) & Ardour/Mixbus
Post Reply