Crash in png_warning_func()