我的 Firefox 每隔几天就会死机。
它说:超出 CPU 时间限制(核心已转储)
有什么办法可以取消或至少提高这个限制吗?
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[Child 867149, MediaDecoderStateMachine #1] WARNING: Decoder=7f46622d9800 Decode error: NS_ERROR_DOM_MEDIA_CANCELED (0x806e000a) - RefPtr<MediaSourceTrackDemuxer::SeekPromise> mozilla::MediaSourceTrackDemuxer::DoSeek(const mozilla::media::TimeUnit &): manager is detached.: file /build/firefox-oDiU8w/firefox-96.0+build2/dom/media/MediaDecoderStateMachine.cpp:3568
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
CPU time limit exceeded (core dumped)
ulimit
不建议任何 CPU 限制:
$ 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) 127356
max locked memory (kbytes, -l) 65536
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) 127356
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
操作系统:Ubuntu 20.04 火狐:96.0
可能与https://bugzilla.mozilla.org/show_bug.cgi?id=1538435
chrt -o 0 firefox
似乎有一段时间有效,但现在不再有效。
我检查了是否对任何进程设置了任何 cpu 限制:
grep cpu */limits|grep -v 'unlimited.*unlimited'
这没有造成任何打击。但这列出了所有 firefox 进程:
$ grep realt */limits|grep -v 'unlimited.*unlimited'|G 000
3238579/limits:Max realtime timeout 50000 200000 us
这可能就是原因。但我该如何改变呢?
答案1
我禁用了 Snowflake(“tor”)插件,问题就停止了。