https://bugs.winehq.org/show_bug.cgi?id=42396
Bug ID: 42396 Summary: windowscodecs fails to load file with iCCP chunk Product: Wine Version: 2.1 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: windowscodecs Assignee: wine-bugs@winehq.org Reporter: aeikum@codeweavers.com Distribution: ---
Created attachment 57206 --> https://bugs.winehq.org/attachment.cgi?id=57206 PNG with iCCP chunks that fails to load
Age of Empires II: HD on Steam includes a PNG file that windowscodecs fails to load. This causes the game to show an error dialog and quit. I've attached the PNG here.
Relevant lines from a log:
0009:trace:d3dx:D3DXCreateTextureFromFileExA device 0x2009a0, srcfile "Z:\home\aeikum\.local\share\Steam\steamapps\common\Age2HD\resources\_common\textures\ui\xcamdlg_stretched.png", width 4294967295, height 4294967295, miplevels 1, usage 0, format 0x15, pool 0x2, filter 0x1, mipfilter 0x1, colorkey 0x00000000, srcinfo 0x33f494, palette (nil), texture 0x33f504.
...
0009:warn:wincodecs:user_warning_fn PNG warning: "iCCP: bad parameters to zlib" 0009:warn:wincodecs:user_error_fn PNG error: "bad parameters to zlib" 0009:warn:wincodecs:ComponentFactory_CreateDecoderFromStream failed to load from a stream 0009:warn:wincodecs:ComponentFactory_CreateDecoderFromStream first 4 bytes of stream=89 50 4e 47 0009:trace:d3dx:D3DXGetImageInfoFromFileInMemory Invalid or unsupported image file: 88982f50