Bug TexturePacker in Nightlies
#1
I have error when try create Textures.xbt using TexturePacker, I receiver this message

Warning: Interlace handling should be turned on when using png_read_image

Search I find this:

http://sourceforge.net/p/libpng/bugs/165/

Anyone have idea how I solve this,

I am using windows 8.1, python 3.4.2

Libpng version 1.5.13

TexturePacker crash for me

this image for example is the first with troubles

http://i.imgur.com/VPL1lTn.png

Image

thanks

Wanilton
MediaBrazil forum Website - Youtube Channel
MQ9-1.6.0.29 - 09.15.2023 - Aeon MQ Skin Team
MarcosQui Website Donate and support us.
Reply
#2
That warning is non fatal ... (and can't be removed easily).

You should provide which version (git hash) of texturepacker you compiled and on which platform. Also you should try to provide a stacktrace of the crash (by running texturepacker in a debugger for example).
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
I have the same error with a PNG file from aeon.nox.5 skin https://github.com/BigNoid/Aeon-Nox/raw/...shadow.png

I use Kodi git version 576ac98869c5e6490a38b55ef48fe8cb0ca4ae84 on Ubuntu 14.04.1 LTS x86_64.

The segfault is in squish::CopyRGBA(), and is caused by grayscale PNG files, libsquish only takes data in 32bit ARGB format, however TexturePacker's PNGDecoder::LoadFile() does not convert grayscale data correctly.

I have patched the PNGDecoder and this works for both sample files posted here:
Code:
diff -ruN a/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp b/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp
--- a/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp    2015-01-19 08:54:32.000000000 +0200
+++ b/tools/depends/native/TexturePacker/src/decoder/PNGDecoder.cpp    2015-01-30 13:38:05.000000000 +0200
@@ -165,7 +165,14 @@
   /* swap the RGBA or GA data to ARGB or AG (or BGRA to ABGR) */
   //png_set_swap_alpha(png_ptr);
  
-  
+  //libsquish only eats 32bit RGBA, must convert grayscale into this format
+  if (color_type == PNG_COLOR_TYPE_GRAY ||
+      color_type == PNG_COLOR_TYPE_GRAY_ALPHA)
+  {
+    png_set_expand_gray_1_2_4_to_8(png_ptr);
+    png_set_gray_to_rgb(png_ptr);
+  }
+
   // Update the png info struct.
   png_read_update_info(png_ptr, info_ptr);

Should i create a trac ticket for this?
Reply
#4
preferably you create a git pull request if possible
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply

Logout Mark Read Team Forum Stats Members Help
TexturePacker in Nightlies0