bugGNU Octave - Bugs: bug #52694, call to plot or figure fail with...

 
 

bug #52694: call to plot or figure fail with infinite call loop between ishandle and ishghandle

Submitter:  Marshall <marsian>
Submitted:  Tue 19 Dec 2017 04:53:23 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Marsian Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Dec 2017 08:30:00 PM UTC, comment #5: 

I started a clean build this morning starting with a new MXE cloned repository and newly cloned octave repo, and the resulting installer worked fine.

Marshall <marsian>
Tue 19 Dec 2017 06:45:13 PM UTC, comment #4: 

It's possible that you need to clean out your MXE build directory as well.  I'm building a MXE version of Octave for Windows right now and will know in an hour or so whether this is required.

Rik <rik5>
Group administrator
Tue 19 Dec 2017 06:33:28 PM UTC, comment #3: 

I have been uninstalling previous development versions completely before installing the new one. I did so again and made sure C:\Octave\Octave-4.3.0+ doesn't exist. This time I moved the Octave-4.2.1 directory out as well and the dev version installed the same with the same problems. If I manually delete C:\Octave\OCTAVE~1.0_\share\octave\4.3.0+\m\plot\util\ishghandle.m, the next restart doesn't have the warning, and it works fine. After getting it to work, uninstalling and re-installing brings back the same error. I'm in the process of building it again, maybe it will work better.

Marshall <marsian>
Tue 19 Dec 2017 05:50:08 PM UTC, comment #2: 

The problem is that ishghandle.m has been removed from the development version, but is still present from a previous installation of Octave.

Completely uninstall Octave, and remove the directory


C:\Octave\OCTAVE~1.0_\


Re-install your development version of Octave and it should be fine.

The clue is the shadowed function warning.  Make sure you don't see that.

Rik <rik5>
Group administrator
Tue 19 Dec 2017 05:46:15 PM UTC, comment #1: 

On linux, I thought early yesterday or late two days prior I had launched Octave and saw a message about "warning: ishghandle [from some particular script file] shadows an internal function".  But then that warning didn't come back and I just forgot about it.  I pulled the latest code last night and see no graphics problems.  Again, that's on Linux.

Dan Sebald <sebald>
Tue 19 Dec 2017 04:53:23 PM UTC, original submission:  

I finally built a dev version with the features from recent bug fixes I wanted, but this time, there are also some serious errors introduced probably related to some recent commits. I find that calls to plot and figure fail (and maybe others). Calling figure, or plot(rand(10)) both fail and result in flooding the command prompt with the following:


figure
 ...
    ishandle at line 41 column 10
    ishghandle at line 41 column 10
    ishandle at line 41 column 10
    ishghandle at line 41 column 10
    ishandle at line 41 column 10
    ishghandle at line 41 column 10
    ishandle at line 41 column 10
    ishghandle at line 41 column 10
    ishandle at line 41 column 10
    ishghandle at line 41 column 10
    ishandle at line 41 column 10
    ishghandle at line 41 column 10
    isfigure at line 37 column 9
    graphics_toolkit at line 63 column 5
    figure at line 86 column 7
plot(rand(10))
 ...
    ishghandle at line 41 column 10
    ishandle at line 41 column 10
    ishghandle at line 41 column 10
    ishandle at line 41 column 10
    ishghandle at line 41 column 10
    isfigure at line 37 column 9
    graphics_toolkit at line 63 column 5
    figure at line 86 column 7
    newplot at line 117 column 10
    plot at line 222 column 9


I can't actually see what the errors are because I can't scroll up due to bug #52496, but It is clear there is an infinite loop as ishghandle and ishandle call each other. I'll also note that when first opening matlab I get the following warning:


warning: function C:\Octave\OCTAVE~1.0_\share\octave\4.3.0+\m\plot\util\ishghandle.m shadows a built-in function


Marshall <marsian>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by marsian (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-19 rik5 StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code