icon_info_ensure_scale_and_pixbuf might not ensure a valid pixbuf
This issue has the goal to resolve this fedora bug (and probably more) upstream.
The large-picture problem is that gnome-shell aborts if it tries to scale 1px wide thumbnails (made by GNOME thumbnailer, w*h=1x50) with certain dpi resolutions.
In my case scale became scale = 0.47999999999999998
causing the width argument to become 0 in this line which afterwards probably causes gdk_pixbuf_scale_simple
to not create a pixbuf. This will later cause a assertion error in this line
Steps to reproduce
- Have a screen with a certain dpi
- Have some files that will be cause 1x50px sized thumbnails to be generated
- Search in gnome shell for these thumbnails
You probably need to create a 1x50px image and write a little programm that tries to load that as icon.
Current behavior
Gnome-Shell aborts
Expected outcome
Gnome-Shell does not abort. I don't know what it should display as file icon.
Version information
Fedora 27
➜ ~ dnf list installed | grep gtk
gtk2.i686 2.24.32-1.fc27 @updates
gtk2.x86_64 2.24.32-1.fc27 @updates
gtk3.i686 3.22.26-2.fc27 @updates
gtk3.x86_64 3.22.26-2.fc27 @updates
...