{"record":{"id":"1e19e90183d87db8","repo":"Wox-launcher/Wox","slug":"path-must-be-an-8-bit-non-interlaced-rgba-png","errorCode":null,"errorMessage":"{path} must be an 8-bit non-interlaced RGBA PNG","messagePattern":"(.+?) must be an 8-bit non-interlaced RGBA PNG","errorType":"console","errorClass":"SystemExit","httpStatus":null,"severity":"error","filePath":"assets/linux/write_hicolor_icons.py","lineNumber":51,"sourceCode":"    \"\"\"Decode an 8-bit RGBA PNG into raw pixels.\"\"\"\n    data = path.read_bytes()\n    if not data.startswith(b\"\\x89PNG\\r\\n\\x1a\\n\"):\n        raise SystemExit(f\"{path} is not a PNG file\")\n\n    width = height = None\n    idat = bytearray()\n    offset = 8\n    while offset < len(data):\n        length = struct.unpack(\">I\", data[offset : offset + 4])[0]\n        offset += 4\n        kind = data[offset : offset + 4]\n        offset += 4\n        payload = data[offset : offset + length]\n        offset += length + 4\n        if kind == b\"IHDR\":\n            width, height, bit_depth, color_type, compression, filter_method, interlace = struct.unpack(\">IIBBBBB\", payload)\n            if bit_depth != 8 or color_type != 6 or compression or filter_method or interlace:\n                raise SystemExit(f\"{path} must be an 8-bit non-interlaced RGBA PNG\")\n        elif kind == b\"IDAT\":\n            idat.extend(payload)\n        elif kind == b\"IEND\":\n            break\n\n    if width is None or height is None:\n        raise SystemExit(f\"{path} is missing a PNG header\")\n\n    raw = zlib.decompress(bytes(idat))\n    rgba = bytearray(width * height * 4)\n    previous = bytearray(width * 4)\n    source_offset = 0\n    target_offset = 0\n    for _ in range(height):\n        filter_type = raw[source_offset]\n        source_offset += 1\n        row = bytearray(raw[source_offset : source_offset + width * 4])\n        source_offset += width * 4","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/Wox-launcher/Wox/blob/1659730fcb37154f26497e07308b1f8789d659fe/assets/linux/write_hicolor_icons.py#L33-L69","documentation":"Error \"{path} must be an 8-bit non-interlaced RGBA PNG\" thrown in Wox-launcher/Wox.","triggerScenarios":"Thrown at assets/linux/write_hicolor_icons.py:51 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1659730fcb37154f26497e07308b1f8789d659fe","analyzedAt":"2026-08-15T23:31:07.596Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}