siyuan-note/siyuan · error
boot appearance package is too large
Error message
boot appearance package is too large
What it means
For each regular file in the boot appearance package the walker adds its size to totalSize. When the accumulated size exceeds maxBootAppearanceTotalSize, loading aborts with this error. It is a resource cap that keeps one package from consuming unbounded disk space.
Solutions
- Compress or downscale the media assets (transcode video, convert images to WebP, lower resolution/bitrate) so the total fits under the limit
- Remove unused or duplicated assets from the package and repackage
- Reference media externally if the appearance format allows it instead of bundling them
Example fix
// before: bundle raw 4K video (800MB) // after ffmpeg -i boot-bg.mp4 -vcodec libx264 -crf 28 -vf scale=1280:-1 boot-bg-small.mp4
Defensive patterns
Strategy: validation
Validate before calling
function totalSizeWithinLimit(files, maxBytes) {
return files.reduce((n, f) => n + f.size, 0) <= maxBytes;
} Try / catch
try {
await installBootAppearance(zipPath);
} catch (e) {
if (String(e).includes("too large")) {
// compress or drop media assets
}
} Prevention
- Compress video and images before bundling
- Audit package size with `du -sh` or archive listing before release
- Do not bundle source assets alongside exports
When it happens
Trigger: Installing a boot appearance package whose files total more bytes than maxBootAppearanceTotalSize — e.g. a large video or high-resolution image layers included uncompressed.
Common situations: Including multi-hundred-MB video backgrounds in a boot animation; bundling several 4K PNG layers; packaging source assets plus compressed exports together.
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
- boot appearance path is too deep or long
- too many boot appearance entries
- boot appearance asset forbidden
- boot appearance not found
- displayName.default is required
AI-assisted analysis of siyuan-note/siyuan@9f775e8a12 (2026-09-19).
Data as JSON: /api/errors/ad4c9751da8eceb2.
Report an issue: GitHub.
Appendix: source
Thrown at kernel/model/boot_appearance.go:550
}
if len(relativePath) > maxBootAppearancePathLength ||
len(strings.Split(filepath.ToSlash(relativePath), "/")) > maxBootAppearancePathDepth {
return errors.New("boot appearance path is too deep or long")
}
}
if entry.Type()&os.ModeSymlink != 0 {
return ErrBootAppearanceAssetForbidden
}
if entry.IsDir() {
return nil
}
info, infoErr := entry.Info()
if infoErr != nil || !info.Mode().IsRegular() {
return ErrBootAppearanceAssetForbidden
}
totalSize += info.Size()
if totalSize > maxBootAppearanceTotalSize {
return errors.New("boot appearance package is too large")
}
return nil
})
return err
}
func validateBootAppearanceResource(pluginDir, appearanceDir, relativePath, expectedType string) (filePath,
contentType string, err error) {
if !isSafeBootAppearanceRelativePath(relativePath) {
err = ErrBootAppearanceAssetForbidden
return
}
filePath = filepath.Join(appearanceDir, filepath.FromSlash(relativePath))
if err = ensureBootAppearancePathHasNoSymlink(pluginDir, filePath); err != nil {
err = ErrBootAppearanceAssetForbidden
return
}
info, statErr := os.Stat(filePath)View on GitHub (pinned to 9f775e8a12)