What Do I Do If the GUI Fails to Be Displayed When Model Visualization Is Used and an Error Message Is Displayed in the Background?

Symptom

In an Ubuntu 20.04-AArch64 environment, when model visualization functions such as Model Visualizer and Dump Configuration are used, the GUI fails to be displayed, and either of the following error messages is displayed:

  1. SEVERE - #c.i.u.j.JBCefApp - /xxx/libjcef.so: /xxx/libcef.so: cannot allocate memory in static TLS block.
  2. SEVERE - #c.i.o.p.Task - JCEF is not supported in this env or failed to initialize.

Fault Analysis

  1. A conflict occurs when the libcef.so file is loaded.
  2. The libcef.so file fails to be initialized.

Solution

Configure required environment variables.

  1. Run the vi MindStudio.sh command in the bin directory in the MindStudio installation path to open the MindStudio.sh boot script and add the following content to the end of line 167 in the file (a non-root user is used as an example):
    export LD_PRELOAD=MindStudio_installation_directory/jbr/lib/libcef.so:$LD_PRELOAD  
    export LD_LIBRARY_PATH=MindStudio_installation_directory/jbr/lib/libcef.so:$LD_LIBRARY_PATH
  2. Run the :wq! command to save the file and exit.
  3. Run the following command in the bin directory in the MindStudio installation path to restart MindStudio:
    ./MindStudio.sh