After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784768 - c2g operation can freezed on an endless loop
c2g operation can freezed on an endless loop
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: operations
git master
Other Linux
: Normal normal
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
Depends on:
Blocks:
 
 
Reported: 2017-07-10 21:28 UTC by Thomas Manni
Modified: 2017-07-17 15:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Manni 2017-07-10 21:28:25 UTC
If the input buffer has wide full transparent areas, envelop calculation can lead to endless pixel sampling https://git.gnome.org/browse/gegl/tree/operations/common/envelopes.h#n110
Comment 1 Øyvind Kolås (pippin) 2017-07-17 15:30:44 UTC
commit d17b50f2a43b54da73233efa826a3f9d8fd7dc16
Author: Øyvind Kolås <pippin@gimp.org>
Date:   Mon Jul 17 17:09:52 2017 +0200

    c2g,stress: avoid infinite loop on fully transparent buffers
    
    bug #784768
    
    Only permit goto retry a limited amount of times, equal to number of samples
    seems to work well slowing the degenerate case down a little - but not getting
    stuck in an infinite loop.