Search Issue Tracker

Fixed in Unity 2018.2

Votes

9

Found in

2017.3.0p3

Issue ID

1013198

Regression

No

[iOS] Crash in 'unity_z_inflate at inflate.c' when loading PNG file from WWW or Webrequest

Mobile

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 1Crash or major loss of functionality

Reproduction steps:
1. Open the attached project 'LoadPNGTest.zip'.
2. Build it to iOS device.
- Make sure you open '.xworkspace' instead of '.xcodeproj' file.

Actual result:
- Application will crash.

frame #0: 0x0000000100673298 PNGTest`inflate_fast + 284
* frame #1: 0x000000010071ea08 PNGTest`unity_z_inflate at inflate.c:957 [opt]
frame #2: 0x000000010071ab40 PNGTest`UNITY_png_read_IDAT_data at pngrutil.c:4022 [opt]
frame #3: 0x0000000100713bbc PNGTest`UNITY_png_read_row at pngread.c:531 [opt]
frame #4: 0x0000000100713ec8 PNGTest`UNITY_png_read_rows at pngread.c:660 [opt]
frame #5: 0x0000000100a4611c PNGTest`::DecodePixelsImpl() at ImageConversionCore.cpp:376 [opt]

Reproduced with:
- iPhone 7+ 10.3.2, iPhone 7 11.0.2
- 2017.1.3p2, 2017.2.2p1, 2017.3.1p4, 2018.1.0b11, 2018.2.0a4

Not reproducible with:
- Android

Note:
Full callstack below.

Comments (2)

  1. 1dad50e3563abe4f847a4fe34077afba?d=mm

    ACHIEVR

    Apr 22, 2018 23:03

    Yes, me too, with both WebRequest loading and texture.LoadImage()

    Will 2017.1.3 be patched as well?

    The documented workaround is here:

    https://github.com/googlevr/gvr-unity-sdk/issues/878

  2. 094b61a0c2b41b59f0a98d96cc124f18?d=mm

    andwoo

    Mar 18, 2018 22:06

    I've encountered this as well only when loading a png. Has anyone found a fix?

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.