Page 1 of 1

[SOLVED] [RVGL] Broken mipmap generation on 18.1020a

Posted: Mon Oct 22, 2018 6:18 pm
by Wichilie
It appears the addition of .svg support has broken some other texture code. Certain images will cause RVGL to throw an error message:

Image

This error is not present in previous versions.

(For reference, the track used is Luigi's Mansion. The problematic textures are i and j.)

Re: Broken mipmap generation on 18.1020a

Posted: Mon Oct 22, 2018 8:48 pm
by Huki
Running the Windows version of RVGL prints in the console:

Code: Select all

libpng error: IDAT: chunk data is too large
for those two textures.

This happens to be a bug in libpng 1.6.32 that is included with the recent RVGL update.
See: https://sourceforge.net/p/libpng/bugs/270/

For now, you can workaround this issue by:
1) Using libpng16-16.dll from the previous RVGL version together with the latest version. (or)
2) Resaving the textures i and j in GIMP so it works with libpng 1.6.32.

EDIT: Here are the fixed textures (resaved in GIMP).
mkds_mansion_textures_fix.zip

Re: Broken mipmap generation on 18.1020a

Posted: Mon Oct 22, 2018 11:01 pm
by mmudshark
Thanks Huki

Re: Broken mipmap generation on 18.1020a

Posted: Sat Oct 27, 2018 10:20 am
by Wichilie
Huki wrote:
Mon Oct 22, 2018 8:48 pm
This happens to be a bug in libpng 1.6.32 that is included with the recent RVGL update.
Ah, I see.
Huki wrote:
Mon Oct 22, 2018 8:48 pm
EDIT: Here are the fixed textures (resaved in GIMP).
mkds_mansion_textures_fix.zip
Thanks! I included them in an update.

Re: Broken mipmap generation on 18.1020a

Posted: Sat Oct 27, 2018 11:14 am
by Pyves
No more issues with Luiji's Mansion on my side after the textures fix. :)

Re: [RVGL] Broken mipmap generation on 18.1020a

Posted: Sun Nov 11, 2018 12:41 pm
by SebR
the bug is back in 18.1110a ...

Re: [RVGL] Broken mipmap generation on 18.1020a

Posted: Mon Nov 12, 2018 2:02 pm
by Huki
SebR wrote:
Sun Nov 11, 2018 12:41 pm
the bug is back in 18.1110a ...
Make sure you're using the fixed textures (or re-download from RVZ).

Re: [RVGL] Broken mipmap generation on 18.1020a

Posted: Mon Nov 12, 2018 7:10 pm
by SebR
with fixed texture it work fine (strainge that i didn't need theme with previous release ? )

Re: [RVGL] Broken mipmap generation on 18.1020a

Posted: Tue Nov 13, 2018 12:41 pm
by Huki
SebR wrote:
Mon Nov 12, 2018 7:10 pm
with fixed texture it work fine (strainge that i didn't need theme with previous release ? )
Yes, this is because libpng 1.6.32 can't handle those textures. It can be solved by using an older or newer libpng, but it's simpler to just resave the textures. We're using the libpng builds from SDL_image, so the next time we upgrade libpng would be in sync with SDL_image...

For info, the bug only affects PNG files that use a non-standard compression method.