无法启动 jack(无法分配内存)

无法启动 jack(无法分配内存)

我想在插孔上使用PulseAudio,所以我关闭脉冲现在想使用 启动 jack qjackctl。但是,这会导致以下错误日志:

22:14:15.933 Patch Panel disabled
22:14:15.940 Reset statistics.
22:14:15.953 Changed ASLA connection.
22:14:15.970 D-BUS: Service available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = File or directory not found
Cannot connect to server socket
jack server is not running or cannot be started
22:14:15.980 Updated visualization of ASLA connections
22:14:18.147 D-BUS: Unable to start JACK server
Cannot connect to server socket err = File or directory not found
Cannot connect to server socket
jack server is not running or cannot be started
Fri Jul 20 22:14:18 2012: Starting jack server...
Fri Jul 20 22:14:18 2012: JACK server starting in realtime mode with priority 10
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Cannot lock down 82246176 byte memory area (Cannot allocate memory)[0m
Fri Jul 20 22:14:18 2012: control device hw:0
Fri Jul 20 22:14:18 2012: control device hw:0
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Failed to acquire device name : Audio0 error : Cannot allocate memory[0m
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Audio device hw:0 cannot be acquired...[0m
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Cannot initialize driver[0m
Fri Jul 20 22:14:18 2012: [1m[31mERROR: JackServer::Open() failed with -1[0m
Fri Jul 20 22:14:18 2012: [1m[31mERROR: Failed to open server[0m
Fri Jul 20 22:14:19 2012: Saving settings to "/home/jan/.config/jack/conf.xml" ...
22:14:24.418 Cannot connect to JACK server as client - connection failed. See message dialog for details.
Cannot connect to server socket err = File or directory not found
Cannot connect to server socket
jack server is not running or cannot be started

(有几条消息是德语的,我尽力翻译了)

pulseaudio 进程肯定没有运行。

我使用带有 NVIDIA 声卡的 Ubuntu 12.04 64 位。

答案1

好的,明白了:我必须将自己添加到组中audio

usermod -a -G audio theusername

群组成员资格仅在登录时更新,因此您需要注销并重新登录(或重新启动)

答案2

快速版本:这是我添加的/etc/security/limits.conf修复内存锁定问题;@ 符号表示设置针对的是组而不是用户:

 user        soft      rtprio      90
 user        soft      memlock      unlimited

 @audio      hard      rtprio      90
 @audio      hard      memlock      unlimited

 @video      hard      rtprio      90
 @video      hard      memlock      unlimited

有一个简单的方法可以解决这个问题“无法锁定 82246176 字节内存区域。”内存锁通常很小。您可以使用ulimit -l或 自行检查以获得最大乐趣ulimit -a。或者,如果您不喜欢乐趣,请使用最大信息。

您想要配置系统以允许您的用户和相关组使用无限内存。

这些设置位于 /etc/security/limits.conf 中;该文件本身不执行任何操作,但会解释您的选项。如果ulimit -l您按照上述示例操作后没有返回“unlimited”,则说明文档中的设置存在问题。

回复:关于 D​​ocker(或 snapd,或任何类型的虚拟化)的人们的问题,您可能没有足够的可用内存,或者配置文件可能无法编辑。或者它可能有效。

相关内容