Menu

#252 warnings when running tuxpaint from a graphical terminal.

v0.9.28
closed
nobody
None
1
2022-07-04
2022-06-30
tim
No

running tuxpaint (sdl1) from an xterm/kterminal etc. gives 5 libpng warnings.

libpng warning: iCCP: too many profiles
libpng warning: bKGD: invalid gray level
libpng warning: bKGD: invalid gray level
libpng warning: bKGD: invalid gray level
libpng warning: bKGD: invalid gray level

tuxpaint appears to run ok.
running the sdl2 version gives the same warning messages above plus an additional 7 copies of...
libpng warning: Interface handling should be turned on when using png_read_image
again, tuxpaint itself appears to run ok.
the (system) version of libpng is 1.6.37

Related

Bugs: #252

Discussion

  • tim

    tim - 2022-06-30

    woops. correction. in the above report please swap sdl1 and sdl2

     
  • William Kendrick

    This has been going on forever. I'm not sure whether there's a way to ask SDL_image library to report anything back, to help us track down the files. I'm guessing the best solution would be a small test program that uses libpng to open files, and run find . -name "*.png" -exec ... or something to exercise every single PNG file.

     
  • William Kendrick

    Created test-png tool to do this, seems to find files :)

    kendrick@gambit:~/tuxpaint/tuxpaint$ ./test-png `find . -name "*.png"` |grep -B 2 "libpng" 
      157 ------------------------------------------------------------------
    ./starters/jigsaw.png
    libpng warning: sRGB: out of place
    --
      303 ------------------------------------------------------------------
    ./data/brushes/heart.png
    libpng warning: iCCP: too many profiles
    --
      319 ------------------------------------------------------------------
    ./data/brushes/square_24.png
    libpng warning: bKGD: invalid gray level
    --
      333 ------------------------------------------------------------------
    ./data/brushes/square_36.png
    libpng warning: bKGD: invalid gray level
    --
      340 ------------------------------------------------------------------
    ./data/brushes/square_12.png
    libpng warning: bKGD: invalid gray level
    --
      343 ------------------------------------------------------------------
    ./data/brushes/square_06.png
    libpng warning: bKGD: invalid gray level
    

    https://sourceforge.net/p/tuxpaint/tuxpaint/ci/06fafcb6d698f5b891514924292589ddcfdaa796/

     

    Last edit: William Kendrick 2022-07-04
  • William Kendrick

    Some remaining warnings:

    libpng warning: Interlace handling should be turned on when using png_read_image
    libpng warning: Interlace handling should be turned on when using png_read_image
    libpng warning: Interlace handling should be turned on when using png_read_image
    libpng warning: Interlace handling should be turned on when using png_read_image
    

    Otherwise, pngout'ing files helped with the other warnings.

    See https://sourceforge.net/p/tuxpaint/tuxpaint/ci/f56acbe34de2143b3cf6720514194c0e93d9f724/

     
  • William Kendrick

    • status: open --> closed
     
    • tim

      tim - 2022-07-04

      many thanks.
      regards, Tim

      On 04/07/2022 03:55, William Kendrick wrote:

      • status: open --> closed
      • Comment:

      Amusingly, Tux Paint itself (via its call to |png_set_IHDR()| in
      |do_png_save()|) saves PNGs as interlaced, so when they are loaded,
      the "Interlace handling..." is echoed to STDERR.

      Not going to change that (for now), but will close this since all of
      the other STDERR-spamming culprit files that ship /with/ Tux Paint
      have been adjusted. (See
      https://sourceforge.net/p/tuxpaint/tuxpaint/ci/11ca37c8b494573e7ad68a4a6fe467b8c3f7ab64/)


      [bugs:#252] https://sourceforge.net/p/tuxpaint/bugs/252/ warnings
      when running tuxpaint from a graphical terminal.

      Status: closed
      Group: v0.9.28
      Created: Thu Jun 30, 2022 10:13 AM UTC by tim
      Last Updated: Mon Jul 04, 2022 12:47 AM UTC
      Owner: nobody

      running tuxpaint (sdl1) from an xterm/kterminal etc. gives 5 libpng
      warnings.

      |libpng warning: iCCP: too many profiles libpng warning: bKGD: invalid
      gray level libpng warning: bKGD: invalid gray level libpng warning:
      bKGD: invalid gray level libpng warning: bKGD: invalid gray level |

      tuxpaint appears to run ok.
      running the sdl2 version gives the same warning messages above plus an
      additional 7 copies of...
      |libpng warning: Interface handling should be turned on when using
      png_read_image|
      again, tuxpaint itself appears to run ok.
      the (system) version of libpng is 1.6.37


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/tuxpaint/bugs/252/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      This email has been checked for viruses by AVG.
      https://www.avg.com

       

      Related

      Bugs: #252

  • William Kendrick

    Amusingly, Tux Paint itself (via its call to png_set_IHDR() in do_png_save()) saves PNGs as interlaced, so when they are loaded, the "Interlace handling..." is echoed to STDERR.

    Not going to change that (for now), but will close this since all of the other STDERR-spamming culprit files that ship with Tux Paint have been adjusted. (See https://sourceforge.net/p/tuxpaint/tuxpaint/ci/11ca37c8b494573e7ad68a4a6fe467b8c3f7ab64/)

     

Log in to post a comment.