Getting “Error on input: java.io.IOException: Resource temporarily unavailable” when pressing Tab in jshell

半腔热情 提交于 2021-01-28 05:30:55

问题


So I was fiddling some code in jshell, but it started crashing when I pressed Tab.

int[] a = new int[]{1, 2, 5, 0, -1}

In my next statement, when I type A-r-r-a, then (Tab) to autocomplete to Array and get options, it crashes with

Error on input: java.io.IOException: Resource temporarily unavailable

Does anyone know how to fix this?

EDIT: I'm using Elementary OS Juno. It is a distro based on Ubuntu 18.04


回答1:


I believe this may be a result of https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1813873, which says that is missing the second of two patches, and

This second patch is required to prevent a rather serious regression where userspace applications reading from stdin can receive EAGAIN when they should not.

(Note the EAGAIN is "Resource temporarily unavailable"). I can reproduce this jshell bug when running kernel 4.15.0-44 or 4.15.0-45, but not when running 4.15.0-43. If my skimming of the aforementioned bug ticket is accurate, it seems that a new kernel version with the patch applied should be released on March 4.



来源:https://stackoverflow.com/questions/54859244/getting-error-on-input-java-io-ioexception-resource-temporarily-unavailable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!