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

Report issues or bugs in RVGL or ask for help regarding any Re-Volt topic.
User avatar
Wichilie
Posts: 65

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

Unread post by Wichilie » Mon Oct 22, 2018 6:18 pm

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.)
User avatar
Huki
Developer
Posts: 397

Re: Broken mipmap generation on 18.1020a

Unread post by Huki » Mon Oct 22, 2018 8:48 pm

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
User avatar
mmudshark
Posts: 19

Re: Broken mipmap generation on 18.1020a

Unread post by mmudshark » Mon Oct 22, 2018 11:01 pm

Thanks Huki
User avatar
Wichilie
Posts: 65

Re: Broken mipmap generation on 18.1020a

Unread post by Wichilie » Sat Oct 27, 2018 10:20 am

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.
User avatar
Pyves
Posts: 49

Re: Broken mipmap generation on 18.1020a

Unread post by Pyves » Sat Oct 27, 2018 11:14 am

No more issues with Luiji's Mansion on my side after the textures fix. :)
User avatar
SebR
Posts: 168

Re: [RVGL] Broken mipmap generation on 18.1020a

Unread post by SebR » Sun Nov 11, 2018 12:41 pm

the bug is back in 18.1110a ...
Damn DROPBOX !!! If you found broken link PM me

AlicebanD an English voice that you must discover !!
User avatar
Huki
Developer
Posts: 397

Re: [RVGL] Broken mipmap generation on 18.1020a

Unread post by Huki » Mon Nov 12, 2018 2:02 pm

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).
User avatar
SebR
Posts: 168

Re: [RVGL] Broken mipmap generation on 18.1020a

Unread post by SebR » Mon Nov 12, 2018 7:10 pm

with fixed texture it work fine (strainge that i didn't need theme with previous release ? )
Damn DROPBOX !!! If you found broken link PM me

AlicebanD an English voice that you must discover !!
User avatar
Huki
Developer
Posts: 397

Re: [RVGL] Broken mipmap generation on 18.1020a

Unread post by Huki » Tue Nov 13, 2018 12:41 pm

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.
Post Reply