You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Using PNG gamma causes crash when loading bright.png #567
I have encountered a crash while loading the sprite PNG file. It is caused by a C++ runtime_exception raised when libpng throws an error in png_set_alpha_mode.
The error from libpng: E/Image﹕ PNG: output gamma out of expected range
See pngrtran.c line 293
Activity
ljbade commentedon Nov 16, 2014
Curious, the gamma read from the PNG seems too large:
ljbade commentedon Nov 16, 2014
Nevermind, it runs out there is no gamma value so the variable was uninitialised.
ljbade commentedon Nov 16, 2014
Hmm, can't recreate the crash it seems to have disappeared?
@kkaefer any ideas as to what might have fixed the crash?
ljbade commentedon Nov 16, 2014
I enabled gamma again - d957d65
ljbade commentedon Feb 10, 2015
Its back!
ljbade commentedon Feb 10, 2015
I wonder if we are somehow getting garbage/corrupted png files? commenting out the gamma load seems to work so not sure why only gamma info is bad.