bugGNU Octave - Bugs: bug #56571, Images bigger than around 50M...


bug #56571: Images bigger than around 50M pixels in size do not display with imshow

Submitted by:  None
Submitted on:  Mon 01 Jul 2019 03:07:23 PM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Mike Wilsher Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  5.1.0
Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 09 Jul 2019 10:15:14 AM UTC, comment #2: 

Thanks for the reply.
Certainly no error message on current 5.1.0 release.

I have worked round things by scaling down the image, finding the location points needed then scaling these back up.

A fix would be great in the future.

Many Thanks

Mike Wilsher <mwilsher>
Wed 03 Jul 2019 06:30:49 AM UTC, comment #1: 

What I get on Windows 7 with a recently built dev Octave 6.0.0)) is:

>> img_data = uint8(randn(6000, 8400)*255);
>> figure(); imshow(img_data)
>> warning: opengl_texture::create: the opengl library in use doesn't support images with either dimension larger than 8192. Not rendering.

So it doesn't look like a bug but the error message could be more clearly displayed in your case.
I have no time now to check whether this size limit is documented somewhere, if not it would be a doco error. I'll leave it to other devs here to adapt the title & maybe status in that case.

(FTR, I make my crossbuilds using the --no-system-opengl configure option. Or what is is exactly called as I'm on Windows now so can't check)

Philip Nienhuis <philipnienhuis>
Project Member
Mon 01 Jul 2019 03:07:23 PM UTC, original submission:  

There was an original bug on this bug #48764 which now works in the current version. But with a bigger image you still get a blank figure, image not displayed and no error messages.

Octave 5.1.0 and image 2.10.0 package

It seems to be the x,y pixel size that is an issue it is not affected by mono or rgb images.

In its simplest form
img_data = uint8(randn(6000, 8400)*255);
figure(); imshow(img_data);

Just displays a blank figure, although the pixel position display is showing correctly or bigger in x or y (See fail image attached)

img_data = uint8(randn(6000, 8399)*255);
img_data = uint8(randn(8399, 6000)*255);
or smaller work fine.
(see pass image attached)

I don't think it makes a difference but it is on Windows 10 Pro 64bit i7 with 16GB memory latest download of everything (see splash screen attached)

Any insight very much appreciated



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #47152:  fail.jpg added by None (166KiB - image/jpeg)
file #47153:  pass.jpg added by None (283KiB - image/jpeg)
file #47154:  splash.jpg added by None (95KiB - image/jpeg)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mwilsher (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-01 None Attached File- => Added fail.jpg, #47152
        Attached File- => Added pass.jpg, #47153
        Attached File- => Added splash.jpg, #47154

    Back to the top

    Powered by Savane 3.5