View Issue Details

IDProjectCategoryView StatusLast Update
0007236ardourbugspublic2017-02-13 10:38
Reporterjwilliams Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status feedbackResolutionopen 
PlatformGNU/LinuxOSFedoraOS Version25
Product Version5.5 
Summary0007236: Ardour was working fine, now can't load sessions
DescriptionI had Ardour5 working fine, and spent several happy hours creating a song. Then one day I went to start Ardour, and it crashed on opening the session. What's more, it can't open any other sessions, or create new ones.

Maybe something happened during a system update? I have no idea. I've tried starting Ardour with plugins disabled, but the problem remains. I've spent several hours searching online for a solution, to no avail :-(
Steps To Reproduce1. Start jackd, either from terminal or qjackctl
2. Attempt to start Ardour
3. Weep with frustration as it fails
Additional InformationThe attached file shows the Ardour output from running from a terminal.

The following are

1. the output from ulimit
2. /etc/security/limits.d/95-jack.conf
3. the id command, showing my group membership.

The directives in the limit configuration file do not appear to be working! But, as I said above, Ardour was working fine (presumably under these conditions?), until one day it doesn't!

ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 63593
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 63593
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

> cat /etc/security/limits.d/95-jack.conf
# Default limits for users of jack-audio-connection-kit

@jackuser hard rtprio 90
@jackuser hard memlock unlimited

@pulse-rt - rtprio 20
@pulse-rt - nice -20


> id
uid=1001(john) gid=1001(john) groups=1001(john),10(wheel),63(audio),970(wireshark),975(vboxusers),978(jackuser),984(pulse-rt),1002(ipfs),1003(developers),1004(plugdev),1005(realtime) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
TagsNo tags attached.

Activities

jwilliams

2017-02-13 09:11

reporter  

ardour-session.txt (11,975 bytes)   
> 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.5.0 (built using 5.5 and GCC version 6.2.1 20160916 (Red Hat 6.2.1-2))
ardour: [INFO]: Your system is configured to limit Ardour to only 4,096 open files
ardour: [INFO]: Loading system configuration file /etc/ardour5/system_config
ardour: [INFO]: Loading user configuration file /home/john/.config/ardour5/config
ardour: [INFO]: CPU vendor: GenuineIntel
ardour: [INFO]: AVX-capable processor
ardour: [INFO]: CPU brand: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
ardour: [INFO]: Using SSE optimized routines
Cannot xinstall SIGPIPE error handler
ardour: [INFO]: Loading default ui configuration file /etc/ardour5/default_ui_config
ardour: [INFO]: Loading user ui configuration file /home/john/.config/ardour5/ui_config
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
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Found nothing along /home/john/.config/ardour5/templates:/usr/share/ardour5/templates
run dialog
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JACK command line will be: /usr/bin/jackd -t 200 -p 2048 -R -T -d alsa -n 2 -r 44100 -p 1024 -d hw:USB,0
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
JACK server starting in realtime mode with priority 20
self-connect-mode is "Don't restrict self connect requests"
Cannot lock down 107335194 byte memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:USB,0|hw:USB,0|1024|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
Using port names patch v0.1 (07.04.2010)
Trying to load portnames from /home/john/.config/jack/cards/Scarlett 2i2 USB.ss.ports.in
Trying to load portnames from /home/john/.config/jack/cards/Scarlett 2i2 USB.ports.in
Trying to load portnames from /etc/jack/cards/Scarlett 2i2 USB.ss.ports.in
Trying to load portnames from /etc/jack/cards/Scarlett 2i2 USB.ports.in
Trying to load portnames from /home/john/.config/jack/cards/Scarlett 2i2 USB.ss.ports.out
Trying to load portnames from /home/john/.config/jack/cards/Scarlett 2i2 USB.ports.out
Trying to load portnames from /etc/jack/cards/Scarlett 2i2 USB.ss.ports.out
Trying to load portnames from /etc/jack/cards/Scarlett 2i2 USB.ports.out
Cannot use real-time scheduling (RR/20)(1: Operation not permitted)
AcquireSelfRealTime error
Cannot lock down 107335194 byte memory area (Cannot allocate memory)
protocol Wiimote active ? 0
protocol PreSonus FaderPort active ? 0
protocol Generic MIDI active ? 0
protocol Open Sound Control (OSC) active ? 0
protocol Mackie active ? 0
Scanning folders for bundled LV2s: /usr/lib64/ardour5/LV2
KP is ardour.keys
Set cursor set to default
RESPONSE -1

Errors/Messages:
ERROR: JACK: Cannot use real-time scheduling (RR/15)(1: Operation not permitted)
ERROR: JACK: JackClient::AcquireSelfRealTime error
INFO: Loading keybindings from /etc/ardour5/ardour.keys
WARNING: Video-monitor 'xjadeo' was not found. Please install http://xjadeo.sf.net/ (a custom path to xjadeo can be specified by setting the XJREMOTE environment variable. It should point to an application compatible with xjadeo's remote-control interface 'xjremote').

see also http://manual.ardour.org/video-timeline/setup/
INFO: Loading bindings from /etc/ardour5/ardour.keys
Loading menus from /etc/ardour5/ardour.menus
ERROR: JACK: Cannot create thread res = 1

run dialog

Errors/Messages:
ERROR: JACK: Cannot use real-time scheduling (RR/15)(1: Operation not permitted)
ERROR: JACK: JackClient::AcquireSelfRealTime error
INFO: Loading keybindings from /etc/ardour5/ardour.keys
WARNING: Video-monitor 'xjadeo' was not found. Please install http://xjadeo.sf.net/ (a custom path to xjadeo can be specified by setting the XJREMOTE environment variable. It should point to an application compatible with xjadeo's remote-control interface 'xjremote').

see also http://manual.ardour.org/video-timeline/setup/
INFO: Loading bindings from /etc/ardour5/ardour.keys
Loading menus from /etc/ardour5/ardour.menus
ERROR: JACK: Cannot create thread res = 1
ERROR: JACK: Cannot create thread res = 1

run dialog

Errors/Messages:
ERROR: JACK: Cannot use real-time scheduling (RR/15)(1: Operation not permitted)
ERROR: JACK: JackClient::AcquireSelfRealTime error
INFO: Loading keybindings from /etc/ardour5/ardour.keys
WARNING: Video-monitor 'xjadeo' was not found. Please install http://xjadeo.sf.net/ (a custom path to xjadeo can be specified by setting the XJREMOTE environment variable. It should point to an application compatible with xjadeo's remote-control interface 'xjremote').

see also http://manual.ardour.org/video-timeline/setup/
INFO: Loading bindings from /etc/ardour5/ardour.keys
Loading menus from /etc/ardour5/ardour.menus
ERROR: JACK: Cannot create thread res = 1
ERROR: JACK: Cannot create thread res = 1
ERROR: JACK: Cannot create thread res = 1

run dialog
JackTemporaryException : now quits...
Jack main caught signal 2
Released audio card Audio1
audio_reservation_finish
JACK command line will be: /usr/bin/jackd -t 200 -p 2048 -R -T -d alsa -n 2 -r 44100 -p 1024 -d hw:USB,0
jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2014 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
JACK server starting in realtime mode with priority 20
self-connect-mode is "Don't restrict self connect requests"
Cannot lock down 107335194 byte memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio1
creating alsa driver ... hw:USB,0|hw:USB,0|1024|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
Using port names patch v0.1 (07.04.2010)
Trying to load portnames from /home/john/.config/jack/cards/Scarlett 2i2 USB.ss.ports.in
Trying to load portnames from /home/john/.config/jack/cards/Scarlett 2i2 USB.ports.in
Trying to load portnames from /etc/jack/cards/Scarlett 2i2 USB.ss.ports.in
Trying to load portnames from /etc/jack/cards/Scarlett 2i2 USB.ports.in
Trying to load portnames from /home/john/.config/jack/cards/Scarlett 2i2 USB.ss.ports.out
Trying to load portnames from /home/john/.config/jack/cards/Scarlett 2i2 USB.ports.out
Trying to load portnames from /etc/jack/cards/Scarlett 2i2 USB.ss.ports.out
Trying to load portnames from /etc/jack/cards/Scarlett 2i2 USB.ports.out
Cannot use real-time scheduling (RR/20)(1: Operation not permitted)
AcquireSelfRealTime error
RESPONSE -1
Here are the errors associated with this failed session:

Errors/Messages:
ERROR: JACK: Cannot use real-time scheduling (RR/15)(1: Operation not permitted)
ERROR: JACK: JackClient::AcquireSelfRealTime error
INFO: Loading keybindings from /etc/ardour5/ardour.keys
WARNING: Video-monitor 'xjadeo' was not found. Please install http://xjadeo.sf.net/ (a custom path to xjadeo can be specified by setting the XJREMOTE environment variable. It should point to an application compatible with xjadeo's remote-control interface 'xjremote').

see also http://manual.ardour.org/video-timeline/setup/
INFO: Loading bindings from /etc/ardour5/ardour.keys
Loading menus from /etc/ardour5/ardour.menus
ERROR: JACK: Cannot create thread res = 1
ERROR: JACK: Cannot create thread res = 1
ERROR: JACK: Cannot create thread res = 1
ERROR: JACK: Cannot connect to server socket err = No such file or directory
ERROR: JACK: Cannot connect to server request channel
ERROR: JACK: jack server is not running or cannot be started
ERROR: JACK: Cannot connect to server socket err = No such file or directory
ERROR: JACK: Cannot connect to server request channel
ERROR: JACK: jack server is not running or cannot be started
ERROR: JACK: Cannot connect to server socket err = No such file or directory
ERROR: JACK: Cannot connect to server request channel
ERROR: JACK: jack server is not running or cannot be started
ERROR: JACK: Cannot connect to server socket err = No such file or directory
ERROR: JACK: Cannot connect to server request channel
ERROR: JACK: Cannot lock down 107335194 byte memory area (Cannot allocate memory)
ERROR: JACK: Cannot use real-time scheduling (RR/15)(1: Operation not permitted)
ERROR: JACK: JackClient::AcquireSelfRealTime error
ERROR: JACK: Cannot create thread res = 1

---------
run dialog
Cannot get session parameters.
JackTemporaryException : now quits...
Jack main caught signal 2
Released audio card Audio1
audio_reservation_finish

>john
ardour-session.txt (11,975 bytes)   

jwilliams

2017-02-13 09:13

reporter   ~0019371

Update: when starting jackd in non-realtime mode, ardour crashes with this:


/usr/lib64/ardour5/ardour-5.5.0: symbol lookup error: /usr/lib64/ardour5/vamp/libardourvampplugins.so: undefined symbol: kiss_fftr_alloc

jwilliams

2017-02-13 09:28

reporter   ~0019372

The ulimit problem appears to be a known bug in Fedora 25. However running >su - $USER means that the limits are applied correctly in the resulting shell, and jackd can start with realtime privileges. Also, Ardour no longer complains about being unable to lock memory, but has the following result (still unable to load or create sessions):

 ardour5
bind txt domain [gtk2_ardour5] to /usr/share/ardour5/locale
Ardour5.5.0 (built using 5.5 and GCC version 6.2.1 20160916 (Red Hat 6.2.1-2))
ardour: [INFO]: Your system is configured to limit Ardour to only 4,096 open files
ardour: [INFO]: Loading system configuration file /etc/ardour5/system_config
ardour: [INFO]: Loading user configuration file /home/john/.config/ardour5/config
ardour: [INFO]: CPU vendor: GenuineIntel
ardour: [INFO]: AVX-capable processor
ardour: [INFO]: CPU brand: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
ardour: [INFO]: Using SSE optimized routines
Cannot xinstall SIGPIPE error handler
ardour: [INFO]: Loading default ui configuration file /etc/ardour5/default_ui_config
ardour: [INFO]: Loading user ui configuration file /home/john/.config/ardour5/ui_config
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/john/.config/ardour5/templates:/usr/share/ardour5/templates
run dialog
protocol Wiimote active ? 0
protocol PreSonus FaderPort active ? 0
protocol Generic MIDI active ? 0
protocol Open Sound Control (OSC) active ? 0
protocol Mackie active ? 0
Scanning folders for bundled LV2s: /usr/lib64/ardour5/LV2
KP is ardour.keys
Set cursor set to default
Set buffering params to 262144|131072|10|10
/usr/lib64/ardour5/ardour-5.5.0: symbol lookup error: /usr/lib64/ardour5/vamp/libardourvampplugins.so: undefined symbol: kiss_fftr_alloc
Cannot read socket fd = 11 err = Connection reset by peer
Could not read notification result
ClientNotify fails name = ardour notification = 18 val1 = 0 val2 = 0
Cannot write socket fd = 11 err = Broken pipe
CheckRes error
Could not write notification
ClientNotify fails name = ardour notification = 18 val1 = 1 val2 = 0
Cannot write socket fd = 11 err = Broken pipe
CheckRes error
Could not write notification
ClientNotify fails name = ardour notification = 4 val1 = 0 val2 = 0
Cannot write socket fd = 11 err = Broken pipe

timbyr

2017-02-13 09:44

developer   ~0019373

To verify that this is not just an issue with the Fedora build of Ardour, can you please download the latest version (There is a demo) from ardour.org and let us know if you experience the same issue. Thanks.

x42

2017-02-13 10:38

administrator   ~0019376

When used with JACK, Ardour requires realtime permissions. However on recent Fedora there's:

https://bugzilla.redhat.com/show_bug.cgi?id=1364332
http://forums.fedoraforum.org/showthread.php?t=288601


As for the missing symbol, that sounds like a build/packaging mistake of your distro (Fedora does not use Ardour's internal libs)

I suggest to use a https://nightly.ardour.org/ build with Ardour's ALSA backend (no JACK) and file a bug report with Fedora.

Issue History

Date Modified Username Field Change
2017-02-13 09:11 jwilliams New Issue
2017-02-13 09:11 jwilliams File Added: ardour-session.txt
2017-02-13 09:13 jwilliams Note Added: 0019371
2017-02-13 09:28 jwilliams Note Added: 0019372
2017-02-13 09:44 timbyr Note Added: 0019373
2017-02-13 09:44 timbyr Status new => feedback
2017-02-13 10:38 x42 Note Added: 0019376