Bug 1385788

Summary: Unhandled exception when using the "Capture screenshot" functionality
Product: [Fedora] Fedora Reporter: Giulio 'juliuxpigface' <juliux.pigface>
Component: gimagereaderAssignee: Sandro Mani <manisandro>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 25CC: manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-24 00:00:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Giulio 'juliuxpigface' 2016-10-17 17:01:43 UTC
Description of problem:
I'm testing "gimagereader-gtk-3.1.99-1.fc25.x86_64" on Fedora 25 Workstation (Wayland session). The "Capture screenshot" functionality seems broken, as it throw an unhandled exception when invoked.

This does not appear to be a regression, since the "3.1.91-1" is affected by the same bug.

Version-Release number of selected component (if applicable):
gimagereader-gtk-3.1.99-1.fc25.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Open gtkimagereader-gtk from the terminal emulator
2. On the left side of the GUI, click the appropriate button in order to take a screenshot.

Actual results:
1.  The GUI gets stuck
2. The following output is printed on the terminal emulator:

(gimagereader-gtk:5330): Gdk-CRITICAL **: gdk_pixbuf_get_from_surface: assertion 'width > 0 && height > 0' failed

(gimagereader-gtk:5330): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_bits_per_sample: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimagereader-gtk:5330): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimagereader-gtk:5330): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimagereader-gtk:5330): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimagereader-gtk:5330): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_has_alpha: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimagereader-gtk:5330): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimagereader-gtk:5330): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(gimagereader-gtk:5330): glibmm-CRITICAL **: 
unhandled exception (type Glib::Error) in signal handler:
domain: gdk-pixbuf-error-quark
code  : 5
what  : Errore critico nel file di immagine PNG: Invalid IHDR data


Expected results:
1. Ideally, the software should capture the screenshot without issues.
2. Ideally, no exceptions should be thrown on the terminal emulator.

Additional info:
I'm testing with qemu-kvm

Comment 1 Sandro Mani 2016-10-17 17:03:25 UTC
Thanks for the bug report and for testing, I'll look into it.

Comment 2 Sandro Mani 2016-10-18 07:59:20 UTC
Does not happen on F26/Rawhide. Looks like an issue with wayland/gdk which results in corrupt PNG data being returned for the screen capture. I'll need to set up a F25 VM to test further.

Comment 3 Sandro Mani 2016-10-24 20:38:23 UTC
Unable to reproduce here. Can you provide a stack trace so that I can add some safeguards?

Comment 4 Sandro Mani 2016-11-24 00:00:02 UTC
Closing since no reply. Feel free to reopen if you can provide more info.