bugGNU Octave - Bugs: bug #56570, unable to plot with OpenGL on...

 
 

bug #56570: unable to plot with OpenGL on Raspberry Pi 4 (4GB, Buster)

Submitter:  Keith <keithdalby>
Submitted:  Mon 01 Jul 2019 02:19:17 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  2 - Minor
Priority:  3 - Low Item Group:  Unexpected Error or Warning
Status:  Need Info Assigned to:  None
Originator Name:  Keith 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

Tue 05 May 2020 12:45:58 PM UTC, comment #7: 

i met the same warning. before i update qt to 5.14.1-r2, it can work normally. now if i

graphics_toolkit qt
plot(1:10)


it will


warning: opengl_renderer: Error 'invalid enumerant' (1280) occurred in init_gl_context
warning: called from
    uimenu at line 89 column 7
    __add_default_menu__ at line 36 column 9
    figure at line 92 column 5
    newplot at line 117 column 10
    plot at line 222 column 9
warning: opengl_renderer: Error 'invalid enumerant' (1280) occurred in init_gl_context
warning: called from
    uimenu at line 89 column 7
    __add_default_menu__ at line 84 column 5
    figure at line 92 column 5
    newplot at line 117 column 10
    plot at line 222 column 9
warning: opengl_renderer: Error 'invalid enumerant' (1280) occurred in init_gl_context
warning: called from
    axes at line 102 column 5
    newplot at line 158 column 10
    plot at line 222 column 9
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing 'text' object
warning: called from
    ancestor at line 64 column 9
    axes at line 102 column 5
    newplot at line 158 column 10
    plot at line 222 column 9
warning: opengl_renderer: Error 'invalid enumerant' (1280) occurred in init_gl_context
warning: called from
    __plt__ at line 87 column 28
    plot at line 223 column 10
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing 'text' object
warning: called from
    __pltopt__
    __plt__ at line 87 column 28
    plot at line 223 column 10
libEGL warning: FIXME: egl/x11 doesn't support front buffer rendering.


just when use qt, the error exists. not gnuplot and fltk.
OS: gentoo linux 5.4
qt: 5.14-r2
octave: 5.2.0

how should i do?

Freed-Wu <freedwu>
Tue 02 Jul 2019 04:35:02 PM UTC, comment #6: 

The default 'qt' toolkit (lowercase) requires a working desktop OpenGL and GLU software stack. OpenGL ES (or GLES) is OpenGL for Embedded Systems, and is frequently used instead of full OpenGL on ARM and other resource limited systems. I believe GLU is not compatible with GLES, and Octave's plotting library requires GLU, so therefore it is incompatible with GLES.

All this is to say, needs more details from someone with access to an affected system, and are there some changes we need to make to Octave to make this experience better?

Mike Miller <mtmiller>
Group Member
Tue 02 Jul 2019 09:00:45 AM UTC, comment #5: 

Completely on the wrong track, Qt is installed, still no luck, same errors. Working fine with GNUPlot though, so I'll just use that for now and hope someone somewhere with Debian fixes it. Thank you for your time, sorry I could not be more help.

Keith <keithdalby>
Tue 02 Jul 2019 08:53:39 AM UTC, comment #4: 

Tried to execute "graphics_toolkit("Qt")" and Qt does not seem to be installed. Running sudo apt-get install qt4-dev-tools and sudo apt-get install qtcreator. I'll update here if it's worked.

Keith <keithdalby>
Tue 02 Jul 2019 08:47:26 AM UTC, comment #3: 

I executed graphics_toolkit("gnuplot") and tried it again, I now see a plot, so it seems the issue is with Qt.

Keith <keithdalby>
Tue 02 Jul 2019 07:47:36 AM UTC, comment #2: 

I am happy to help where-ever I can, but I am afraid I am quite a novice! Does QT stand for 'Quicktime' or am I being daft? How can I check whether QT has switched from OpenGL to GLES?

With kindness

Keith

Keith <keithdalby>
Mon 01 Jul 2019 03:34:39 PM UTC, comment #1: 

It would probably have been better to report this as a Debian bug, since this likely has to do with how Octave is built for particular architectures.

It's my recollection that Debian recently switched Qt from OpenGL to GLES on ARM architectures.

Can you verify that's what's going on on your system? If that's the case, maybe it would be possible to improve how Octave detects whether OpenGL support is present or not. Help with this is certainly welcome.

Mike Miller <mtmiller>
Group Member
Mon 01 Jul 2019 02:19:17 PM UTC, original submission:  

On a fresh install of Raspbian Buster (from NOOBS 3.1.1) on a Raspberry Pi 4 (4GB), I used...


sudo apt-get install octave


... to install GNU Octave. Octave opened fine. I then typed the following lines to test it:


t = 0:0.01:2*pi;
x = cos(t);
plot (t, x);


Alas, I saw no plot. Instead, I was presented with the following message:


warning: opengl_renderer: Error 'invalid enumerant' (1280) occurred in init_gl_context
warning: called from
   ancestor at line 64 column 9
   axes at line 68 column 7
   newplot at line 158 column 10
   plot at line 222 column 9
...


The message goes on like that. A white plot window appears with no interface at all, no 'close window' buttons, no minimise buttons, just a white window. It can be closed via the taskbar. Whenever I click in the window, it just produces more warnings.

I could not see this reported here already, so I thought I would ask in case anyone can see what dopey mistake I have made. I was unable to do a "sudo apt-get update" before trying to install the package because Buster is not live yet, ostensibly I have to wait for a few more days yet.

With kindness

Keith

Keith <keithdalby>

 

(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 freedwu (Posted a comment)
  • -email is unavailable- added by deradmin (1984)
  • -email is unavailable- added by keithdalby (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-12-02 deradmin Carbon-Copy- Added deradmin
    2019-09-23 mtmiller Open/ClosedOpen Closed
    2019-07-02 mtmiller Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupNone Unexpected Error or Warning
        Releaseother dev
        SummaryGNU Octave unable to plot on Raspberry Pi 4 (4GB, Buster) unable to plot with OpenGL on Raspberry Pi 4 (4GB, Buster)
    2019-07-01 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code