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

om ci sometimes crashes during UTF-8 decoding #428

Open
srid opened this issue Feb 28, 2025 · 1 comment
Open

om ci sometimes crashes during UTF-8 decoding #428

srid opened this issue Feb 28, 2025 · 1 comment
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");

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

No branches or pull requests

1 participant