两三天前开始出现这种情况。我在 raspberry pi 4b 上安装了 ubuntu 21.04,并在其上安装了 lmms。它运行得很好,但有一天,我尝试将音频服务器从 pulseaudio 切换到 jackd2。我将延迟调到最低。(我会显示屏幕截图,但 lmms gui 不起作用。)它显示启动屏幕,但现在它不会显示 gui。有时会弹出一个错误窗口,显示“ubuntu 有内部错误”,另一个窗口显示“lmms 意外关闭”。每次我尝试时它都不会这样做;有时它什么都不显示。它只是没有调出 gui。我尝试通过终端启动 lmms,这些是它生成的错误日志。
pi@pi-raspberrypi:~$ lmms
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Notice: could not set realtime priority.
Cannot connect to server socket err = Connection refused
Cannot connect to server request channel
jackdmp 1.9.17
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2021 Filipe Coelho.
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
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
ALSA: Cannot open PCM device alsa_pcm for capture. Falling back to playback-only mode
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback
Cannot use real-time scheduling (RR/10) (1: Operation not permitted)
AcquireSelfRealTime error
Cannot use real-time scheduling (RR/5) (1: Operation not permitted)
JackClient::AcquireSelfRealTime error
JackEngine::XRun: client = lmms was not finished, state = Running
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
JackEngine::XRun: client = lmms was not finished, state = Triggered
JackAudioDriver::ProcessGraphAsyncMaster: Process error
Destination port in attempted (dis)connection of system:playback_2 and is not an input port
Segmentation fault (core dumped)
pi@pi-raspberrypi:~$ Destination port in attempted (dis)connection of system:playback_2 and is not an input port
JackGraphManager::Disconnect: port_src = 10 not used name =
Input port index = 10 not found for application ref = 2
Unknown error...
terminate called after throwing an instance of 'Jack::JackTemporaryException'
what():
我通过几种不同的方式重新安装了 lmms,例如通过终端使用 snap、通过 snap sotre 使用 snap 以及通过 apt 终端使用 snap,但问题依然存在。知道该如何修复吗?这似乎与错误安装的 jack 有关。我尝试重新安装所有能找到的 jack、libjack 和 jackd 软件包,但仍然没有修复。
答案1
我修好了它!!!我清除了所有 jack、jackd 和 libjackd 软件包;lmms 现在只是开始要求我更改音频服务器。我选择了音频服务器,它工作正常。这似乎是我通过删除内容绕过的内部故障。这不是一个非常干净的修复,对我来说没什么意义。但它解决了问题。(它至少让 lmms 工作,如果它没有修复它,只是绕过它)它现在完美地工作了,这才是最重要的。