Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to spawn process for heartbeat #218

Open
featheryus opened this issue Sep 13, 2024 · 2 comments
Open

fail to spawn process for heartbeat #218

featheryus opened this issue Sep 13, 2024 · 2 comments

Comments

@featheryus
Copy link

Error 14时12分34秒 msg_show.lua_error Error executing vim.schedule lua callback: .../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:406: Failed to spawn process: {
_additional_on_exit_callbacks = {},
_shutdown_check = <userdata 1>,
_stderr_results = {},
_stdout_results = {},
_user_on_exit = <function 1>,
args = { "-sSL", "-D", "/tmp/plenary_curl_223c46fc.headers", "-X", "POST", "-H", "Content-Type: application/json", "-d", "@/tmp/lua_xXzsA0", "http://127.0.0.1:64597/exa.language_server_pb.LanguageServerService/Heartbeat" },
command = "curl",
enable_handlers = true,
enable_recording = true,
interactive = true,
pid = "EAGAIN: resource temporarily unavailable",
stderr = <userdata 2>,
stdin = <userdata 3>,
stdout = <userdata 4>,
user_data = {},
= <1>{
__index = <table 1>,
_create_uv_options = <function 2>,
_execute = <function 3>,
_pipes_are_closed = <function 4>,
_prepare_pipes = <function 5>,
_reset = <function 6>,
_shutdown = <function 7>,
_stop = <function 8>,
add_on_exit_callback = <function 9>,
after = <function 10>,
after_failure = <function 11>,
after_success = <function 12>,
and_then = <function 13>,
and_then_on_failure = <function 14>,
and_then_on_failure_wrap = <function 15>,
and_then_on_success = <function 16>,
and_then_on_success_wrap = <function 17>,
and_then_wrap = <function 18>,
chain = <function 19>,
chain_status = <function 20>,
co_wait = <function 21>,
is_job = <function 22>,
join = <function 23>,
new = <function 24>,
pid = <function 25>,
result = <function 26>,
send = <function 27>,
shutdown = <function 28>,
start = <function 29>,
stderr_result = <function 30>,
sync = <function 31>,
wait = <function 32>
}
}
stack traceback:
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:406: in function '_execute'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:449: in function 'start'
....local/share/nvim/lazy/plenary.nvim/lua/plenary/curl.lua:313: in function 'post'
...u/.local/share/nvim/lazy/codeium.nvim/lua/codeium/io.lua:440: in function 'post'
.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:169: in function 'request'
.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:176: in function 'do_heartbeat'
.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:311: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
[C]: in function 'error'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:406: in function '_execute'
.../.local/share/nvim/lazy/plenary.nvim/lua/plenary/job.lua:449: in function 'start'
....local/share/nvim/lazy/plenary.nvim/lua/plenary/curl.lua:313: in function 'post'
...u/.local/share/nvim/lazy/codeium.nvim/lua/codeium/io.lua:440: in function 'post'
.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:169: in function 'request'
.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:176: in function 'do_heartbeat'
.../.local/share/nvim/lazy/codeium.nvim/lua/codeium/api.lua:311: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>

@featheryus
Copy link
Author

featheryus commented Sep 13, 2024

when problem occurs, I found thounds of curl process running like
501 99453 ?? 0:00.02 curl -sSL -D /tmp/plenary_curl_cdd9486f.headers -X POST -H Content-Type: application/json -d @/tmp/lua_IFnUUU http://127.0.0.1:50470/exa.language_server_pb.LanguageServerService/Heartbeat
501 99478 ?? 0:00.05 /usr/bin/curl http://127.0.0.1:50442/exa.language_server_pb.LanguageServerService/Heartbeat --header Content-Type: application/json -d@-
501 99514 ?? 0:00.02 curl -sSL -D /tmp/plenary_curl_33cc4e2c.headers -X POST -H Content-Type: application/json -d @/tmp/lua_fXOsEW http://127.0.0.1:50470/exa.language_server_pb.LanguageServerService/Heartbeat
501 99542 ?? 0:00.06 /usr/bin/curl http://127.0.0.1:50442/exa.language_server_pb.LanguageServerService/Heartbeat --header Content-Type: application/json -d@-
501 99591 ?? 0:00.02 curl -sSL -D /tmp/plenary_curl_71924637.headers -X POST -H Content-Type: application/json -d @/tmp/lua_MJN4IU http://127.0.0.1:50470/exa.language_server_pb.LanguageServerService/Heartbeat
501 99619 ?? 0:00.05 /usr/bin/curl http://127.0.0.1:50442/exa.language_server_pb.LanguageServerService/Heartbeat --header Content-Type: application/json -d@-
501 99662 ?? 0:00.02 curl -sSL -D /tmp/plenary_curl_ec1344e3.headers -X POST -H Content-Type: application/json -d @/tmp/lua_i4ScsR http://127.0.0.1:50470/exa.language_server_pb.LanguageServerService/Heartbeat
501 99699 ?? 0:00.05 /usr/bin/curl http://127.0.0.1:50442/exa.language_server_pb.LanguageServerService/Heartbeat --header Content-Type: application/json -d@-
501 99736 ?? 0:00.02 curl -sSL -D /tmp/plenary_curl_cee547cc.headers -X POST -H Content-Type: application/json -d @/tmp/lua_BIPljd http://127.0.0.1:50470/exa.language_server_pb.LanguageServerService/Heartbeat
501 99763 ?? 0:00.05 /usr/bin/curl http://127.0.0.1:50442/exa.language_server_pb.LanguageServerService/Heartbeat --header Content-Type: application/json -d@-
501 99799 ?? 0:00.02 curl -sSL -D /tmp/plenary_curl_b2f34f24.headers -X POST -H Content-Type: application/json -d @/tmp/lua_6r1XoG http://127.0.0.1:50470/exa.language_server_pb.LanguageServerService/Heartbeat
501 99837 ?? 0:00.05 /usr/bin/curl http://127.0.0.1:50442/exa.language_server_pb.LanguageServerService/Heartbeat --header Content-Type: application/json -d@-
501 99873 ?? 0:00.02 curl -sSL -D /tmp/plenary_curl_31b0407b.headers -X POST -H Content-Type: application/json -d @/tmp/lua_E9F09j http://127.0.0.1:50470/exa.language_server_pb.LanguageServerService/Heartbeat
501 99898 ?? 0:00.05 /usr/bin/curl http://127.0.0.1:50442/exa.language_server_pb.LanguageServerService/Heartbeat --header Content-Type: application/json -d@-
501 99947 ?? 0:00.02 curl -sSL -D /tmp/plenary_curl_fe124712.headers -X POST -H Content-Type: application/json -d @/tmp/lua_dsJlWQ http://127.0.0.1:50470/exa.language_server_pb.LanguageServerService/Heartbeat
501 99975 ?? 0:00.05 /usr/bin/curl http://127.0.0.1:50442/exa.language_server_pb.LanguageServerService/Heartbeat --header Content-Type: application/json -d@-

@Sherlockouo
Copy link

I got this problem too, after update the plugin. I guess the curl process may not been killed after finished the request, cause system process been run out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants