BigPizzaV3/CodexPlusPlus · error
manifest.sig 超过大小限制
Error message
manifest.sig 超过大小限制
What it means
If the package includes a manifest.sig signature file, its length is checked against SIGNATURE_LIMIT; anything larger is rejected. The signature is optional, so this only fires when manifest.sig exists but is oversized — usually indicating a corrupted or bogus signature blob.
Solutions
- Regenerate manifest.sig with the official signing tool so it's a compact signature blob
- Check the file isn't corrupted or containing extra data (hexdump its size vs expected signature length)
- Remove manifest.sig if the package is unsigned (signature is optional)
- Rebuild the package from a clean source tree
Example fix
// before: manifest.sig = 8 KiB of garbage // after sign_tool manifest.json > manifest.sig # compact valid signature
Defensive patterns
Strategy: validation
Validate before calling
const SIGNATURE_LIMIT: usize = 4096;
if let Some(sig) = files.get("manifest.sig") {
if sig.len() > SIGNATURE_LIMIT {
return Err(SignatureTooLarge(sig.len()));
}
} Try / catch
match validate_and_read_package(&bytes, platform) {
Err(e) if e.to_string().contains("manifest.sig") => {
Err(UserFacingError::InvalidSignatureFile)
}
other => other,
} Prevention
- Generate manifest.sig only with the official signing tool
- Verify signature file size right after signing (should be a few hundred bytes)
- Exclude signature files from builds that aren't signed
When it happens
Trigger: validate_and_read_package reads a manifest.sig entry whose byte length exceeds SIGNATURE_LIMIT (checked after per-file limits already passed).
Common situations: Corrupted or concatenated signature file from a bad build script; wrong file placed at manifest.sig; signature file polluted with extra text/line endings.
Understand the failure class
Background: "File too large" / "file size exceeds limit" errors: why libraries cap file sizes and how to fix them — this error's family across 46 libraries.
Related errors
- Dream Skin 主题包文件数量必须在 1 到 32 之间
- Dream Skin 主题包超过 32 MiB 限制
- Dream Skin source image exceeds 50 MiB
- 主题包文件 超过大小限制
- 主题包必须是 32 MiB 以内的普通 ZIP 文件
AI-assisted analysis of BigPizzaV3/CodexPlusPlus@b1ed92e5e4 (2026-09-19).
Data as JSON: /api/errors/72343129e4651142.
Report an issue: GitHub.
Appendix: source
Thrown at crates/codex-plus-core/src/dream_skin_package.rs:166
.iter()
.find(|name| files.contains_key(**name))
.map(|name| (*name).to_string())
.context("主题包必须包含一个背景图片")?;
if ["background.webp", "background.jpg", "background.png"]
.iter()
.filter(|name| files.contains_key(**name))
.count()
!= 1
{
bail!("主题包必须且只能包含一个背景图片");
}
let image_bytes = files.remove(&image_name).expect("image was checked above");
validate_image_content(&image_name, &image_bytes)?;
let license_bytes = files.remove("LICENSE.txt");
let signature = files.remove("manifest.sig");
if let Some(signature) = signature {
if signature.len() > SIGNATURE_LIMIT {
bail!("manifest.sig 超过大小限制");
}
}
if !files.is_empty() {
bail!("主题包包含未处理文件");
}
let manifest: DreamSkinPackageManifest = parse_json(&manifest_bytes, "manifest.json")?;
validate_manifest(&manifest, platform)?;
let theme: Value = parse_json(&theme_bytes, "theme.json")?;
validate_theme(&theme, &manifest, &image_name)?;
let css = String::from_utf8(css_bytes).context("theme.css 不是有效 UTF-8")?;
validate_safe_css(&css)?;
validate_manifest_files(
&manifest,
&manifest_bytes,
&theme_bytes,
css.as_bytes(),
&image_name,View on GitHub (pinned to b1ed92e5e4)