[INFO] cloning repository https://github.com/dhruva71/gpt4ocr
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dhruva71/gpt4ocr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhruva71%2Fgpt4ocr", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhruva71%2Fgpt4ocr'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 509b9d9f2046a7c598d34e6054aa242945d3d377
[INFO] testing dhruva71/gpt4ocr against nightly-2025-01-18+rustflags=-Zrandomize-layout for randomize-layout-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdhruva71%2Fgpt4ocr" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/dhruva71/gpt4ocr on toolchain nightly-2025-01-18
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2025-01-18" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/dhruva71/gpt4ocr
[INFO] finished tweaking git repo https://github.com/dhruva71/gpt4ocr
[INFO] tweaked toml for git repo https://github.com/dhruva71/gpt4ocr written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/dhruva71/gpt4ocr already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2025-01-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c9fd1ff12f605bc4f1c682bb9d3d760addab0afc4109e7241d55bcd0be21436f
[INFO] running `Command { std: "docker" "start" "-a" "c9fd1ff12f605bc4f1c682bb9d3d760addab0afc4109e7241d55bcd0be21436f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c9fd1ff12f605bc4f1c682bb9d3d760addab0afc4109e7241d55bcd0be21436f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c9fd1ff12f605bc4f1c682bb9d3d760addab0afc4109e7241d55bcd0be21436f", kill_on_drop: false }`
[INFO] [stdout] c9fd1ff12f605bc4f1c682bb9d3d760addab0afc4109e7241d55bcd0be21436f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 15fd0d1ea60e86004798f2cb2bf828a6b7676add00967a86d510662861a580c3
[INFO] running `Command { std: "docker" "start" "-a" "15fd0d1ea60e86004798f2cb2bf828a6b7676add00967a86d510662861a580c3", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling libc v0.2.155
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling bytes v1.6.1
[INFO] [stderr]    Compiling pin-project-lite v0.2.14
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling pkg-config v0.3.30
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling itoa v1.0.11
[INFO] [stderr]    Compiling cc v1.1.6
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]    Compiling simd-adler32 v0.3.7
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling openssl v0.10.66
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling strsim v0.11.1
[INFO] [stderr]    Compiling mio v1.0.1
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling adler v1.0.2
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling miniz_oxide v0.7.4
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling paste v1.0.15
[INFO] [stderr]    Compiling serde v1.0.204
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling indexmap v2.2.6
[INFO] [stderr]    Compiling rayon-core v1.12.1
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]    Compiling syn v2.0.72
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling aligned-vec v0.5.0
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling arrayvec v0.7.4
[INFO] [stderr]    Compiling built v0.7.4
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling tinyvec v1.8.0
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling v_frame v0.3.8
[INFO] [stderr]    Compiling crossbeam-deque v0.8.5
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling crc32fast v1.4.2
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling rav1e v0.7.1
[INFO] [stderr]    Compiling openssl-probe v0.1.5
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling tower-layer v0.3.2
[INFO] [stderr]    Compiling bytemuck v1.16.1
[INFO] [stderr]    Compiling flate2 v1.0.30
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling simd_helpers v0.1.0
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling openssl-sys v0.9.103
[INFO] [stderr]    Compiling itertools v0.12.1
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling maybe-rayon v0.1.1
[INFO] [stderr]    Compiling imgref v1.10.1
[INFO] [stderr]    Compiling noop_proc_macro v0.3.0
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.6
[INFO] [stderr]    Compiling ryu v1.0.18
[INFO] [stderr]    Compiling unicode-normalization v0.1.23
[INFO] [stderr]    Compiling quick-error v2.0.1
[INFO] [stderr]    Compiling bitstream-io v2.5.0
[INFO] [stderr]    Compiling weezl v0.1.8
[INFO] [stderr]    Compiling serde_json v1.0.121
[INFO] [stderr]    Compiling flume v0.11.0
[INFO] [stderr]    Compiling rgb v0.8.45
[INFO] [stderr]    Compiling loop9 v0.1.5
[INFO] [stderr]    Compiling avif-serialize v0.8.1
[INFO] [stderr]    Compiling zune-inflate v0.2.54
[INFO] [stderr]    Compiling fdeflate v0.3.4
[INFO] [stderr]    Compiling http-body-util v0.1.2
[INFO] [stderr]    Compiling half v2.4.1
[INFO] [stderr]    Compiling bit_field v0.10.2
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling lebe v0.5.2
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling color_quant v1.1.0
[INFO] [stderr]    Compiling byteorder-lite v0.1.0
[INFO] [stderr]    Compiling jpeg-decoder v0.3.1
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling rustls-pki-types v1.7.0
[INFO] [stderr]    Compiling zune-core v0.4.12
[INFO] [stderr]    Compiling exr v1.72.0
[INFO] [stderr]    Compiling image-webp v0.1.3
[INFO] [stderr]    Compiling url v2.5.2
[INFO] [stderr]    Compiling gif v0.13.1
[INFO] [stderr]    Compiling png v0.17.13
[INFO] [stderr]    Compiling rustls-pemfile v2.1.2
[INFO] [stderr]    Compiling rayon v1.10.0
[INFO] [stderr]    Compiling qoi v0.4.1
[INFO] [stderr]    Compiling zune-jpeg v0.4.13
[INFO] [stderr]    Compiling encoding_rs v0.8.34
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling tiff v0.9.1
[INFO] [stderr]    Compiling sync_wrapper v1.0.1
[INFO] [stderr]    Compiling dotenvy v0.15.7
[INFO] [stderr]    Compiling av1-grain v0.2.3
[INFO] [stderr]    Compiling darling_core v0.20.10
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling serde_derive v1.0.204
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]    Compiling profiling-procmacros v1.0.15
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]    Compiling arg_enum_proc_macro v0.3.4
[INFO] [stderr]    Compiling profiling v1.0.15
[INFO] [stderr]    Compiling tokio v1.39.2
[INFO] [stderr]    Compiling pin-project v1.1.5
[INFO] [stderr]    Compiling darling_macro v0.20.10
[INFO] [stderr]    Compiling darling v0.20.10
[INFO] [stderr]    Compiling derive_builder_core v0.20.0
[INFO] [stderr]    Compiling derive_builder_macro v0.20.0
[INFO] [stderr]    Compiling derive_builder v0.20.0
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling ravif v0.11.9
[INFO] [stderr]    Compiling tokio-util v0.7.11
[INFO] [stderr]    Compiling tower v0.4.13
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling h2 v0.4.5
[INFO] [stderr]    Compiling image v0.25.2
[INFO] [stderr]    Compiling pdf2image v0.1.2
[INFO] [stderr]    Compiling hyper v1.4.1
[INFO] [stderr]    Compiling hyper-util v0.1.6
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling reqwest v0.12.5
[INFO] [stderr]    Compiling openai-api-rs v5.0.4
[INFO] [stderr]    Compiling gpt4ocr v0.3.2 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]   --> src/file_handlers.rs:46:33
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let base64_string = base64::encode(image_bytes);
[INFO] [stdout]    |                                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 07s
[INFO] running `Command { std: "docker" "inspect" "15fd0d1ea60e86004798f2cb2bf828a6b7676add00967a86d510662861a580c3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "15fd0d1ea60e86004798f2cb2bf828a6b7676add00967a86d510662861a580c3", kill_on_drop: false }`
[INFO] [stdout] 15fd0d1ea60e86004798f2cb2bf828a6b7676add00967a86d510662861a580c3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 67870341752a0c53492a9f8afd46d0f54d21be20b083f3671ff50f4837461ab6
[INFO] running `Command { std: "docker" "start" "-a" "67870341752a0c53492a9f8afd46d0f54d21be20b083f3671ff50f4837461ab6", kill_on_drop: false }`
[INFO] [stderr]    Compiling gpt4ocr v0.3.2 (/opt/rustwide/workdir)
[INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]   --> src/file_handlers.rs:46:33
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let base64_string = base64::encode(image_bytes);
[INFO] [stdout]    |                                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]   --> src/file_handlers.rs:46:33
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let base64_string = base64::encode(image_bytes);
[INFO] [stdout]    |                                 ^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `file_handlers::get_base64_from_image_old`
[INFO] [stdout]    --> src/file_handlers.rs:127:33
[INFO] [stdout]     |
[INFO] [stdout] 127 |         let base64_string_old = get_base64_from_image_old(&img);
[INFO] [stdout]     |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 3.52s
[INFO] running `Command { std: "docker" "inspect" "67870341752a0c53492a9f8afd46d0f54d21be20b083f3671ff50f4837461ab6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "67870341752a0c53492a9f8afd46d0f54d21be20b083f3671ff50f4837461ab6", kill_on_drop: false }`
[INFO] [stdout] 67870341752a0c53492a9f8afd46d0f54d21be20b083f3671ff50f4837461ab6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Zrandomize-layout" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:819108c5571ea2e421544af4d832f968d213c87fbe3707a016657f43d2f853bc" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2025-01-18" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 38aed71120600fb39bfd53a4191b3dae85512e13c1ae179f63f0987d94ab5696
[INFO] running `Command { std: "docker" "start" "-a" "38aed71120600fb39bfd53a4191b3dae85512e13c1ae179f63f0987d94ab5696", kill_on_drop: false }`
[INFO] [stderr] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stderr]   --> src/file_handlers.rs:46:33
[INFO] [stderr]    |
[INFO] [stderr] 46 |     let base64_string = base64::encode(image_bytes);
[INFO] [stderr]    |                                 ^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `file_handlers::get_base64_from_image_old`
[INFO] [stderr]    --> src/file_handlers.rs:127:33
[INFO] [stderr]     |
[INFO] [stderr] 127 |         let base64_string_old = get_base64_from_image_old(&img);
[INFO] [stderr]     |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `gpt4ocr` (lib) generated 1 warning
[INFO] [stderr] warning: `gpt4ocr` (lib test) generated 2 warnings (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/gpt4ocr-9d619fda34f5c462)
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test file_handlers::tests::test_filter_markdown_json ... ok
[INFO] [stdout] test file_handlers::tests::test_get_filename_from_path ... ok
[INFO] [stdout] test gpt4o::tests::test_create_openai_client ... ok
[INFO] [stdout] test file_handlers::tests::test_save_json_to_file ... FAILED
[INFO] [stdout] test file_handlers::tests::test_get_base64_from_image ... ok
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- file_handlers::tests::test_save_json_to_file stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'file_handlers::tests::test_save_json_to_file' panicked at src/file_handlers.rs:136:9:
[INFO] [stdout] assertion `left == right` failed
[INFO] [stdout]   left: false
[INFO] [stdout]  right: true
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x57bea3edb5da - std::backtrace_rs::backtrace::libunwind::trace::hb059275cfc8d6126
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
[INFO] [stdout]    1:     0x57bea3edb5da - std::backtrace_rs::backtrace::trace_unsynchronized::h2da071e4327ce3ee
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
[INFO] [stdout]    2:     0x57bea3edb5da - std::sys::backtrace::_print_fmt::h842a1474e6f8d23f
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x57bea3edb5da - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h71a62eb3b9696b12
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x57bea3f057b3 - core::fmt::rt::Argument::fmt::hdb6b616786b41dc1
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x57bea3f057b3 - core::fmt::write::h2cc1698af7e2d686
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/fmt/mod.rs:1440:21
[INFO] [stdout]    6:     0x57bea3ed7e13 - std::io::Write::write_fmt::hab1b4cd059a79022
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/io/mod.rs:1887:15
[INFO] [stdout]    7:     0x57bea3edb422 - std::sys::backtrace::BacktraceLock::print::h147fe35b4ea13b08
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x57bea3edc9ff - std::panicking::default_hook::{{closure}}::hbd44223dbdc0d208
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:298:22
[INFO] [stdout]    9:     0x57bea3edc818 - std::panicking::default_hook::h20f81eb0576efcec
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:322:9
[INFO] [stdout]   10:     0x57bea369ff43 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hdb53814c496a4d34
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/alloc/src/boxed.rs:2027:9
[INFO] [stdout]   11:     0x57bea369ff43 - test::test_main::{{closure}}::hc0a4963c59427c24
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x57bea3edd4f3 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h591b2225413a77e9
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/alloc/src/boxed.rs:2027:9
[INFO] [stdout]   13:     0x57bea3edd4f3 - std::panicking::rust_panic_with_hook::h625eea43051b2edc
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:839:13
[INFO] [stdout]   14:     0x57bea3edd1aa - std::panicking::begin_panic_handler::{{closure}}::h4f9159cfbc3f6bd3
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:704:13
[INFO] [stdout]   15:     0x57bea3edbad9 - std::sys::backtrace::__rust_end_short_backtrace::h0390abce48353151
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:168:18
[INFO] [stdout]   16:     0x57bea3edce3d - rust_begin_unwind
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:695:5
[INFO] [stdout]   17:     0x57bea3f03320 - core::panicking::panic_fmt::h9e7c637e9e5f29c9
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x57bea3f03773 - core::panicking::assert_failed_inner::h538bec7c1374cd9c
[INFO] [stdout]   19:     0x57bea3e70fb0 - core::panicking::assert_failed::h5e3174178948d9ed
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panicking.rs:364:5
[INFO] [stdout]   20:     0x57bea355fdeb - gpt4ocr::file_handlers::tests::test_save_json_to_file::{{closure}}::h0ef21592b8f7e2b6
[INFO] [stdout]                                at /opt/rustwide/workdir/src/file_handlers.rs:136:9
[INFO] [stdout]   21:     0x57bea35d42e2 - <core::pin::Pin<P> as core::future::future::Future>::poll::hdf208f1ab6a216b6
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/future/future.rs:124:9
[INFO] [stdout]   22:     0x57bea35d425d - <core::pin::Pin<P> as core::future::future::Future>::poll::h3a0b2ce19fd0ccff
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/future/future.rs:124:9
[INFO] [stdout]   23:     0x57bea365006f - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::h52a81892c9ca85e6
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:673:57
[INFO] [stdout]   24:     0x57bea364ffb5 - tokio::runtime::coop::with_budget::he5e587bdbba93592
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/coop.rs:107:5
[INFO] [stdout]   25:     0x57bea364ffb5 - tokio::runtime::coop::budget::h364aea247933154e
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/coop.rs:73:5
[INFO] [stdout]   26:     0x57bea364ffb5 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::h89d5f54a6a0f60db
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:673:25
[INFO] [stdout]   27:     0x57bea364d92c - tokio::runtime::scheduler::current_thread::Context::enter::h97d0c7ac99610e46
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:412:19
[INFO] [stdout]   28:     0x57bea364f66e - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::hf7c4fc34a718f63b
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:672:36
[INFO] [stdout]   29:     0x57bea364eab4 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h6fa1d85c6e617609
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:751:68
[INFO] [stdout]   30:     0x57bea355be4b - tokio::runtime::context::scoped::Scoped<T>::set::h54dcb993d6afe4f3
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/context/scoped.rs:40:9
[INFO] [stdout]   31:     0x57bea364c329 - tokio::runtime::context::set_scheduler::{{closure}}::h1694d6f5d94a0dcd
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/context.rs:180:26
[INFO] [stdout]   32:     0x57bea3653452 - std::thread::local::LocalKey<T>::try_with::h05577c67385e6e66
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/local.rs:308:12
[INFO] [stdout]   33:     0x57bea365328a - std::thread::local::LocalKey<T>::with::h900bc7b592538814
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/local.rs:272:9
[INFO] [stdout]   34:     0x57bea364c2dd - tokio::runtime::context::set_scheduler::hdebb7d8da1166aae
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/context.rs:180:9
[INFO] [stdout]   35:     0x57bea364e86c - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h797407c82b769713
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:751:27
[INFO] [stdout]   36:     0x57bea364eb53 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::hf3d3276a1c3f58c6
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:660:19
[INFO] [stdout]   37:     0x57bea364cd9e - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::hb72838dfaaffdf71
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:180:28
[INFO] [stdout]   38:     0x57bea3590476 - tokio::runtime::context::runtime::enter_runtime::hecd1de7e92400dc7
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/context/runtime.rs:65:16
[INFO] [stdout]   39:     0x57bea364c601 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h4dfbffd072ebfab3
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/scheduler/current_thread/mod.rs:168:9
[INFO] [stdout]   40:     0x57bea36440b2 - tokio::runtime::runtime::Runtime::block_on_inner::h04affb332a40f326
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/runtime.rs:361:47
[INFO] [stdout]   41:     0x57bea36442f5 - tokio::runtime::runtime::Runtime::block_on::h6691d17a40db5839
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/runtime.rs:335:13
[INFO] [stdout]   42:     0x57bea355fad9 - gpt4ocr::file_handlers::tests::test_save_json_to_file::hf0e312853ade11bf
[INFO] [stdout]                                at /opt/rustwide/workdir/src/file_handlers.rs:136:9
[INFO] [stdout]   43:     0x57bea355f997 - gpt4ocr::file_handlers::tests::test_save_json_to_file::{{closure}}::h65dd870cd7ec179a
[INFO] [stdout]                                at /opt/rustwide/workdir/src/file_handlers.rs:132:38
[INFO] [stdout]   44:     0x57bea3646fc6 - core::ops::function::FnOnce::call_once::hece8fcebbe2ded6f
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   45:     0x57bea36a569b - core::ops::function::FnOnce::call_once::he27718dfdd183f43
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   46:     0x57bea36a569b - test::__rust_begin_short_backtrace::h4e84902998457a5d
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:632:18
[INFO] [stdout]   47:     0x57bea36a45d3 - test::run_test_in_process::{{closure}}::h7176fd18fc1feca0
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:655:60
[INFO] [stdout]   48:     0x57bea36a45d3 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hf79cff2a624d8cf7
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   49:     0x57bea36a45d3 - std::panicking::try::do_call::h3da0561d9ab99c25
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:587:40
[INFO] [stdout]   50:     0x57bea36a45d3 - std::panicking::try::h41c9fa508bc61df6
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:550:19
[INFO] [stdout]   51:     0x57bea36a45d3 - std::panic::catch_unwind::h6b3ff07bb5afad93
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panic.rs:358:14
[INFO] [stdout]   52:     0x57bea36a45d3 - test::run_test_in_process::hc7253dd11b39b9f4
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:655:27
[INFO] [stdout]   53:     0x57bea36a45d3 - test::run_test::{{closure}}::hfb2007f8649c30bb
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:576:43
[INFO] [stdout]   54:     0x57bea36676b5 - test::run_test::{{closure}}::h56a17aa7a282a9f4
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:606:41
[INFO] [stdout]   55:     0x57bea36676b5 - std::sys::backtrace::__rust_begin_short_backtrace::hd2d2d2fb8e8c6aac
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:152:18
[INFO] [stdout]   56:     0x57bea366af9a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h4faa3f9db6133423
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/mod.rs:559:17
[INFO] [stdout]   57:     0x57bea366af9a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hf2e855a36a4ea846
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   58:     0x57bea366af9a - std::panicking::try::do_call::h2f73af3616c35465
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:587:40
[INFO] [stdout]   59:     0x57bea366af9a - std::panicking::try::hd1660ce9efadef5a
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:550:19
[INFO] [stdout]   60:     0x57bea366af9a - std::panic::catch_unwind::h5ee8d7823b8ca744
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panic.rs:358:14
[INFO] [stdout]   61:     0x57bea366af9a - std::thread::Builder::spawn_unchecked_::{{closure}}::h53c3a1894dce8407
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/mod.rs:557:30
[INFO] [stdout]   62:     0x57bea366af9a - core::ops::function::FnOnce::call_once{{vtable.shim}}::h048ce291ad4f62bf
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   63:     0x57bea3ee16bb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::ha52bedf99a3b4981
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/alloc/src/boxed.rs:2013:9
[INFO] [stdout]   64:     0x57bea3ee16bb - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h567748934d80ccf8
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/alloc/src/boxed.rs:2013:9
[INFO] [stdout]   65:     0x57bea3ee16bb - std::sys::pal::unix::thread::Thread::new::thread_start::h2d970728ae887adc
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/pal/unix/thread.rs:106:17
[INFO] [stdout]   66:     0x7e5232949ac3 - <unknown>
[INFO] [stdout]   67:     0x7e52329daa04 - clone
[INFO] [stdout]   68:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     file_handlers::tests::test_save_json_to_file
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.42s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "38aed71120600fb39bfd53a4191b3dae85512e13c1ae179f63f0987d94ab5696", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "38aed71120600fb39bfd53a4191b3dae85512e13c1ae179f63f0987d94ab5696", kill_on_drop: false }`
[INFO] [stdout] 38aed71120600fb39bfd53a4191b3dae85512e13c1ae179f63f0987d94ab5696
