bugGNU Octave - Bugs: bug #55713, meshc throws an error with Octave...

 
 

bug #55713: meshc throws an error with Octave 5.0.91

Submitter:  Stephan Gebauer <stephan_ii>
Submitted:  Thu 14 Feb 2019 08:44:33 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.0.91 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 14 Feb 2019 10:35:59 PM UTC, comment #3: 

I pushed a simple fix on stable:

http://hg.savannah.gnu.org/hgweb/octave/rev/8e1e5a44a632

Closing report as fixed.


Pantxo Diribarne <pantxo>
Group Member
Thu 14 Feb 2019 09:49:37 PM UTC, comment #2: 

Confirmed. A simpler example is


sombrero ();
hc = colorbar ();
sombrero ();


And the "invalid handle" in the error message is the handle to the colorbar axes.

Pantxo Diribarne <pantxo>
Group Member
Thu 14 Feb 2019 08:50:19 PM UTC, comment #1: 

a small supplement, this error message also
thrown with the mesh or meshz and so on....

Stephan Gebauer <stephan_ii>
Thu 14 Feb 2019 08:44:33 PM UTC, original submission:  

Hi,

i have testet a peace of code works well with Octave 4.4.1, but
gives an error message with Octave 5.00.91.

Here the Code:



N = 25;                     % frame count for the movie
[X,Y]=meshgrid(-pi:.1:pi);  % generate grid
for t=1:N
    f=cos(X-t*pi/N).*sin(Y-t*pi/N);   %  test function
    meshc(X,Y,f);                     % Plot
    xlim([-pi,pi]);
    ylim([-pi,pi]);
    xlabel('x');
    ylabel('y');
    zlabel('f');
    title('Evolution der Funktion f(x,y,t)=cos(x-(t\pi)/N)sin(y-(t\pi)/N)');
    colorbar;
    pause(0.05);
    M(:,t) = getframe(gcf);  % Save the current Frame in M
end


from the second pass of the for loop the meshc(X,Y,f) cause this error message with
each pass:

debug>
error: get: invalid handle (= -64.2043)
execution error in graphics callback function
error: get: invalid handle (= -31.1792)
execution error in graphics callback function
.
.
.


nevertheless the code works, means M stores the frames as it should do.
Just the error is thrown in the command line.

Otave runs under Windows 10.

Hope its helpful!

Best regards

 Stephan




Stephan Gebauer <stephan_ii>

 

(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 siko1056 (Updated the item)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by stephan_ii (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-02-15 siko1056 Summarymeshc throws an error with Octave 5.00.91 meshc throws an error with Octave 5.0.91
    2019-02-14 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2019-02-14 pantxo Item GroupUnexpected Error or Warning Regression
        StatusNone Confirmed
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code