[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8
From: |
H. G. |
Subject: |
[Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc) |
Date: |
Mon, 22 Jun 2015 10:42:02 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 |
URL:
<http://savannah.gnu.org/bugs/?45372>
Summary: crash on zoom using imshow with uint8 data (also
image and imagesc)
Project: GNU Octave
Submitted by: hardy
Submitted on: Mo 22 Jun 2015 10:42:01 GMT
Category: Plotting with OpenGL
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: 4.0.0
Operating System: Any
_______________________________________________________
Details:
Here is a little script to show the behavior:
clear, close all;
graphics_toolkit qt
I = uint8(ones(50,50,3));
J = ones(50,50,3);
imshow(I); % --> crash (double is OK)
%image(I); % --> errors (double is OK)
%imagesc(I); % --> errors (double is OK)
To reproduce the crash, do the following few steps:
1. in the figure window, press the zoom button "+Z"
2. use the left mouse button inside the plot region to the select a zoom
region
3. CRASH, Octave closes
The resulting error messing, when using Octave in CLI mode is:
error: invalid conversion of uint8 matrix to Matrix
error: invalid conversion of uint8 matrix to Matrix
error: octave_base_value::matrix_value(): wrong type argument '<unknown
type>'
error: A(I,J): row index out of bounds; value 1 out of bound 0
terminate called after throwing an instance of 'octave_execution_exception'
panic: Abgebrochen -- stopping myself...
attempting to save variables to 'octave-workspace'...
save to 'octave-workspace' complete
A few observations that might help:
* This happens only with the qt plotting toolkit. Fltk and gnuplot are fine.
* This happens only with integer data (uint8 in the above example). Double
data is fine.
* This happened with the 4.0.0 release. I had the crash on a self compiled
version on Ubuntu 14.04 as well as on the official Windows installer.
* If you use image(I) instead of imshow(I) you get error messages (wich is a
bug in itself) but no crash.
* If you use imagesc(I) instead if imshow, you get error messages (another bug
in itself) but no crash.
This behavior is very disturbing, because image data very often IS uint8 data
(and not double data). The imread function returns uint8 data normally.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45372>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc),
H. G. <=
- [Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc), Mike Miller, 2015/06/22
- [Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc), Rik, 2015/06/22
- [Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc), Pantxo Diribarne, 2015/06/22
- [Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc), Pantxo Diribarne, 2015/06/22
- [Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc), Rik, 2015/06/22
- [Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc), H. G., 2015/06/22
- [Octave-bug-tracker] [bug #45372] crash on zoom using imshow with uint8 data (also image and imagesc), Pantxo Diribarne, 2015/06/22