Skip to content

Cache lookup fails above wincode's 4 MiB preallocation limit #557

Description

@wan9chi

Error

A task-cache lookup fails for a cache entry with 77,885 inferred inputs:

Cache lookup failed: Encoded sequence length exceeded preallocation limit of 4194304 bytes (needed 4361560 bytes)

Root cause

wincode 0.5.2 allowed the task-cache encoder to write this inferred-input map, then rejected the same map while decoding it. The decoder estimated 4,361,560 bytes of sequence preallocation against the default 4,194,304-byte limit.

The task cache used wincode's default configuration, so a large valid cache entry could become unreadable after Vite+ wrote it.

Expected behavior

The task-cache codec should use a cache-specific preallocation limit that supports large inferred-input sets on both encode and decode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions