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 774755 - Resizing a displayed image to 1x1 and enlarging again sends GTK2&3 into a 100% CPU loop for a minute
Resizing a displayed image to 1x1 and enlarging again sends GTK2&3 into a 100...
Status: RESOLVED DUPLICATE of bug 80925
Product: gtk+
Classification: Platform
Component: Widget: Other
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-11-20 17:16 UTC by Martin Guy
Modified: 2016-11-21 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test program for GTK2 (7.93 KB, text/x-csrc)
2016-11-20 17:16 UTC, Martin Guy
Details
Test program for GTK2 (3.85 KB, text/x-csrc)
2016-11-20 17:18 UTC, Martin Guy
Details
Test program for GTK3 (3.93 KB, text/x-csrc)
2016-11-20 17:18 UTC, Martin Guy
Details
Test program for GTK2 (3.85 KB, text/x-csrc)
2016-11-20 17:19 UTC, Martin Guy
Details

Description Martin Guy 2016-11-20 17:16:55 UTC
Created attachment 340365 [details]
Test program for GTK2

I have a simple app which just displays an image from a file, and when you resize the window the image scales to fit without keeping aspect ratio.

If you resie the window to its minimum, 1x1, and enlarge it again, the window hangs showing just a white background for about a minute using 100% CPU and its virtual memory use goes from 46MB to 940MB. After a few seconds to a minute, it recovers, repaints and the VM usage goes back down.

test programs for GTK2 and GTK3 attached.
Comment 1 Martin Guy 2016-11-20 17:18:16 UTC
Created attachment 340366 [details]
Test program for GTK2

Ignore the first attachment image2-*; this is the right one.
Comment 2 Martin Guy 2016-11-20 17:18:46 UTC
Created attachment 340367 [details]
Test program for GTK3
Comment 3 Martin Guy 2016-11-20 17:19:45 UTC
Created attachment 340368 [details]
Test program for GTK2
Comment 4 Christian Persch 2016-11-21 10:18:10 UTC

*** This bug has been marked as a duplicate of bug 80925 ***