bugGNU Octave - Bugs: bug #60851, Error using uicontrol with Octave...

 
 

bug #60851: Error using uicontrol with Octave 6.2.0 on macOS

Submitted by:  None
Submitted on:  Tue 29 Jun 2021 06:07:20 AM UTC  
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Works For Me Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  6.2.0
Operating System:  Mac OS

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 25 Jul 2021 08:10:20 PM UTC, comment #5: 

The "gnuplot" graphics toolkit doesn't implement uicontrols and probably never will.
Like Carlo showed, `uicontrol` is working correctly on macOS with the "qt" graphics toolkit.

Closing as "Works for me".

Markus M├╝tzel <mmuetzel>
Project Member
Tue 29 Jun 2021 04:17:45 PM UTC, comment #4: 

comment #3:

> But, I believe there may be issues with running the Qt toolkit on macOS.


For the record, the commands posted as an example by the OP
work correctly for me inthe release candidate for 6.2.1 built
on macos big sur :

>> version
ans = 6.2.92
>> f = figure;
>> b1 = uicontrol(f,"string","A Button","position",[10 10 150 40])
b1 = -34.736
>> available_graphics_toolkits
ans =
{
  [1,1] = gnuplot
  [1,2] = qt
}
>> graphics_toolkit
ans = qt

I get a window with a button.
the qt dependency is installed via macports.

c.

Carlo de Falco <cdf>
Project Member
Tue 29 Jun 2021 04:01:35 PM UTC, comment #3: 

uicontrol objects are only implemented for the 'qt' toolkit.  You need to do

graphics_toolkit ("qt")

before running code that has uicontrol objects.

But, I believe there may be issues with running the Qt toolkit on macOS.

Rik <rik5>
Project Administrator
Tue 29 Jun 2021 08:15:14 AM UTC, comment #2: 

Thank you Ineiev.

@OP: Can you explain how did you install Octave on macOS (Homebrew?) and what is the output of

>> available_graphics_toolkits
ans =
{
  [1,1] = fltk
  [1,2] = gnuplot
  [1,3] = qt
}
>> graphics_toolkit
ans = qt

Do you run Octave as command-line program or do you use the GUI?

Kai Torben Ohlhus <siko1056>
Project Member
Tue 29 Jun 2021 06:07:20 AM UTC, comment #1: 

This item has been reassigned from the project Savannah Administration support tracker to your tracker.

The original report is still available at support #110512

Following are the information included in the original report:

[field #0]                  Item ID: 110512

[field #1]                 Group ID: 5802

[field #2]              Open/Closed: Open

[field #3]                 Severity: 3 - Normal

[field #4]                  Privacy: Public

[field #7]                         : Unknown support Field Display Type

[field #8]                         : Unknown support Field Display Type

[field #9]                 Category: None

[field #10]             Submitted by: None

[field #11]              Assigned to: None

[field #12]             Submitted on: Tue 22 Jun 2021 03:40:08 AM UTC

[field #13]                  Summary: Octave 6.2.0 serror on mac big sur

[field #14]      Original Submission: I get the following error when trying to use the octave command uicontrol:
error: _gnuplot_draw_figure_: unknown object class, uicontrol
error: called from
    _gnuplot_draw_figure_ at line 184 column 13
    _gnuplot_drawnow_ at line 91 column 5

These are the two command that cause the error: 
f = figure;
b1 = uicontrol(f,"string","A Button","position",[10 10 150 40])
These two commands are in the help uicontrol as an example of using uicontrol.
I have tried deleting/reinstalling Octave (both through binary (.dmg) and through brew install octave.  I am on a mac running Big Sur.  Thank you in advance for your assistance.

[field #16]               Item Group: None

[field #17]                   Status: None

[field #18]        Component Version: None

[field #19]         Operating System: None

[field #20]          Reproducibility: None

[field #21]               Size (loc): None

[field #22]            Fixed Release: None

[field #23]          Planned Release: None

[field #24]                   Effort: 0.00

[field #28]                 Priority: 5 - Normal

[field #31]         Percent Complete: 0%

[field #33]                  Release: None

[field #36]         Originator Email: richard.l.brunson@gmail.com

[field #58]     Custom Select Box #1: None

[field #59]     Custom Select Box #2: None

[field #60]     Custom Select Box #3: None

[field #61]     Custom Select Box #4: None

[field #62]     Custom Select Box #5: None

[field #63]     Custom Select Box #6: None

[field #64]     Custom Select Box #7: None

[field #65]     Custom Select Box #8: None

[field #66]     Custom Select Box #9: None

[field #67]    Custom Select Box #10: None

Ineiev <ineiev>
Tue 29 Jun 2021 06:07:20 AM UTC, original submission:  

I get the following error when trying to use the octave command uicontrol:
error: _gnuplot_draw_figure_: unknown object class, uicontrol
error: called from
    _gnuplot_draw_figure_ at line 184 column 13
    _gnuplot_drawnow_ at line 91 column 5

These are the two command that cause the error: 
f = figure;
b1 = uicontrol(f,"string","A Button","position",[10 10 150 40])
These two commands are in the help uicontrol as an example of using uicontrol.
I have tried deleting/reinstalling Octave (both through binary (.dmg) and through brew install octave.  I am on a mac running Big Sur.  Thank you in advance for your assistance.

Anonymous

 

(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 mmuetzel (Posted a comment)
  • -email is unavailable- added by cdf (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  •  

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

    Only project members can vote.

     

     

     

    Follow 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    20:10 mmuetzel StatusNeed Info => Works For Me
        Open/ClosedOpen => Closed
    2021-06-29 rik5 Carbon-CopyRemoved 72865 => -
    2021-06-29 siko1056 CategoryNone => Plotting with gnuplot
        Item GroupNone => Unexpected Error or Warning
        StatusNone => Need Info
        ReleaseNone => 6.2.0
        Operating SystemNone => Mac OS
        SummaryOctave 6.2.0 serror on mac big sur => Error using uicontrol with Octave 6.2.0 on macOS
    2021-06-29 ineiev Reassign itemSavannah Administration, sr #110512 => GNU Octave, bug #60851

    Back to the top


    Powered by Savane 3.6