You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
something wrong when running inside container
source 1:
match crossterm::terminal::enable_raw_mode(){Ok(_) => {}Err(e) => {
tracing::error!("failed to enable raw mode,err: {e}")}};
exception 1:
End of terminal size stream
thread 'tokio-runtime-worker' panicked at /Users/vincent/.cargo/registry/src/rsproxy.cn-8f6827c7555bfaf8/tokio-1.32.0/src/runtime/task/core.rs:381:22:JoinHandle polled after completion
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2023-11-0309:24:10.662ERROR v_kubernetes_action::pkg::salvo::router::pod: failed to enable raw mode,err:No such device or address(os error 6)
at src/pkg/salvo/router/pod.rs:457
source 2:
#[cfg(unix)]// Send the new terminal size to channel when it changeasyncfnhandle_terminal_size(mutchannel:Sender<TerminalSize>) -> anyhow::Result<()>{let(width, height) = match crossterm::terminal::size(){Ok((w, h)) => (w, h),Err(e) => {let err = format!("fail to cross term terminal size ,err: {e}");
tracing::error!("fail to cross term terminal size ,err: {err}");returnErr(anyhow!(err));}};match channel.send(TerminalSize{ height, width }).await{Ok(_) => {}Err(e) => {let err = format!("fail to send terminal size to channel,err: {e}");
tracing::error!(err);returnErr(anyhow!(err));}};// create a stream to catch SIGWINCH signalletmut sig = match signal::unix::signal(signal::unix::SignalKind::window_change()){Ok(s) => s,Err(e) => {let err = format!("fail to windows change err{e}");
tracing::error!(err);returnErr(anyhow!(err));}};loop{if(sig.recv().await).is_none(){returnOk(());}let(width, height) = match crossterm::terminal::size(){Ok((w, h)) => (w, h),Err(e) => {let err = format!("fail to cross term terminal size ,err: {e}");
tracing::error!("fail to cross term terminal size ,err: {err}");returnErr(anyhow!(err));}};match channel.send(TerminalSize{ height, width }).await{Ok(_) => {}Err(e) => {let err = format!("fail to send terminal size to channel,err: {e}");
tracing::error!(err);returnErr(anyhow!(err));}};}}
exception 2:
2023-11-0314:11:24.853ERROR v_kubernetes_action::pkg::salvo::router::pod: fail to cross term terminal size ,err: fail to cross term terminal size ,err:Resource temporarily unavailable(os error 11)
at src/pkg/salvo/router/pod.rs:655
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
A clear and concise description of what you expected to happen.
OS
container: amd64/debian:12.1-slim
The text was updated successfully, but these errors were encountered:
Describe the bug
something wrong when running inside container
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
OS
container: amd64/debian:12.1-slim
The text was updated successfully, but these errors were encountered: