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
https://bugs.winehq.org/show_bug.cgi?id=42396
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com, | |madewokherd@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=42396
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=42396
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru --- Attached PNG image gets loaded and converted to another WIC format just fine using wine-staging 2.1 (Unreleased), can't test with winehq since the test application I'm using fails earlier due to unimplemented WIC features it needs.
https://bugs.winehq.org/show_bug.cgi?id=42396
--- Comment #2 from Dmitry Timoshkov dmitry@baikal.ru --- Just for the reference:
$ pnginfo xcamdlg_stretched.png /home/dmitry/xcamdlg_stretched.png... Image Width: 750 Image Length: 408 Bitdepth (Bits/Sample): 8 Channels (Samples/Pixel): 4 Pixel depth (Pixel Depth): 32 Colour Type (Photometric Interpretation): RGB with alpha channel Image filter: Single row per byte filter Interlacing: No interlacing Compression Scheme: Deflate method 8, 32k window Resolution: 3780, 3780 (pixels per meter) FillOrder: msb-to-lsb Byte Order: Network (Big Endian) Number of text strings: 0 of 0
https://bugs.winehq.org/show_bug.cgi?id=42396
--- Comment #3 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Dmitry Timoshkov from comment #1)
Attached PNG image gets loaded and converted to another WIC format just fine using wine-staging 2.1 (Unreleased), can't test with winehq since the test application I'm using fails earlier due to unimplemented WIC features it needs.
It's possible it's specific to the library configuration on my machine, Googling around for the mentioned zlib errors often results in discussions of build configuration changes.
https://bugs.winehq.org/show_bug.cgi?id=42396
--- Comment #4 from Vincent Povirk madewokherd@gmail.com --- It loads in my test program as well (not using staging).
https://bugs.winehq.org/show_bug.cgi?id=42396
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #5 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-4.1?
https://bugs.winehq.org/show_bug.cgi?id=42396
--- Comment #6 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-7.0?