bugGNU Octave - Bugs: bug #62868, incorrect GUI creation


bug #62868: incorrect GUI creation

Submitter:  None
Submitted:  Fri 05 Aug 2022 09:53:46 PM UTC
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Need Info Assigned to:  None
Originator Name:  Vladimir Sovkov Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 7.2.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


( Jump to the original submission )

Wed 17 Aug 2022 09:38:17 PM UTC, comment #15: 

Alas, this seems to be a hardware-specific bug rather than an Octave bug.  Closing report.

Rik <rik5>
Project Administrator
Sun 14 Aug 2022 06:40:00 PM UTC, comment #14: 

I have tried it. Nothing better, independently of keeping opengl32.dll as it is or renaming it.

In fact, 6.4.0 suits my purposes fairly well. I can do with it for a while.

Thenks for your efforts to help me.

Fri 12 Aug 2022 04:58:34 PM UTC, comment #13: 

According to this page, there are no drivers for that graphics card for Windows 10 or 11:

You might be using generic drivers from the OS when the `opengl32.dll` file in Octave's installation directory is renamed. Those might not be "good enough". And that was one of the main reasons why we started to bundle `opengl32.dll` in the first place.
I wonder why the bundled .dll isn't working though. (It should be a software renderer, pretty much independent on the graphics hardware installed on your system.)

That might be a long shot: Could you try with a nightly build? The one in the section `mxe-default` here:

It uses newer versions of Qt5 and mesa3d than the ones included in the "official" installer. Maybe that'll make a difference...

Markus Mützel <mmuetzel>
Project Member
Fri 12 Aug 2022 02:53:36 PM UTC, comment #12: 

It is reported by the system as "Intel(R) HD Graphics 3000" and using the latest version of the drivers.

Thu 11 Aug 2022 05:58:28 AM UTC, comment #11: 

Which graphics card do you have? Does updating its drivers make a difference?

Markus Mützel <mmuetzel>
Project Member
Mon 08 Aug 2022 12:00:33 AM UTC, comment #10: 

>> _opengl_info_

warning: _opengl_info_: can not obtain OpenGL information
warning: called from
    _opengl_info_ at line 65 column 5

Windows 10 21H2 19044.1826

Sun 07 Aug 2022 05:45:30 PM UTC, comment #9: 

Hmm. What does `__opengl_info__` return for you? And which version of Windows are you using?

Markus Mützel <mmuetzel>
Project Member
Sun 07 Aug 2022 03:19:08 PM UTC, comment #8: 

Thanks but, unfortunately, this has not helped. Nothing changed after I had renamed opengl32.dll to opengl32.dll.

Sun 07 Aug 2022 02:35:56 PM UTC, comment #7: 

Afaict, different installations of Octave shouldn't interfere in that respect.

Octave for Windows bundles a mesa OpenGL driver (because "default" drivers caused crashes for some users in the past).
By default, that driver .dll should be installed in `C:\Program Files\GNU Octave\Octave-7.2.0\mingw64\bin\opengl32.dll`. Try to rename that file while Octave is not running.
When you start Octave after that, it should pick up the OpenGL drivers that are installed on your system (e.g., as part of your graphics card drivers).
Does plotting work after that?

Markus Mützel <mmuetzel>
Project Member
Sun 07 Aug 2022 01:01:21 PM UTC, comment #6: 

Indeed, `demo plot 1` works the same way: it produces an empty window titled 'Fogure 1' and nothing within. As well as any other 'plot' command I tried. Could the problem be due to I installed 7.4.0 without uninstalling 6.4.0, so that both releases of Octave presently coexist?
Best, Vladimir.

Sun 07 Aug 2022 08:48:59 AM UTC, comment #5: 

Also works for me on Windows 11.

Does plotting work at all for you? Or is it only uicontrol? What does `demo plot 1` show for you?

Markus Mützel <mmuetzel>
Project Member
Sat 06 Aug 2022 05:35:18 PM UTC, comment #4: 

I have attached the screenshots. Oct64.jpg is what I get with 6.4.0 (the desired window is created with all the required controls) and Oct72.jpg is what I get with 7.2.0 (the window is created but it is empty with no controls; no warning or error messages). From under the same Windows 10 system.
Best, Vladimir

Sat 06 Aug 2022 01:52:48 PM UTC, comment #3: 

also works for me with Octave 7.2.0 on windows 10.

Nicholas Jankowski <nrjank>
Project Member
Sat 06 Aug 2022 07:37:20 AM UTC, comment #2: 

Works for me, too, on my old Win 7 virtual box.

Torsten Lilge <ttl>
Project Member
Sat 06 Aug 2022 03:31:06 AM UTC, comment #1: 

This works on Linux 7.2.0 for me.  There might be an issue on all Windows systems or it might be a specific issue with the hardware of your machine.

Is there any warning or error printed?
Can you upload a screenshot of the created figure?

Rik <rik5>
Project Administrator
Fri 05 Aug 2022 09:53:46 PM UTC, original submission:  

The example provided in the documentation on the "uicontrol" does not work with the release 7.2.0 although it works successfully with the release 6.4.0, which I used previously. The code in the documentation:

## Create figure and panel on it
f = figure;
## Create a button (default style)
b1 = uicontrol (f, "string", "A Button", ...
                   "position", [10 10 150 40]);
## Create an edit control
e1 = uicontrol (f, "style", "edit", "string", "editable text", ...
                   "position", [10 60 300 40]);
## Create a checkbox
c1 = uicontrol (f, "style", "checkbox", "string", "a checkbox", ...
                   "position", [10 120 150 40]);

It looks that the same bug prevents launching my package OPTIMIZER (https://sourceforge.net/projects/optimizer-sovkov/), with this latest release, although it worked fairly well with 6.4.0.
Best regards,



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

Attach Files:

Attached Files
file #53537:  Oct64.jpg added by None (336KiB - image/jpeg)
file #53538:  Oct72.jpg added by None (327KiB - image/jpeg)


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 nrjank (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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 project members can vote.





    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-17 rik5 Open/ClosedOpen Closed
    2022-08-07 mmuetzel CategoryGUI Plotting with OpenGL
    2022-08-06 None Attached File- Added Oct64.jpg, #53537
        Attached File- Added Oct72.jpg, #53538
    2022-08-06 rik5 StatusNone Need Info

    Back to the top

    Powered by Savane 3.9