[INFO] fetching crate gpt4ocr 0.3.2...
[INFO] testing gpt4ocr-0.3.2 against 1.93.0 for beta-1.94-1
[INFO] extracting crate gpt4ocr 0.3.2 into /workspace/builds/worker-3-tc1/source
[INFO] started tweaking crates.io crate gpt4ocr 0.3.2
[INFO] finished tweaking crates.io crate gpt4ocr 0.3.2
[INFO] tweaked toml for crates.io crate gpt4ocr 0.3.2 written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate gpt4ocr 0.3.2 on toolchain 1.93.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.93.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate gpt4ocr 0.3.2 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" "+1.93.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded pdf2image v0.1.2
[INFO] [stderr]   Downloaded jobserver v0.1.32
[INFO] [stderr]   Downloaded redox_syscall v0.5.3
[INFO] [stderr]   Downloaded maybe-rayon v0.1.1
[INFO] [stderr]   Downloaded simd_helpers v0.1.0
[INFO] [stderr]   Downloaded bit_field v0.10.2
[INFO] [stderr]   Downloaded avif-serialize v0.8.1
[INFO] [stderr]   Downloaded profiling-procmacros v1.0.15
[INFO] [stderr]   Downloaded profiling v1.0.15
[INFO] [stderr]   Downloaded bytes v1.6.1
[INFO] [stderr]   Downloaded security-framework-sys v2.11.1
[INFO] [stderr]   Downloaded zune-inflate v0.2.54
[INFO] [stderr]   Downloaded hyper-util v0.1.6
[INFO] [stderr]   Downloaded image-webp v0.1.3
[INFO] [stderr]   Downloaded flume v0.11.0
[INFO] [stderr]   Downloaded hyper v1.4.1
[INFO] [stderr]   Downloaded libfuzzer-sys v0.4.7
[INFO] [stderr]   Downloaded serde_json v1.0.121
[INFO] [stderr]   Downloaded h2 v0.4.5
[INFO] [stderr]   Downloaded rustls-webpki v0.102.6
[INFO] [stderr]   Downloaded openai-api-rs v5.0.4
[INFO] [stderr]   Downloaded image v0.25.2
[INFO] [stderr]   Downloaded exr v1.72.0
[INFO] [stderr]   Downloaded syn v2.0.72
[INFO] [stderr]   Downloaded object v0.36.2
[INFO] [stderr]   Downloaded winnow v0.6.15
[INFO] [stderr]   Downloaded png v0.17.13
[INFO] [stderr]   Downloaded toml_edit v0.22.16
[INFO] [stderr]   Downloaded qoi v0.4.1
[INFO] [stderr]   Downloaded imgref v1.10.1
[INFO] [stderr]   Downloaded bitstream-io v2.5.0
[INFO] [stderr]   Downloaded serde_derive v1.0.204
[INFO] [stderr]   Downloaded toml v0.8.15
[INFO] [stderr]   Downloaded bytemuck v1.16.1
[INFO] [stderr]   Downloaded rustls v0.23.12
[INFO] [stderr]   Downloaded zune-jpeg v0.4.13
[INFO] [stderr]   Downloaded cc v1.1.6
[INFO] [stderr]   Downloaded gif v0.13.1
[INFO] [stderr]   Downloaded fdeflate v0.3.4
[INFO] [stderr]   Downloaded av1-grain v0.2.3
[INFO] [stderr]   Downloaded serde v1.0.204
[INFO] [stderr]   Downloaded thiserror v1.0.63
[INFO] [stderr]   Downloaded built v0.7.4
[INFO] [stderr]   Downloaded target-lexicon v0.12.15
[INFO] [stderr]   Downloaded pkg-config v0.3.30
[INFO] [stderr]   Downloaded rgb v0.8.45
[INFO] [stderr]   Downloaded mio v1.0.1
[INFO] [stderr]   Downloaded jpeg-decoder v0.3.1
[INFO] [stderr]   Downloaded loop9 v0.1.5
[INFO] [stderr]   Downloaded tokio v1.39.2
[INFO] [stderr]   Downloaded arg_enum_proc_macro v0.3.4
[INFO] [stderr]   Downloaded interpolate_name v0.2.4
[INFO] [stderr]   Downloaded version-compare v0.2.0
[INFO] [stderr]   Downloaded serde_spanned v0.6.6
[INFO] [stderr]   Downloaded aligned-vec v0.5.0
[INFO] [stderr]   Downloaded v_frame v0.3.8
[INFO] [stderr]   Downloaded ravif v0.11.9
[INFO] [stderr]   Downloaded noop_proc_macro v0.3.0
[INFO] [stderr]   Downloaded toml_datetime v0.6.6
[INFO] [stderr]   Downloaded thiserror-impl v1.0.63
[INFO] [stderr]   Downloaded rav1e v0.7.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 32c8f6c77211bd1cbcd62ea8239ee7b33be0ef2ef599907ecd66edabf1e5c6d6
[INFO] running `Command { std: "docker" "start" "-a" "32c8f6c77211bd1cbcd62ea8239ee7b33be0ef2ef599907ecd66edabf1e5c6d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "32c8f6c77211bd1cbcd62ea8239ee7b33be0ef2ef599907ecd66edabf1e5c6d6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "32c8f6c77211bd1cbcd62ea8239ee7b33be0ef2ef599907ecd66edabf1e5c6d6", kill_on_drop: false }`
[INFO] [stdout] 32c8f6c77211bd1cbcd62ea8239ee7b33be0ef2ef599907ecd66edabf1e5c6d6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 74a0b766f9a7610b74439fc05c8c41a62885ff0cba843a2bb4700635188aaae3
[INFO] running `Command { std: "docker" "start" "-a" "74a0b766f9a7610b74439fc05c8c41a62885ff0cba843a2bb4700635188aaae3", kill_on_drop: false }`
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling bytes v1.6.1
[INFO] [stderr]    Compiling pin-project-lite v0.2.14
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling syn v2.0.72
[INFO] [stderr]    Compiling futures-core v0.3.30
[INFO] [stderr]    Compiling pkg-config v0.3.30
[INFO] [stderr]    Compiling cc v1.1.6
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling mio v1.0.1
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling http v1.1.0
[INFO] [stderr]    Compiling slab v0.4.9
[INFO] [stderr]    Compiling futures-task v0.3.30
[INFO] [stderr]    Compiling unicase v2.7.0
[INFO] [stderr]    Compiling futures-util v0.3.30
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling equivalent v1.0.1
[INFO] [stderr]    Compiling futures-sink v0.3.30
[INFO] [stderr]    Compiling httparse v1.9.4
[INFO] [stderr]    Compiling openssl v0.10.66
[INFO] [stderr]    Compiling miniz_oxide v0.7.4
[INFO] [stderr]    Compiling openssl-sys v0.9.103
[INFO] [stderr]    Compiling indexmap v2.2.6
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling arrayvec v0.7.4
[INFO] [stderr]    Compiling aligned-vec v0.5.0
[INFO] [stderr]    Compiling serde v1.0.204
[INFO] [stderr]    Compiling bitflags v2.6.0
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]    Compiling native-tls v0.2.12
[INFO] [stderr]    Compiling built v0.7.4
[INFO] [stderr]    Compiling tinyvec v1.8.0
[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 bytemuck v1.16.1
[INFO] [stderr]    Compiling num-rational v0.4.2
[INFO] [stderr]    Compiling tower-layer v0.3.2
[INFO] [stderr]    Compiling percent-encoding v2.3.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.1
[INFO] [stderr]    Compiling unicode-normalization v0.1.23
[INFO] [stderr]    Compiling flate2 v1.0.30
[INFO] [stderr]    Compiling mime_guess v2.0.5
[INFO] [stderr]    Compiling itertools v0.12.1
[INFO] [stderr]    Compiling darling_core v0.20.10
[INFO] [stderr]    Compiling av1-grain v0.2.3
[INFO] [stderr]    Compiling spin v0.9.8
[INFO] [stderr]    Compiling simd_helpers v0.1.0
[INFO] [stderr]    Compiling maybe-rayon v0.1.1
[INFO] [stderr]    Compiling quick-error v2.0.1
[INFO] [stderr]    Compiling serde_json v1.0.121
[INFO] [stderr]    Compiling unicode-bidi v0.3.15
[INFO] [stderr]    Compiling imgref v1.10.1
[INFO] [stderr]    Compiling new_debug_unreachable v1.0.6
[INFO] [stderr]    Compiling noop_proc_macro v0.3.0
[INFO] [stderr]    Compiling bitstream-io v2.5.0
[INFO] [stderr]    Compiling loop9 v0.1.5
[INFO] [stderr]    Compiling flume v0.11.0
[INFO] [stderr]    Compiling rgb v0.8.45
[INFO] [stderr]    Compiling idna v0.5.0
[INFO] [stderr]    Compiling http-body-util v0.1.2
[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 half v2.4.1
[INFO] [stderr]    Compiling rustls-pki-types v1.7.0
[INFO] [stderr]    Compiling byteorder-lite v0.1.0
[INFO] [stderr]    Compiling zune-core v0.4.12
[INFO] [stderr]    Compiling color_quant v1.1.0
[INFO] [stderr]    Compiling jpeg-decoder v0.3.1
[INFO] [stderr]    Compiling lebe v0.5.2
[INFO] [stderr]    Compiling bit_field v0.10.2
[INFO] [stderr]    Compiling zune-jpeg v0.4.13
[INFO] [stderr]    Compiling png v0.17.13
[INFO] [stderr]    Compiling exr v1.72.0
[INFO] [stderr]    Compiling image-webp v0.1.3
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.5
[INFO] [stderr]    Compiling tokio v1.39.2
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling darling_macro v0.20.10
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]    Compiling profiling-procmacros v1.0.15
[INFO] [stderr]    Compiling pin-project v1.1.5
[INFO] [stderr]    Compiling serde_derive v1.0.204
[INFO] [stderr]    Compiling darling v0.20.10
[INFO] [stderr]    Compiling profiling v1.0.15
[INFO] [stderr]    Compiling num-derive v0.4.2
[INFO] [stderr]    Compiling arg_enum_proc_macro v0.3.4
[INFO] [stderr]    Compiling derive_builder_core v0.20.0
[INFO] [stderr]    Compiling tiff v0.9.1
[INFO] [stderr]    Compiling gif v0.13.1
[INFO] [stderr]    Compiling derive_builder_macro v0.20.0
[INFO] [stderr]    Compiling rustls-pemfile v2.1.2
[INFO] [stderr]    Compiling url v2.5.2
[INFO] [stderr]    Compiling rayon v1.10.0
[INFO] [stderr]    Compiling qoi v0.4.1
[INFO] [stderr]    Compiling sync_wrapper v1.0.1
[INFO] [stderr]    Compiling ipnet v2.9.0
[INFO] [stderr]    Compiling derive_builder v0.20.0
[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 serde_urlencoded v0.7.1
[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 2m 05s
[INFO] running `Command { std: "docker" "inspect" "74a0b766f9a7610b74439fc05c8c41a62885ff0cba843a2bb4700635188aaae3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "74a0b766f9a7610b74439fc05c8c41a62885ff0cba843a2bb4700635188aaae3", kill_on_drop: false }`
[INFO] [stdout] 74a0b766f9a7610b74439fc05c8c41a62885ff0cba843a2bb4700635188aaae3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 47f069253177679302796514d81414dd46f99d0144866241dc2c9fc85b52194e
[INFO] running `Command { std: "docker" "start" "-a" "47f069253177679302796514d81414dd46f99d0144866241dc2c9fc85b52194e", kill_on_drop: false }`
[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]    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 `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 5.23s
[INFO] running `Command { std: "docker" "inspect" "47f069253177679302796514d81414dd46f99d0144866241dc2c9fc85b52194e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "47f069253177679302796514d81414dd46f99d0144866241dc2c9fc85b52194e", kill_on_drop: false }`
[INFO] [stdout] 47f069253177679302796514d81414dd46f99d0144866241dc2c9fc85b52194e
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+1.93.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 7ad323e3eedde5e96a282b0ee7b1b8eda830eb11380319f71b59c68e562312e8
[INFO] running `Command { std: "docker" "start" "-a" "7ad323e3eedde5e96a282b0ee7b1b8eda830eb11380319f71b59c68e562312e8", 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-aa1c1493392d6774)
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test file_handlers::tests::test_filter_markdown_json ... ok
[INFO] [stdout] test gpt4o::tests::test_create_openai_client ... ok
[INFO] [stdout] test file_handlers::tests::test_get_filename_from_path ... 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' (20) 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:     0x595236dc52e2 - std::backtrace_rs::backtrace::libunwind::trace::h90e89fac33585832
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x595236dc52e2 - std::backtrace_rs::backtrace::trace_unsynchronized::heebcf2380a8e7359
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x595236dc52e2 - std::sys::backtrace::_print_fmt::hdf3e2a22d2f810db
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:68:9
[INFO] [stdout]    3:     0x595236dc52e2 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hac1d885928ba8582
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:38:26
[INFO] [stdout]    4:     0x595236dd70a7 - core::fmt::rt::Argument::fmt::h6901eb7c19abebe8
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/fmt/rt.rs:152:76
[INFO] [stdout]    5:     0x595236dd70a7 - core::fmt::write::h83ebb4d32483be9e
[INFO] [stdout]    6:     0x595236d93446 - std::io::default_write_fmt::h751a79cdae495f10
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/io/mod.rs:639:11
[INFO] [stdout]    7:     0x595236d93446 - std::io::Write::write_fmt::h9ef514f8700ff7b2
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/io/mod.rs:1994:13
[INFO] [stdout]    8:     0x595236da4289 - std::sys::backtrace::BacktraceLock::print::hcc2e1a3ac996c911
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:41:9
[INFO] [stdout]    9:     0x595236da4289 - std::panicking::default_hook::{{closure}}::h8e9c4d1276f0925f
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:292:27
[INFO] [stdout]   10:     0x595236da4121 - std::panicking::default_hook::h2b2078d38b534dfb
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:316:9
[INFO] [stdout]   11:     0x5952365afe5e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h39d051e7dedac6a7
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/alloc/src/boxed.rs:2220:9
[INFO] [stdout]   12:     0x5952365afe5e - test::test_main_with_exit_callback::{{closure}}::h4b005fe75814c302
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:145:21
[INFO] [stdout]   13:     0x595236da45b2 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hd426070722c13cbf
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/alloc/src/boxed.rs:2220:9
[INFO] [stdout]   14:     0x595236da45b2 - std::panicking::panic_with_hook::h39b739724e701bfd
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:833:13
[INFO] [stdout]   15:     0x595236da4348 - std::panicking::panic_handler::{{closure}}::he540c4833054e458
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:698:13
[INFO] [stdout]   16:     0x595236d9f399 - std::sys::backtrace::__rust_end_short_backtrace::hfa179d89deec8aed
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:176:18
[INFO] [stdout]   17:     0x595236d8814d - __rustc[d131491b17107b07]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:689:5
[INFO] [stdout]   18:     0x595236de068c - core::panicking::panic_fmt::ha564519d657d9c46
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panicking.rs:80:14
[INFO] [stdout]   19:     0x595236de0543 - core::panicking::assert_failed_inner::h6fc38e43be639d33
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panicking.rs:439:17
[INFO] [stdout]   20:     0x59523696bc8b - core::panicking::assert_failed::h21175389e5e25a30
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panicking.rs:394:5
[INFO] [stdout]   21:     0x5952364cd198 - gpt4ocr::file_handlers::tests::test_save_json_to_file::{{closure}}::h4435f3a3730afe20
[INFO] [stdout]                                at /opt/rustwide/workdir/src/file_handlers.rs:136:9
[INFO] [stdout]   22:     0x5952364cbb82 - <core::pin::Pin<P> as core::future::future::Future>::poll::h330faf3a10fbca94
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/future/future.rs:133:9
[INFO] [stdout]   23:     0x5952364cbc3d - <core::pin::Pin<P> as core::future::future::Future>::poll::hbb53ba09d776c9de
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/future/future.rs:133:9
[INFO] [stdout]   24:     0x5952364cb9cd - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::{{closure}}::hb272c73d56c8c199
[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:73
[INFO] [stdout]   25:     0x5952364cb91b - tokio::runtime::coop::with_budget::hb25c0f6822f1a467
[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]   26:     0x5952364cb91b - tokio::runtime::coop::budget::h6207f141ddd5cd36
[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]   27:     0x5952364cb91b - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::{{closure}}::hb7e9f79f7ce843c5
[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]   28:     0x5952364c8d50 - tokio::runtime::scheduler::current_thread::Context::enter::ha1c37a2b65359f04
[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]   29:     0x5952364ca390 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::{{closure}}::hecbae6f114adf6d9
[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:44
[INFO] [stdout]   30:     0x5952364ca014 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::{{closure}}::hd3f591e3c0050257
[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]   31:     0x595236557dbb - tokio::runtime::context::scoped::Scoped<T>::set::habd24360215aed55
[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]   32:     0x595236553bd9 - tokio::runtime::context::set_scheduler::{{closure}}::h4d48896dc59b5da6
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/context.rs:180:38
[INFO] [stdout]   33:     0x59523647112f - std::thread::local::LocalKey<T>::try_with::hfb9ba9e60b9a4564
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/thread/local.rs:513:12
[INFO] [stdout]   34:     0x59523647021e - std::thread::local::LocalKey<T>::with::hd4ae5e757a182bc7
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/thread/local.rs:477:20
[INFO] [stdout]   35:     0x595236553b8d - tokio::runtime::context::set_scheduler::hb603bef11ba319ee
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/context.rs:180:17
[INFO] [stdout]   36:     0x5952364c9980 - tokio::runtime::scheduler::current_thread::CoreGuard::enter::h7082e17597a074f6
[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]   37:     0x5952364ca0d6 - tokio::runtime::scheduler::current_thread::CoreGuard::block_on::h8fc8d4b5b7268d6d
[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:24
[INFO] [stdout]   38:     0x5952364c7fc3 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::{{closure}}::h3671113da1d3a370
[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:33
[INFO] [stdout]   39:     0x5952365581d3 - tokio::runtime::context::runtime::enter_runtime::h714d48e7a32b4af2
[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]   40:     0x5952364c7d71 - tokio::runtime::scheduler::current_thread::CurrentThread::block_on::hf8a958de72404760
[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]   41:     0x5952364b06ba - tokio::runtime::runtime::Runtime::block_on_inner::hfa41fda060392407
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/runtime.rs:361:52
[INFO] [stdout]   42:     0x5952364b07a5 - tokio::runtime::runtime::Runtime::block_on::hb2c51e0caf43386b
[INFO] [stdout]                                at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tokio-1.39.2/src/runtime/runtime.rs:335:18
[INFO] [stdout]   43:     0x5952364cce89 - gpt4ocr::file_handlers::tests::test_save_json_to_file::h3a697cbd2bb71c25
[INFO] [stdout]                                at /opt/rustwide/workdir/src/file_handlers.rs:136:47
[INFO] [stdout]   44:     0x5952364cd1e7 - gpt4ocr::file_handlers::tests::test_save_json_to_file::{{closure}}::h6d451f762ede313b
[INFO] [stdout]                                at /opt/rustwide/workdir/src/file_handlers.rs:132:38
[INFO] [stdout]   45:     0x5952364b69d6 - core::ops::function::FnOnce::call_once::h2242676a40bba4a8
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   46:     0x5952365afc8b - core::ops::function::FnOnce::call_once::h0217b30cfdee2e67
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   47:     0x5952365afc8b - test::__rust_begin_short_backtrace::h6d98714a1e28f556
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:663:18
[INFO] [stdout]   48:     0x5952365c361a - test::run_test_in_process::{{closure}}::he2c70d2634d3a3cc
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:686:74
[INFO] [stdout]   49:     0x5952365c361a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h40a0a825bcf17fdd
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stdout]   50:     0x5952365c361a - std::panicking::catch_unwind::do_call::h6c8eb5dd6e7b5975
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:581:40
[INFO] [stdout]   51:     0x5952365c361a - std::panicking::catch_unwind::h55455eac2972ad1e
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:544:19
[INFO] [stdout]   52:     0x5952365c361a - std::panic::catch_unwind::h0025465150a5e558
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panic.rs:359:14
[INFO] [stdout]   53:     0x5952365c361a - test::run_test_in_process::hb61e682f9b630fbc
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:686:27
[INFO] [stdout]   54:     0x5952365c361a - test::run_test::{{closure}}::hc2c2a7a38ab176e2
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:607:43
[INFO] [stdout]   55:     0x59523659d8b4 - test::run_test::{{closure}}::ha91867b85cd2a911
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/test/src/lib.rs:637:41
[INFO] [stdout]   56:     0x59523659d8b4 - std::sys::backtrace::__rust_begin_short_backtrace::ha00a9fe02049c339
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/backtrace.rs:160:18
[INFO] [stdout]   57:     0x5952365a11e2 - std::thread::lifecycle::spawn_unchecked::{{closure}}::{{closure}}::hd629fba9153dfb55
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/thread/lifecycle.rs:92:13
[INFO] [stdout]   58:     0x5952365a11e2 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h4189018816a5c5d9
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/panic/unwind_safe.rs:274:9
[INFO] [stdout]   59:     0x5952365a11e2 - std::panicking::catch_unwind::do_call::hf9fcdbca3c2e9877
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:581:40
[INFO] [stdout]   60:     0x5952365a11e2 - std::panicking::catch_unwind::h97b92d88631c7c64
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panicking.rs:544:19
[INFO] [stdout]   61:     0x5952365a11e2 - std::panic::catch_unwind::ha77cdbb68e725e5e
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/panic.rs:359:14
[INFO] [stdout]   62:     0x5952365a11e2 - std::thread::lifecycle::spawn_unchecked::{{closure}}::h511f05bc1a132253
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/thread/lifecycle.rs:90:26
[INFO] [stdout]   63:     0x5952365a11e2 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h6b68b31e9b685cb8
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/core/src/ops/function.rs:250:5
[INFO] [stdout]   64:     0x595236d9aa1f - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h22a27d165e4e871d
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/alloc/src/boxed.rs:2206:9
[INFO] [stdout]   65:     0x595236d9aa1f - std::sys::thread::unix::Thread::new::thread_start::h45cc87bb053add0f
[INFO] [stdout]                                at /rustc/254b59607d4417e9dffbc307138ae5c86280fe4c/library/std/src/sys/thread/unix.rs:118:17
[INFO] [stdout]   66:     0x7d0dec175aa4 - <unknown>
[INFO] [stdout]   67:     0x7d0dec202a64 - 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.47s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "7ad323e3eedde5e96a282b0ee7b1b8eda830eb11380319f71b59c68e562312e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7ad323e3eedde5e96a282b0ee7b1b8eda830eb11380319f71b59c68e562312e8", kill_on_drop: false }`
[INFO] [stdout] 7ad323e3eedde5e96a282b0ee7b1b8eda830eb11380319f71b59c68e562312e8
