# Fix icon.too_complex

icon.too_complex
Recorded exits: 1 (failed). [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/icon.too_complex, build/your-apps-icon, reference/error-code-catalog, security/web-security-for-the-console-and-apps

## Steps

Cause: Over 256 KB (SVG) or 1 MB (PNG or preview); over 2,000 elements or 32 levels deep, counting what `use`, clip paths and masks draw; an attribute over 64 KB; a PNG over 4096×4096; over 2 s to render
Next action: Simplify the SVG, or use a smaller PNG (512 px is enough)
[2]

Cause: `icon ‹verb›`, `icon`
Next action: ‹file› is ‹size› KB; an icon is at most ‹PNG_MAX› KB as a PNG and ‹SVG_MAX› KB as an SVG. / ‹file› is ‹bytes.length› KB; a‹ PNG\ | n SVG› icon is at most ‹max› KB. | Use a smaller PNG (512 px is enough), or draw the icon as SVG. Nothing was sent. / Use a smaller PNG (512 px is enough), or draw the icon as SVG. Nothing was sent. / Simplify the SVG: fewer points and elements. Nothing was sent. | commands/icon.ts:138, commands/icon.ts:144
[3]

## Errors

See the cited canonical pages for errors.

## Not available yet

Availability follows the cited sources; this answer does not establish additional capabilities.

## Sources

[1] [fix/icon.too_complex — Reference](/docs/fix/icon.too_complex.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [build/your-apps-icon — Errors](/docs/build/your-apps-icon.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [security/web-security-for-the-console-and-apps — How it works](/docs/security/web-security-for-the-console-and-apps.md#how-it-works) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [build/your-apps-icon](/docs/build/your-apps-icon/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)
- [security/web-security-for-the-console-and-apps](/docs/security/web-security-for-the-console-and-apps/known-issues.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "fix/icon.too_complex: <what is wrong>; error icon.too_complex" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
