最近使用Yocto的bitbake指令时,出现了如下错误提示
ERROR: Worker process (12928) exited unexpectedly (-9), shutting down...
ERROR: Worker process (12928) exited unexpectedly (-9), shutting down...
ERROR: Worker process (12928) exited unexpectedly (-9), shutting down...
ERROR: Worker process (12928) exited unexpectedly (-9), shutting down...
查看了官方网站 官方给出的原因是:
Some bitbake processes quit unexpectedly due to low memory.
官方解决办法是:
在build/conf/local.conf的最后加上下面一句话,用来限制线程数。
BB_NUMBER_THREADS = "6"
但是当我加上限制线程数的语句后,虽然线程被限制了,但是依旧出错。
考虑到网上说的有可能是RAM过低的原因,于是修改虚拟机的内存,从2G加到了4G。
再次运行bitbake,就没问题了