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

 
 

bug #45235: Octave crashing when plotting imhist or imshow

Submitted by:  None
Submitted on:  Tue 02 Jun 2015 06:29:27 AM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: Works For MeAssigned to: None
Originator Name: MitkoOriginator Email: -unavailable-
Open/Closed: ClosedRelease: other
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.

 

(Jump to the original submission 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>
Project Administrator
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>
Project 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))

(file #34255)

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>
Project 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>
Project 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>
Project 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>
Project 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?

Do these also crash Octave?

Mike Miller <mtmiller>
Project Administrator
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>
Project Administrator
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 File(s):
   
   
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
  • -unavailable- added by avinoam (Posted a comment)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by mtmiller
  • -unavailable- added by asdf12 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 17 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Mar 2016 07:05:50 PM UTCmtmillerStatusNeed Info=>Works For Me
      Open/ClosedOpen=>Closed
    Mon 22 Jun 2015 04:13:37 PM UTCmtmillerItem GroupNone=>Segfault, Bus Error, etc.
    Sun 21 Jun 2015 01:16:27 PM UTCcarandraugCategoryOctave Forge Package=>Plotting
      StatusInvalid=>Need Info
      Open/ClosedClosed=>Open
      Summaryimage package: GNU Octave crashes when draw/plotting=>Octave crashing when plotting imhist or imshow
    Thu 18 Jun 2015 12:44:25 PM UTCasdf12Attached File-=>Added pic17.jpg, #34255
    Tue 02 Jun 2015 11:19:31 PM UTCcarandraugItem GroupSegfault, Bus Error, etc.=>None
      StatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
      Release4.0.0=>other
    Tue 02 Jun 2015 04:09:25 PM UTCjweRelease4.0.0-rc4=>4.0.0
    Tue 02 Jun 2015 03:26:13 PM UTCmtmillerCarbon-Copy-=>Added carandraug
    Tue 02 Jun 2015 01:37:09 PM UTCmtmillerCategoryPlotting=>Octave Forge 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.1-cleanup1