[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 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-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/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-tc1/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]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pdf2image v0.1.2
[INFO] [stderr]   Downloaded openai-api-rs v5.0.4
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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] 645eae0384c10b935f8a0601f04f8aaea0e0f64110d1e77fb24e62f6655dc6e7
[INFO] running `Command { std: "docker" "start" "-a" "645eae0384c10b935f8a0601f04f8aaea0e0f64110d1e77fb24e62f6655dc6e7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "645eae0384c10b935f8a0601f04f8aaea0e0f64110d1e77fb24e62f6655dc6e7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "645eae0384c10b935f8a0601f04f8aaea0e0f64110d1e77fb24e62f6655dc6e7", kill_on_drop: false }`
[INFO] [stdout] 645eae0384c10b935f8a0601f04f8aaea0e0f64110d1e77fb24e62f6655dc6e7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "-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] 13f4856ca564f831483a42eb103f896e1e24a245dae5bce3e06619cd10de6c92
[INFO] running `Command { std: "docker" "start" "-a" "13f4856ca564f831483a42eb103f896e1e24a245dae5bce3e06619cd10de6c92", 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 pin-project-lite v0.2.14
[INFO] [stderr]    Compiling bytes v1.6.1
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling cc v1.1.6
[INFO] [stderr]    Compiling pkg-config v0.3.30
[INFO] [stderr]    Compiling itoa v1.0.11
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling memchr v2.7.4
[INFO] [stderr]    Compiling crossbeam-utils v0.8.20
[INFO] [stderr]    Compiling simd-adler32 v0.3.7
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling adler v1.0.2
[INFO] [stderr]    Compiling strsim v0.11.1
[INFO] [stderr]    Compiling anyhow v1.0.86
[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 tracing-core v0.1.32
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]    Compiling openssl v0.10.66
[INFO] [stderr]    Compiling syn v2.0.72
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.18
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling miniz_oxide v0.7.4
[INFO] [stderr]    Compiling minimal-lexical v0.2.1
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling rayon-core v1.12.1
[INFO] [stderr]    Compiling serde v1.0.204
[INFO] [stderr]    Compiling aligned-vec v0.5.0
[INFO] [stderr]    Compiling arrayvec v0.7.4
[INFO] [stderr]    Compiling built v0.7.4
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]    Compiling either v1.13.0
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]    Compiling paste v1.0.15
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling mio v1.0.1
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling nom v7.1.3
[INFO] [stderr]    Compiling tinyvec v1.8.0
[INFO] [stderr]    Compiling crossbeam-deque v0.8.5
[INFO] [stderr]    Compiling openssl-sys v0.9.103
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling v_frame v0.3.8
[INFO] [stderr]    Compiling rav1e v0.7.1
[INFO] [stderr]    Compiling futures-channel v0.3.30
[INFO] [stderr]    Compiling crc32fast v1.4.2
[INFO] [stderr]    Compiling indexmap v2.2.6
[INFO] [stderr]    Compiling tower-layer v0.3.2
[INFO] [stderr]    Compiling bytemuck v1.16.1
[INFO] [stderr]    Compiling openssl-probe v0.1.5
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling tower-service v0.3.2
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling flate2 v1.0.30
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling itertools v0.12.1
[INFO] [stderr]    Compiling simd_helpers v0.1.0
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling maybe-rayon v0.1.1
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling imgref v1.10.1
[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 noop_proc_macro v0.3.0
[INFO] [stderr]    Compiling bitstream-io v2.5.0
[INFO] [stderr]    Compiling serde_json v1.0.121
[INFO] [stderr]    Compiling weezl v0.1.8
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.6
[INFO] [stderr]    Compiling flume v0.11.0
[INFO] [stderr]    Compiling loop9 v0.1.5
[INFO] [stderr]    Compiling http-body-util v0.1.2
[INFO] [stderr]    Compiling rgb v0.8.45
[INFO] [stderr]    Compiling avif-serialize v0.8.1
[INFO] [stderr]    Compiling fdeflate v0.3.4
[INFO] [stderr]    Compiling zune-inflate v0.2.54
[INFO] [stderr]    Compiling half v2.4.1
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling bit_field v0.10.2
[INFO] [stderr]    Compiling zune-core v0.4.12
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling bitflags v1.3.2
[INFO] [stderr]    Compiling rustls-pki-types v1.7.0
[INFO] [stderr]    Compiling color_quant v1.1.0
[INFO] [stderr]    Compiling lebe v0.5.2
[INFO] [stderr]    Compiling jpeg-decoder v0.3.1
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling byteorder-lite v0.1.0
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling gif v0.13.1
[INFO] [stderr]    Compiling exr v1.72.0
[INFO] [stderr]    Compiling zune-jpeg v0.4.13
[INFO] [stderr]    Compiling png v0.17.13
[INFO] [stderr]    Compiling darling_core v0.20.10
[INFO] [stderr]    Compiling image-webp v0.1.3
[INFO] [stderr]    Compiling url v2.5.2
[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 encoding_rs v0.8.34
[INFO] [stderr]    Compiling av1-grain v0.2.3
[INFO] [stderr]    Compiling ipnet v2.9.0
[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 tokio-macros v2.4.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.204
[INFO] [stderr]    Compiling profiling-procmacros v1.0.15
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]    Compiling arg_enum_proc_macro v0.3.4
[INFO] [stderr]    Compiling num-derive v0.4.2
[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 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 ravif v0.11.9
[INFO] [stderr]    Compiling image v0.25.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 pdf2image v0.1.2
[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 09s
[INFO] running `Command { std: "docker" "inspect" "13f4856ca564f831483a42eb103f896e1e24a245dae5bce3e06619cd10de6c92", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "13f4856ca564f831483a42eb103f896e1e24a245dae5bce3e06619cd10de6c92", kill_on_drop: false }`
[INFO] [stdout] 13f4856ca564f831483a42eb103f896e1e24a245dae5bce3e06619cd10de6c92
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "-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] 924bea0f3014982a57b7ade6b073fcfc2efab5874be00a135fe3aa06598b8519
[INFO] running `Command { std: "docker" "start" "-a" "924bea0f3014982a57b7ade6b073fcfc2efab5874be00a135fe3aa06598b8519", 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.58s
[INFO] running `Command { std: "docker" "inspect" "924bea0f3014982a57b7ade6b073fcfc2efab5874be00a135fe3aa06598b8519", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "924bea0f3014982a57b7ade6b073fcfc2efab5874be00a135fe3aa06598b8519", kill_on_drop: false }`
[INFO] [stdout] 924bea0f3014982a57b7ade6b073fcfc2efab5874be00a135fe3aa06598b8519
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/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" "-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] a5128f35c23ddc6119ea329673adb9808c95b82182a689da357a3b64bd6a7059
[INFO] running `Command { std: "docker" "start" "-a" "a5128f35c23ddc6119ea329673adb9808c95b82182a689da357a3b64bd6a7059", 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.22s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/gpt4ocr-7321e29c15d7a7fd)
[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:     0x5f3c77e1b08a - 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:     0x5f3c77e1b08a - 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:     0x5f3c77e1b08a - std::sys::backtrace::_print_fmt::h842a1474e6f8d23f
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x5f3c77e1b08a - <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:     0x5f3c77e45263 - core::fmt::rt::Argument::fmt::hdb6b616786b41dc1
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/fmt/rt.rs:177:76
[INFO] [stdout]    5:     0x5f3c77e45263 - core::fmt::write::h2cc1698af7e2d686
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/fmt/mod.rs:1440:21
[INFO] [stdout]    6:     0x5f3c77e178c3 - std::io::Write::write_fmt::hab1b4cd059a79022
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/io/mod.rs:1887:15
[INFO] [stdout]    7:     0x5f3c77e1aed2 - std::sys::backtrace::BacktraceLock::print::h147fe35b4ea13b08
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    8:     0x5f3c77e1c4af - std::panicking::default_hook::{{closure}}::hbd44223dbdc0d208
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:298:22
[INFO] [stdout]    9:     0x5f3c77e1c2c8 - std::panicking::default_hook::h20f81eb0576efcec
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:322:9
[INFO] [stdout]   10:     0x5f3c775e10c3 - <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:     0x5f3c775e10c3 - test::test_main::{{closure}}::hc0a4963c59427c24
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:134:21
[INFO] [stdout]   12:     0x5f3c77e1cfa3 - <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:     0x5f3c77e1cfa3 - std::panicking::rust_panic_with_hook::h625eea43051b2edc
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:839:13
[INFO] [stdout]   14:     0x5f3c77e1cc5a - std::panicking::begin_panic_handler::{{closure}}::h4f9159cfbc3f6bd3
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:704:13
[INFO] [stdout]   15:     0x5f3c77e1b589 - std::sys::backtrace::__rust_end_short_backtrace::h0390abce48353151
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:168:18
[INFO] [stdout]   16:     0x5f3c77e1c8ed - rust_begin_unwind
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:695:5
[INFO] [stdout]   17:     0x5f3c77e42dd0 - core::panicking::panic_fmt::h9e7c637e9e5f29c9
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panicking.rs:75:14
[INFO] [stdout]   18:     0x5f3c77e43223 - core::panicking::assert_failed_inner::h538bec7c1374cd9c
[INFO] [stdout]   19:     0x5f3c77db09d4 - core::panicking::assert_failed::h5e3174178948d9ed
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/panicking.rs:364:5
[INFO] [stdout]   20:     0x5f3c774a1a8b - 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:     0x5f3c77515e32 - <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:     0x5f3c77515dad - <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:     0x5f3c775911ef - 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:     0x5f3c77591135 - tokio::runtime::coop::with_budget::he4f01f3295c3348a
[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:     0x5f3c77591135 - 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:     0x5f3c77591135 - 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:     0x5f3c7758e790 - tokio::runtime::scheduler::current_thread::Context::enter::h31fe47a101ddae80
[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:     0x5f3c775907de - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::h91ede5fd43a4b070
[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:     0x5f3c7758fc34 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::h2690a9d120ee68b5
[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:     0x5f3c7749dceb - tokio::runtime::context::scoped::Scoped<T>::set::h9db0a972f4cfe3e0
[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:     0x5f3c7758d4c9 - tokio::runtime::context::set_scheduler::{{closure}}::hf0247a4db1cdc605
[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:     0x5f3c775945e2 - std::thread::local::LocalKey<T>::try_with::h035436fb4b6af00e
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/local.rs:308:12
[INFO] [stdout]   33:     0x5f3c775943ba - std::thread::local::LocalKey<T>::with::h8630bf13837ff6b8
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/local.rs:272:9
[INFO] [stdout]   34:     0x5f3c7758d3fd - tokio::runtime::context::set_scheduler::h278a65df4f09d413
[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:     0x5f3c7758f5c0 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h10b1920306eee205
[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:     0x5f3c7758fc73 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h4a69bbff164ac82a
[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:     0x5f3c7758da5a - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::h683a92b360c34b52
[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:     0x5f3c774d1e96 - tokio::runtime::context::runtime::enter_runtime::hdaf19359c8789106
[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:     0x5f3c7758d761 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::h5114a38d05631222
[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:     0x5f3c7758538d - tokio::runtime::runtime::Runtime::block_on_inner::h1136a797ffb37905
[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:     0x5f3c775855b5 - tokio::runtime::runtime::Runtime::block_on::hb2c73c5b8f10c5e7
[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:     0x5f3c774a1779 - 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:     0x5f3c774a1637 - 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:     0x5f3c77588376 - core::ops::function::FnOnce::call_once::hece8fcebbe2ded6f
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   45:     0x5f3c775e681b - core::ops::function::FnOnce::call_once::he27718dfdd183f43
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   46:     0x5f3c775e681b - test::__rust_begin_short_backtrace::h4e84902998457a5d
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:632:18
[INFO] [stdout]   47:     0x5f3c775e5753 - test::run_test_in_process::{{closure}}::h7176fd18fc1feca0
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:655:60
[INFO] [stdout]   48:     0x5f3c775e5753 - <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:     0x5f3c775e5753 - std::panicking::try::do_call::h3da0561d9ab99c25
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:587:40
[INFO] [stdout]   50:     0x5f3c775e5753 - std::panicking::try::h41c9fa508bc61df6
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:550:19
[INFO] [stdout]   51:     0x5f3c775e5753 - std::panic::catch_unwind::h6b3ff07bb5afad93
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panic.rs:358:14
[INFO] [stdout]   52:     0x5f3c775e5753 - test::run_test_in_process::hc7253dd11b39b9f4
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:655:27
[INFO] [stdout]   53:     0x5f3c775e5753 - test::run_test::{{closure}}::hfb2007f8649c30bb
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:576:43
[INFO] [stdout]   54:     0x5f3c775a8835 - test::run_test::{{closure}}::h56a17aa7a282a9f4
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/test/src/lib.rs:606:41
[INFO] [stdout]   55:     0x5f3c775a8835 - std::sys::backtrace::__rust_begin_short_backtrace::hd2d2d2fb8e8c6aac
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/sys/backtrace.rs:152:18
[INFO] [stdout]   56:     0x5f3c775ac11a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h4faa3f9db6133423
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/mod.rs:559:17
[INFO] [stdout]   57:     0x5f3c775ac11a - <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:     0x5f3c775ac11a - std::panicking::try::do_call::h2f73af3616c35465
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:587:40
[INFO] [stdout]   59:     0x5f3c775ac11a - std::panicking::try::hd1660ce9efadef5a
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panicking.rs:550:19
[INFO] [stdout]   60:     0x5f3c775ac11a - std::panic::catch_unwind::h5ee8d7823b8ca744
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/panic.rs:358:14
[INFO] [stdout]   61:     0x5f3c775ac11a - std::thread::Builder::spawn_unchecked_::{{closure}}::h53c3a1894dce8407
[INFO] [stdout]                                at /rustc/6067b36314ab5eb2eb47cecc464545ba58e1ad24/library/std/src/thread/mod.rs:557:30
[INFO] [stdout]   62:     0x5f3c775ac11a - 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:     0x5f3c77e2116b - <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:     0x5f3c77e2116b - <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:     0x5f3c77e2116b - 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:     0x73b8c81dbac3 - <unknown>
[INFO] [stdout]   67:     0x73b8c826ca04 - 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.30s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "a5128f35c23ddc6119ea329673adb9808c95b82182a689da357a3b64bd6a7059", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a5128f35c23ddc6119ea329673adb9808c95b82182a689da357a3b64bd6a7059", kill_on_drop: false }`
[INFO] [stdout] a5128f35c23ddc6119ea329673adb9808c95b82182a689da357a3b64bd6a7059
