bugGNU Octave - Bugs: bug #45235, Octave crashing when plotting...

 
 

bug #45235: Octave crashing when plotting imhist or imshow

Submitter:  None
Submitted:  Tue 02 Jun 2015 06:29:27 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  Mitko Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * other
Release:  Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 26 Feb 2016 06:33:38 AM UTC, comment #15: 

Please test this again with the 4.0.1-rc3 release candidate if possible. There have been a few bug fixes related to plotting and displaying images on Windows systems.

Mike Miller <mtmiller>
Group Member
Mon 22 Jun 2015 06:53:26 PM UTC, comment #14: 

I've done a little testing, fltk seems to work fine so far. Both gnuplot and qt produce crashes.

How to enable debug option and submit a report ?

Dimitar <asdf12>
Sun 21 Jun 2015 01:16:27 PM UTC, comment #13: 

Well, I can't replicate the crash on my side.  It works fine and it doesn't crash. Also, if Octave crashes then it is a problem on Octave core. imshow() is in core and that is also causing to crash. both imhist and imshow create figures so my guess is that the issue is somewhere there.

Did you try with alternative graphics_toolkits? For example, does gnuplot also causes Octave to crash? See if gnuplot is listed with available_graphics_toolkits() and select it with "graphics_toolkit gnuplot"

Carnë Draug <carandraug>
Group Member
Thu 18 Jun 2015 12:49:32 PM UTC, comment #12: 

Update:

>> pkg load image
>> a = imread ('c:\pic17.jpg')
>> b = rgb2ycbcr (a)
>> imhist (b(:,:,1))



>> b(:,:,1) = b(:,:,1) * 1.5
>> c = ycbcr2rgb (b)

imshow (c) <- Octave closed unexpectedly

Dimitar <asdf12>
Thu 18 Jun 2015 12:44:25 PM UTC, comment #11: 

Right now on my computer is working fine, the only thing I've done, after that was install more packages like signal, control, io, instrument-control etc.

In general, the crash sequence is:

>> pkg load image
>> a = imread ('c:\pic17.jpg')
>> b = rgb2ycbcr (a)
>> imhist (b(:,:,1))



Dimitar <asdf12>
Thu 18 Jun 2015 11:06:37 AM UTC, comment #10: 

On your first comment you say:

> I had this issue with v.3.8.2 but with 4.0.0 this occurs much more frequently.


So you are saying that the issue is not completely reproducible even on your system? I'm sorry but without being able to reproduce it on our side, there isn't much we can do.  You'll have to give us more details on how to reproduce it.

Carnë Draug <carandraug>
Group Member
Thu 18 Jun 2015 08:18:40 AM UTC, comment #9: 

Thanks for the recommendations, I did remove the old Octave installation completely and followed the recommended steps, but the result is the same. After imhist, Octave closed without any warnings.

Dimitar <asdf12>
Thu 18 Jun 2015 06:29:07 AM UTC, comment #8: 


@Dimitar:

Try to uninstall octave, and remove the leftovers in the
directory in which Octave was installed. Then install it from
ftp://ftp.gnu.org/gnu/octave/windows/octave-4.0.0_0-installer.exe
To install image pkg go to the directory
C:\Octave\Octave-4.0.0\src (if Octave was installed in c:\Octave)
and use

pkg install image-2.4.0.tar.gz
pkg load image

Good luck

Avinoam Kalma <avinoam>
Group Member
Wed 17 Jun 2015 07:15:55 PM UTC, comment #7: 

It doesn't work fine. Just loaded an image, converted the image to yuv and used imhist and Octave closed without any warnings.

Dimitar <asdf12>
Tue 02 Jun 2015 11:19:31 PM UTC, comment #6: 

If it works fine if you install the image package properly then it's not a bug. You cannot simply copy the files from a package into core.

The warning you're getting may be from leftovers files you have left in /share/octave/4.0.0/m/image. Closing as invalid.

Carnë Draug <carandraug>
Group Member
Tue 02 Jun 2015 04:38:56 PM UTC, comment #5: 


>> plot (1:10);
>> image;


did not produce crashes.

after: pkg install -forge image
removing: imhist.m from /share/octave/4.0.0/m/image
pkg load image
both imhist and rgb2ycbcr were forking fine in few tests.

Getting the following warnings thought:
warning: function C:\Octave\Octave-4.0.0\share\octave\pac
kages\image-2.4.0\analyze75read.m shadows a core library
function
..................

Dimitar <asdf12>
Tue 02 Jun 2015 04:09:25 PM UTC, comment #4: 

Retagging release from 4.0.0-rc4 to 4.0.0.

John W. Eaton <jwe>
Group administrator
Tue 02 Jun 2015 03:26:13 PM UTC, comment #3: 

Adding the image package maintainer in cc.

It doesn't sound like you are installing the image package correctly, I don't know if that's related or not.

Crashing while plotting may be one issue, may or may not be image package specific. Can you plot anything, e.g a simple line plot or a simple image?


>> plot (1:10);
>> image;


Do these also crash Octave?

Mike Miller <mtmiller>
Group Member
Tue 02 Jun 2015 01:58:01 PM UTC, comment #2: 

Q: What do you mean by "crash" ?
A: When press [ENTER] after imhist Octave exit, no error messages.

Q: How did you install Octave (where did you download it) ?
A: Initially had 3.8.2, downloaded from SourceForge and installed via the Octave installer, it had crashes bus less frequently. The 4.0.0 version was just installed from the zip, un-packed.

Q: how did you install the image package ?
A: Just copy the m files in /share/octave/4.0.0/m/image

Q: are you expecting that your uint8 Nx3 array is a colormap?
A: Yes, it was working fine with 3.8.2, but on 4.0.0 is not working.

Dimitar <asdf12>
Tue 02 Jun 2015 01:37:09 PM UTC, comment #1: 

Thanks for your bug report. These are both problems with functions in the image package, retitling appropriately.

imhist works for me (on Linux). What do you mean by "crash", does Octave exit or do you get an error message?

How did you install Octave (where did you download it) and how did you install the image package (automatically with the installer or pkg install command)?

Specifically to rgb2ycbcr, are you expecting that your uint8 Nx3 array is a colormap? Because Octave expects a colormap to be a double array with values between 0 and 1.

Mike Miller <mtmiller>
Group Member
Tue 02 Jun 2015 06:29:27 AM UTC, original submission:  

I had this issue with v.3.8.2 but with 4.0.0 this occurs much more frequently. For example trying the following:

open GNU Octave (Experimental GUI)
i = imread ('c:\cam1.jpg')
imhist(i)
crash !!!

also some functions like rgb2ycbcr are not working in v.4.0.0 – getting: error: rgb2ycbcr: input must be a colormap (Nx3) or RGB image (NxMx3)
even thought the input is: uint8 Nx3.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #34255:  pic17.jpg added by asdf12 (570KiB - 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 avinoam (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mtmiller
  • -email is unavailable- added by asdf12 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 17 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-21 mtmiller StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2015-06-22 mtmiller Item GroupNone Segfault, Bus Error, etc.
    2015-06-21 carandraug CategoryOctave Package Plotting
        StatusInvalid / Not an Octave Bug Need Info
        Open/ClosedClosed Open
        Summaryimage package: GNU Octave crashes when draw/plotting Octave crashing when plotting imhist or imshow
    2015-06-18 asdf12 Attached File- Added pic17.jpg, #34255
    2015-06-02 carandraug Item GroupSegfault, Bus Error, etc. None
        StatusNeed Info Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
        Release4.0.0 other
    2015-06-02 jwe Release4.0.0-rc4 4.0.0
    2015-06-02 mtmiller Carbon-Copy- Added carandraug
    2015-06-02 mtmiller CategoryPlotting Octave Package
        StatusNone Need Info
        SummaryRe: GNU Octave crashes when draw/plotting image package: GNU Octave crashes when draw/plotting

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code