Wox-launcher/Wox · error · SystemExit
Palette PNG is missing PLTE chunk
Error message
Palette PNG is missing PLTE chunk
What it means
Error "Palette PNG is missing PLTE chunk" thrown in Wox-launcher/Wox.
Source
Thrown at assets/generate_app_icons.sh:114
if compression != 0 or filter_method != 0 or interlace != 0:
raise SystemExit("Only non-interlaced standard PNG files are supported")
elif kind == b"PLTE":
palette = [tuple(payload[index : index + 3]) for index in range(0, len(payload), 3)]
elif kind == b"tRNS":
transparency = payload
elif kind == b"IDAT":
idat.extend(payload)
elif kind == b"IEND":
break
if width is None or height is None or color_type is None:
raise SystemExit("PNG header is missing")
channels_by_type = {0: 1, 2: 3, 3: 1, 4: 2, 6: 4}
if color_type not in channels_by_type:
raise SystemExit(f"Unsupported PNG color type: {color_type}")
if color_type == 3 and palette is None:
raise SystemExit("Palette PNG is missing PLTE chunk")
channels = channels_by_type[color_type]
row_bytes = width * channels
raw = zlib.decompress(bytes(idat))
rgba = bytearray(width * height * 4)
previous = bytearray(row_bytes)
source_offset = 0
target_offset = 0
for _ in range(height):
filter_type = raw[source_offset]
source_offset += 1
row = bytearray(raw[source_offset : source_offset + row_bytes])
source_offset += row_bytes
for index in range(row_bytes):
left = row[index - channels] if index >= channels else 0
up = previous[index]View on GitHub (pinned to 1659730fcb)
When it happens
Trigger: Thrown at assets/generate_app_icons.sh:114 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Wox-launcher/Wox@1659730fcb (2026-08-15).
Data as JSON: /api/errors/2665e671ff2148da.
Report an issue: GitHub.