bugGNU Octave - Bugs: bug #54862, New error messages when plotting...

 
 

bug #54862: New error messages when plotting after octave started with --no-gui-libs

Submitter:  Rik <rik5>
Submitted:  Thu 18 Oct 2018 03:12:26 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  jwe
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 27 Oct 2018 02:20:23 AM UTC, comment #8: 

Fixed.  Closing report.

Rik <rik5>
Group administrator
Fri 26 Oct 2018 03:06:19 AM UTC, comment #7: 

Thanks for the reminder.  I made the change locally but forgot to push it.  It's done now:

http://hg.savannah.gnu.org/hgweb/octave/rev/811e094ba676

John W. Eaton <jwe>
Group administrator
Fri 26 Oct 2018 01:08:19 AM UTC, comment #6: 

Still an issue (10/25/18).

Rik <rik5>
Group administrator
Sat 20 Oct 2018 04:04:56 PM UTC, comment #5: 

Marking as In Progress since jwe has a plan for this if using _octave_linke_enabled_ is okay.

Rik <rik5>
Group administrator
Thu 18 Oct 2018 07:00:05 PM UTC, comment #4: 

@jwe: I currently use FLTK as a single threaded reference toolkit, mainly when something goes wrong with the default Qt toolkit and I want to determine if it is due to cross thread communication (see e.g. bug #48273).

Since you have recently mentioned your will to remove the FLTK toolkit, Qt single threaded would be a perfect replacement :-).

Pantxo Diribarne <pantxo>
Group Member
Thu 18 Oct 2018 03:02:58 PM UTC, comment #3: 

Panxto: OK, I can use that for now.  What do you mean by "test the qt toolkit"?

John W. Eaton <jwe>
Group administrator
Thu 18 Oct 2018 07:23:48 AM UTC, comment #2: 

@jwe: I'd use "__octave_link_enabled__ ()" which is false in --no-gui-libs only. On the other hand, it would be very useful to have a way to test the qt toolkit in single threaded mode, but it is probably another matter.

Pantxo Diribarne <pantxo>
Group Member
Thu 18 Oct 2018 04:10:17 AM UTC, comment #1: 

My recent change was intended to defer loading the qt graphics toolkit until it is needed.  Although it might be nice to have it available to octave-cli, doing that is a more complicated job than I'm interested in doing at the moment.  So I think we should just make the qt toolkit unavailable to octave-cli for now.  The following line in the libgui/graphics/PKG_ADD file is supposed to do that:


if (__have_feature__ ("QT") && __have_feature__ ("OPENGL") && have_window_system ()) register_graphics_toolkit ("qt"); endif


However, this fails because the _have_feature_ tests will both be true if configure finds those features, even though the Qt libraries are not linked with octave-cli.  So what other test can we do here to determine that the Qt libraries are not loaded, even though configure found them?  isguirunning is not the right thing here, because it will return false when Octave (with the Qt libraries) is started in command-line mode, and in that case the qt graphics toolkit does work.

John W. Eaton <jwe>
Group administrator
Thu 18 Oct 2018 03:12:26 AM UTC, original submission:  

Here is a sample session which invokes Octave without GUI libraries.


~/wip/Projects_Mine/octave-dev: run-octave -q --no-gui-libs
octave:1> graphics_toolkit
ans = qt
octave:2> plot (1:10)
error: feval: /home/rik/wip/Projects_Mine/octave-dev/libgui/graphics/__init_qt__.oct: failed to load: /home/rik/wip/Projects_Mine/octave-dev/libgui/graphics/__init_qt__.oct: undefined symbol: _ZN6octave16resource_manager8instanceE
error: called from
    graphics_toolkit at line 91 column 5
    figure at line 96 column 7
    newplot at line 117 column 10
    plot at line 222 column 9


Undoubtedly this is related to this changeset


changeset:   25931:332be8be16eb
user:        John W. Eaton <jwe@octave.org>
date:        Fri Sep 28 18:18:09 2018 -0400
summary:     dynamically load qt graphics



Rik <rik5>
Group administrator

 

(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 pantxo (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-27 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-10-26 jwe StatusIn Progress Ready For Test
    2018-10-20 rik5 StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code