bad alloc on large (but not too large) image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eog (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
For this example, I've created an entirely white png (attached to the bug report) with size 2400 x 36000. I saved it at compression level 9 (or whatever gimp means by that) and in 8-bit RGB. I would expect eog to be able to display this because 2400 * 36000 * 4 colours is 330 MB, which is vastly less than the available RAM on my machine. While X represents window dimensions with 16 bit values, which may perhaps be signed (I didn't check my host's type definitions), I don't expect eog to allocate a pixel-to-pixel window for the image. My screen's size is ample.
This arose because of a real image of the same dimensions, but which I can't attach here. The behaviour is the same.
jeff@starshine:
** (eog:26198): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-
(eog:26198): Gdk-ERROR **: The program 'eog' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 415 error_code 11 request_code 130 (MIT-SHM) minor_code 5)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
133, jeff@starshine:
** (apport-gtk:27057): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-
/usr/share/
from gi.repository import GLib, Wnck, GdkX11, Gdk
jeff@starshine:
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: eog 3.18.2-1ubuntu2.1
ProcVersionSign
Uname: Linux 4.4.0-36-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: i3
Date: Mon Sep 26 10:24:34 2016
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-12-17 (283 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: eog
UpgradeStatus: Upgraded to xenial on 2016-05-15 (133 days ago)