cromium-browser file upload widget needs better memory checkingcrashes on file upload selector

Bug #1498082 reported by David McKelvie on 2015-09-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Undecided
Unassigned

Bug Description

The file upload browser widget in cromium-browser needs to check for LARGE image files
and not create thumbnails for them. Instead it crashes with running out of memory error
at least on some large tif files.

I have written a webpage. It has

   <form method="POST" action="somehost/somescript.cgi" enctype="multipart/form-data" target="boogaloo">
   ...
   <File: <input type="file" name="upload">
   ...
   </form>

I have a directory of files called GeoRefTest containing

   olympic park tennis & hockey_mosaic_rgb.tif
   Raw Image 85m.JPG
   Raw Image 45m.JPG
   Raw image 95m.JPG

When I try to upload one of these files, I get a file browser to select a file.
When I try and select the GeoRefTest directory by double clicking on it, the browser dies.
The window just vanishes.

In the shell window where I ran cromium-browser I see

david:server$ chromium-browser &
[3] 15472
david:server$ Using PPAPI flash.
[15472:15504:0921/172218:ERROR:nss_util.cc(856)] After loading Root Certs, loaded==false: NSS error code: -8018
[15472:15472:0921/172233:ERROR:browser_main_loop.cc(207)] Gtk: Attempting to read the recently used resources file at `/home/david/.local/share/recently-used.xbel', but the parser failed: Error reading file '/home/david/.local/share/recently-used.xbel': Is a directory.
[15472:15472:0921/172238:FATAL:memory_linux.cc(42)] Out of memory, size = 1652117504

I have disabled recently-used.xbel which explains that message. But why the out of memory? Is it trying to read all the image files
in the directory to make to make thumbnail images? the olympic park tif file is BIG 24632, x 16768 pixels and 314M.

I suspect that this is the problem, as I am ok if I move the tif file elsewhere.

So the file upload browser needs to catch these memory errors and gracefully give up on making thumbnails for huge image files.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: chromium-browser 37.0.2062.120-0ubuntu0.12.04.1~pkg917
ProcVersionSignature: Ubuntu 3.13.0-63.104~precise1-generic 3.13.11-ckt25
Uname: Linux 3.13.0-63-generic i686
ApportVersion: 2.0.1-0ubuntu17.9
Architecture: i386
Date: Mon Sep 21 17:13:39 2015
InstallationMedia: Ubuntu 12.04.5 LTS "Precise Pangolin" - Release i386 (20140807.1)
MarkForUpload: True
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: chromium-browser
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.default.chromium.browser: [deleted]

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers