Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MATLAB is issuing a deprecation warning related to OpenGL rendering #262

Open
SeSodesa opened this issue Sep 19, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@SeSodesa
Copy link
Collaborator

SeSodesa commented Sep 19, 2024

Description

When Zeffiro Interface is started up on a Linux machine, the following warning message is printed on screen:

Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information, click here.

If one then clicks on "here", the following warning is shown:

Warning: the opengl function will be removed in a future release. Use the renderinfo function instead.

If this is not addressed, Zeffiro might become unusable with newer MATLAB versions in the near future.

Steps to reproduce

  1. Open up MATLAB R2024b with its GUI active,

  2. Start Zeffiro Interface with the command

    zef = zeffiro_interface ;
    
  3. watch the warning message appear on screen.

Expected behavior

There would not be any warnings, or at the very last no deprecation warnings.

Screenshots

Screenshot 2024-09-19 at 14 08 26

Context

Name Value
Version 6117ea1
OS Ubuntu 22.04 + MATLAB R2024b
Shell fish

The mentioned problematic opengl function is called in the following files in the m/ folder:

λ grep --color -nP "opengl" m/**.m
m/forward_simulation/wave/compute_data_gpu.m:176:            set(gcf,'renderer','opengl'); set(gcf,'color',[84 90 112 ]/300);
m/zef_print_meshes.m:59:    set(h_fig_aux,'renderer','opengl');
m/zef_print_meshes.m:1409:    set(h_fig_aux,'renderer','opengl');

It then seems that the warning is printed when the ZI figure tool is being opened. It also seems like commenting the opengl lines in those files removes the warning without affecting Zeffiro behaviour in any way.

@SeSodesa SeSodesa added the bug Something isn't working label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@SeSodesa and others