8000 `om ci` sometimes crashes during UTF-8 decoding · Issue #428 · juspay/omnix · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

om ci sometimes crashes during UTF-8 decoding #428

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

Closed
srid opened this issue Feb 28, 2025 · 4 comments · Fixed by #437
Closed

om ci sometimes crashes during UTF-8 decoding #428

srid opened this issue Feb 28, 2025 · 4 comments · Fixed by #437
Labels
bug Something isn't working

Comments

@srid
Copy link
Member
srid commented Feb 28, 2025

Saw this when first (but not again) building https://github.com/sciexp/python-nix-template

Image
"name" = "omnix-cli"
"operating_system" = "Mac OS 15.3.1 [64-bit]"
"crate_version" = "1.0.0"
"explanation" = """
Panic occurred in file '/private/tmp/nix-build-omnix-cli-1.0.0.drv-0/source/crates/nix_rs/src/flake/functions/core.rs' at line 99
"""
"cause" = "read stderr: Custom { kind: InvalidData, error: \"stream did not contain valid UTF-8\" }"
"method" = "Panic"
"backtrace" = """

   0: 0x1008d12e0 - __mh_execute_header
   1: 0x10046f3a8 - __mh_execute_header
   2: 0x100470b48 - __mh_execute_header
   3: 0x1005dbfc0 - __mh_execute_header
   4: 0x1007ed2a8 - __mh_execute_header
   5: 0x1007f4010 - __mh_execute_header
   6: 0x1007ea978 - __mh_execute_header
   7: 0x1007e7e68 - __mh_execute_header
   8: 0x1007e85dc - __mh_execute_header
   9: 0x1007a6178 - __mh_execute_header
  10: 0x18f2242e4 - __pthread_deallocate"""

AsyncBufReaderExt's next_line is throwing this:

let mut reader = BufReader::new(stderr_handle).lines();
while let Some(line) = reader.next_line().await.expect("read stderr") {
if !verbose {
if line.starts_with("• Added input") {
// Consume the input logging itself
reader.next_line().await.expect("read stderr");

@srid srid added the bug Something isn't working label Feb 28, 2025
@srid
Copy link
Member Author
srid commented Feb 28, 2025

@cameronraysmith
Copy link
cameronraysmith commented Mar 11, 2025

You identified this one, but I also encountered it. You may have already seen the backlink to sciexp/python-nix-template#20 .

@srid
Copy link
Member Author
srid commented Mar 11, 2025

Try the read_until branch ... but I need to come up with a proper fix for this.

@cameronraysmith
Copy link

Thank you. Will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0