{"record":{"id":"2a15d7eb8edeefe1","repo":"Wox-launcher/Wox","slug":"path-is-missing-a-png-header","errorCode":null,"errorMessage":"{path} is missing a PNG header","messagePattern":"(.+?) is missing a PNG header","errorType":"console","errorClass":"SystemExit","httpStatus":null,"severity":"error","filePath":"assets/linux/write_hicolor_icons.py","lineNumber":58,"sourceCode":"    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\n        for index in range(width * 4):\n            left = row[index - 4] if index >= 4 else 0\n            up = previous[index]\n            up_left = previous[index - 4] if index >= 4 else 0\n            if filter_type == 1:\n                row[index] = (row[index] + left) & 0xFF\n            elif filter_type == 2:","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/Wox-launcher/Wox/blob/1659730fcb37154f26497e07308b1f8789d659fe/assets/linux/write_hicolor_icons.py#L40-L76","documentation":"Error \"{path} is missing a PNG header\" thrown in Wox-launcher/Wox.","triggerScenarios":"Thrown at assets/linux/write_hicolor_icons.py:58 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"}