octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #43495] Crash when reading large TIFF with imr


From: Armin Müller
Subject: [Octave-bug-tracker] [bug #43495] Crash when reading large TIFF with imread()
Date: Wed, 29 Oct 2014 12:53:26 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0

URL:
  <http://savannah.gnu.org/bugs/?43495>

                 Summary: Crash when reading large TIFF with imread()
                 Project: GNU Octave
            Submitted by: arm_in
            Submitted on: Mi 29 Okt 2014 12:53:25 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I get some strange behaviour when reading large TIFF images using imread().
Using official MXE Octave 3.8.2-3 on Windows 7 64bit, 16GB of RAM. 

Example:

1) Create large monochrome TIFF images. The example here is using Sourceforge
"gerb2tiff" on the Windows command line.


% Windows Command Line

gerb2tiff.exe examplesErik_1.gbr --dpi=2400 -o examplesErik_1_2400dpi.tiff
gerb2tiff.exe examplesErik_1.gbr --dpi=4800 -o examplesErik_1_4800dpi.tiff
gerb2tiff.exe examplesErik_1.gbr --dpi=6000 -o examplesErik_1_6000dpi.tiff


I've attached the 3 example images.

2) Load large TIFF images in Octave


img=imread('Erik_1_2400dpi.tiff');      %  6062 x  8051
img=imread('Erik_1_4800dpi.tiff');      % 12124 x 16102
img=imread('Erik_1_6000dpi.tiff');      % 15153 x 20127


3) Results in Octave

2400dpi: OK


warning: your version of GraphicsMagick limits images to 8 bits per pixel


4800dpi: Either OK or warning, may crash later due to memory issues


error: imread: invalid image file: out of memory or dimension too large for
Octave's index type
error: called from:
error:   C:Program Files
(x86)OctaveOctave-3.8.2shareoctave3.8.2mimageprivate__imread__.m at line 181,
column 7
error:   C:Program Files
(x86)OctaveOctave-3.8.2shareoctave3.8.2mimageprivateimageIO.m at line 66,
column 26
error:   C:Program Files (x86)OctaveOctave-3.8.2shareoctave3.8.2mimageimread.m
at line 107, column 30


9600dpi: Crash immediately




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mi 29 Okt 2014 12:53:25 GMT  Name: Erik_1_2400dpi.tiff  Size: 187kB  
By: arm_in

<http://savannah.gnu.org/bugs/download.php?file_id=32333>
-------------------------------------------------------
Date: Mi 29 Okt 2014 12:53:25 GMT  Name: Erik_1_4800dpi.tiff  Size: 443kB  
By: arm_in

<http://savannah.gnu.org/bugs/download.php?file_id=32334>
-------------------------------------------------------
Date: Mi 29 Okt 2014 12:53:25 GMT  Name: Erik_1_6000dpi.tiff  Size: 611kB  
By: arm_in

<http://savannah.gnu.org/bugs/download.php?file_id=32335>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43495>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]