[gstreamer-bugs] [Bug 634314] New: pngdec hangs on faulty pngs

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Nov 8 04:48:01 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=634314
  GStreamer | gst-plugins-good | unspecified

           Summary: pngdec hangs on faulty pngs
    Classification: Desktop
           Product: GStreamer
           Version: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: ensonic at sonicpulse.de
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Before:

$ GST_DEBUG="*:2,png*:5" gst-launch playbin2 uri=file://$PWD/broken.png
Leitung wird auf PAUSIERT gesetzt ...
0:00:00.094174756  9650  0x854a050 LOG                   pngdec
gstpngdec.c:762:gst_pngdec_libpng_init: init libpng structures
Leitung läuft vor …
0:00:00.095452781  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:487:gst_pngdec_task:<pngdec0> read frame
0:00:00.095480648  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8 bytes of data at offset 0
0:00:00.095526394  9650  0x86ef5d8 DEBUG                 pngdec
gstpngdec.c:645:gst_pngdec_sink_setcaps:<pngdec0> single picture input
0:00:00.095556495  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8 bytes of data at offset 8
0:00:00.095592463  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 13 bytes of data at offset 16
0:00:00.095618584  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 4 bytes of data at offset 29
0:00:00.095648267  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8 bytes of data at offset 33
0:00:00.095674317  9650  0x86ef5d8 WARN                  pngdec
gstpngdec.c:178:user_warning_fn: Incorrect cHRM chunk length
0:00:00.095689473  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.095717619  9650  0x86ef5d8 WARN                  pngdec
gstpngdec.c:353:user_read_data:<pngdec0> error: Internal data stream error.
0:00:00.095732914  9650  0x86ef5d8 WARN                  pngdec
gstpngdec.c:353:user_read_data:<pngdec0> error: Read 106, needed 8192bytes
FEHLER: Von Element
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstPngDec:pngdec0:
Internal data stream error.
Zusätzliche Fehlerdiagnoseinformation:
gstpngdec.c(353): user_read_data ():
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstPngDec:pngdec0:
Read 106, needed 8192bytes
FEHLER: Leitung läuft nicht vor.
Leitung wird auf NULL gesetzt ...
0:00:00.096027644  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason error
0:00:00.096047549  9650  0x86ef5d8 WARN                  pngdec
gstpngdec.c:343:user_read_data:<pngdec0> error: Internal data stream error.
0:00:00.096062635  9650  0x86ef5d8 WARN                  pngdec
gstpngdec.c:343:user_read_data:<pngdec0> error: stream stopped, reason error
0:00:00.096125282  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.096145117  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.096172635  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.096189327  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.096390051  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.096408698  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.096435587  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.096451860  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.096478959  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.096495232  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.096521632  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.096537835  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.096564235  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.096580368  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.102283398  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.102314198  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.102341995  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.102358687  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.102385297  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.102401779  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.102428459  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.102444801  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
0:00:00.102471062  9650  0x86ef5d8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.102487405  9650  0x86ef5d8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason wrong-state
...
<forever>


After the patch:

$ GST_DEBUG="*:2,png*:5" gst-launch playbin2 uri=file://$PWD/broken.png
Leitung wird auf PAUSIERT gesetzt ...
0:00:00.134171517 17703  0x85ea050 LOG                   pngdec
gstpngdec.c:763:gst_pngdec_libpng_init: init libpng structures
Leitung läuft vor …
0:00:00.134962399 17703  0x878f5e8 LOG                   pngdec
gstpngdec.c:488:gst_pngdec_task:<pngdec0> read frame
0:00:00.134990406 17703  0x878f5e8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8 bytes of data at offset 0
0:00:00.135032450 17703  0x878f5e8 DEBUG                 pngdec
gstpngdec.c:646:gst_pngdec_sink_setcaps:<pngdec0> single picture input
0:00:00.135062203 17703  0x878f5e8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8 bytes of data at offset 8
0:00:00.135098380 17703  0x878f5e8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 13 bytes of data at offset 16
0:00:00.135124222 17703  0x878f5e8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 4 bytes of data at offset 29
0:00:00.135153695 17703  0x878f5e8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8 bytes of data at offset 33
0:00:00.135179047 17703  0x878f5e8 WARN                  pngdec
gstpngdec.c:178:user_warning_fn: Incorrect cHRM chunk length
0:00:00.135193784 17703  0x878f5e8 LOG                   pngdec
gstpngdec.c:313:user_read_data: reading 8192 bytes of data at offset 41
0:00:00.135221161 17703  0x878f5e8 WARN                  pngdec
gstpngdec.c:354:user_read_data:<pngdec0> error: Internal data stream error.
0:00:00.135236247 17703  0x878f5e8 WARN                  pngdec
gstpngdec.c:354:user_read_data:<pngdec0> error: Read 106, needed 8192bytes
FEHLER: Von Element
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstPngDec:pngdec0:
Internal data stream error.
Zusätzliche Fehlerdiagnoseinformation:
gstpngdec.c(354): user_read_data ():
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstPngDec:pngdec0:
Read 106, needed 8192bytes
FEHLER: Leitung läuft nicht vor.
Leitung wird auf NULL gesetzt ...
0:00:00.135533282 17703  0x878f5e8 INFO                  pngdec
gstpngdec.c:336:user_read_data:<pngdec0> pausing task, reason error
0:00:00.135553117 17703  0x878f5e8 WARN                  pngdec
gstpngdec.c:343:user_read_data:<pngdec0> error: Internal data stream error.
0:00:00.135567853 17703  0x878f5e8 WARN                  pngdec
gstpngdec.c:343:user_read_data:<pngdec0> error: stream stopped, reason error
0:00:00.135617371 17703  0x878f5e8 ERROR                 pngdec
gstpngdec.c:172:user_error_fn: Internal data stream error.
libpng error: Internal data stream error.
0:00:00.135645168 17703  0x878f5e8 INFO                  pngdec
gstpngdec.c:548:gst_pngdec_task:<pngdec0> pausing task, reason error
0:00:00.135661790 17703  0x878f5e8 WARN                  pngdec
gstpngdec.c:555:gst_pngdec_task:<pngdec0> error: Internal data stream error.
0:00:00.135676736 17703  0x878f5e8 WARN                  pngdec
gstpngdec.c:555:gst_pngdec_task:<pngdec0> error: stream stopped, reason error
0:00:00.135764387 17703  0x85ea050 LOG                   pngdec
gstpngdec.c:725:gst_pngdec_libpng_clear: cleaning up libpng structures
Leitung wird geleert ...

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Gstreamer-bugs mailing list