Error loading component:

Dear experts,
I downloaded the Cubit 2021.11 ( [Coreform-Cubit-2021.11-rc+24001_0f11c8dd-Lin64.tar.gz]) on my WSL Ubuntu 18.04. However, when I try to launch it, I get the following errors


Cubit do start, however, I wanted to know if these errors are relevant and if they can cause some problems.

Thank you,
Lovepreet

Regular Cubit features should still work correctly, yes. It looks like the failures are in some of our newer features. Could you set the environment variable CUBIT_VERBOSE=5 and run it again and post the output here please?
@kaleb @slaughter

@SinghLp

While unrelated to your errors, I see you’re using Windows Subsystem Linux (WSL). We don’t (yet) officially support WSL – I don’t believe WSL supports graphics. Even if it does, you will likely find a more responsive GUI if you install Cubit in your traditional Windows environment, then move/save files to your WSL workspace. Then, assuming that you’re using WSL for scripting with Linux-based solvers, you can run/script “command-line” Cubit via:

# Defaults to a Python interface
/path/to/coreform_cubit -nographics 

# Specify the Cubit Command Language interface
/path/to/coreform_cubit -nographics -prompt Cubit

Thank you for your reply, Sir.
Here is the output

[2022-02-07 19:55:01.251] [app_logger] [info] Using gui
[2022-02-07 19:55:01.265] [app_logger] [error] X error: 167
[2022-02-07 19:55:01.265] [app_logger] [error] Couldn't create GLXContext
[2022-02-07 19:55:01.266] [app_logger] [info] Trying OpenGL fallback
[2022-02-07 19:55:01.266] [app_logger] [info] VTK lib loaded
[2022-02-07 19:55:01.266] [app_logger] [info] Loading fallback mesa libGL
[2022-02-07 19:55:01.339] [app_logger] [info] Using gui
Not using O_TMPFILE
[2022-02-07 19:55:01.506] [info] RLM session initialized
[2022-02-07 19:55:01.519] [app_logger] [debug] RLM Diagnostics at 02/07/2022 19:55

    RLM version: 14.1BL3
    RLM platform: x64_l1
    OS version: 4.4.0-22000-Microsof

    ISV name: csimsoft
    Hostname: LAPTOP-2M13LPJ7
    User: lovepreet
    Working directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11

Environment:

        RLM_CONNECT_TIMEOUT=<not set>
        RLM_EXTENDED_ERROR_MESSAGES=<not set>
        RLM_LICENSE=<not set>
        RLM_NO_UNLIMIT=<not set>
        RLM_PATH_RANDOMIZE=<not set>
        RLM_PROJECT=<not set>
        RLM_QUEUE=<not set>
        RLM_ROAM=<not set>
        RLMSTAT=<not set>
        HTTP_PROXY=<not set>
        HTTP_PROXY_CREDENTIALS=<not set>
        csimsoft_LICENSE=<not set>

    RLM hostid list:

        7f0101 cae265730fdc 00ff40e0d60e c8e265730fdc 0a002700000c c8e265730fdd ip=169.254.237.8 ip=192.168.56.1 ip=100.127.255.249 ip=192.168.1.6 ip=169.254.182.211

License files:
        /home/lovepreet/.config/Coreform/licenses/cubit-learn.lic

rlm_init() parameters:
        1: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/licenses:/home/lovepreet/.config/Coreform/licenses
        2: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/coreform_cubit
        3: <empty>

Local licenses which can be checked out:

    Client Cached Licenses (only the highest version # shown):

        <none>


    In license file /home/lovepreet/.config/Coreform/licenses/cubit-learn.lic
          (no server)

        <none>

    Roaming Licenses:

        <none>

[2022-02-07 19:55:03.521] [app_logger] [error] No logins were valid: -1
[2022-02-07 19:55:04.401] [app_logger] [info] Valid Cubit Learn login
[2022-02-07 19:55:04.401] [app_logger] [info] Logged in
[2022-02-07 19:55:04.401] [app_logger] [info] Set OPAL_PREFIX to /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/mpi
[2022-02-07 19:55:04.401] [app_logger] [info] Set OPAL_LIBDIR to /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/mpi/lib
[2022-02-07 19:55:04.402] [app_logger] [info] Set OPAL_BINDIR to /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/mpi/bin
[2022-02-07 19:55:04.402] [app_logger] [info] Python version 0 selected
[2022-02-07 19:55:04.403] [app_logger] [info] Looking for Python
[2022-02-07 19:55:04.403] [app_logger] [info] Python version 3 libname is /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/././python3/libcubit_python3.so
[2022-02-07 19:55:04.414] [app_logger] [info] Python not already initialized, initializing
[2022-02-07 19:55:04.414] [app_logger] [info] Setting program name to ./bin/coreform_cubit
[2022-02-07 19:55:04.414] [app_logger] [info] Application directory is /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/./.
[2022-02-07 19:55:04.415] [app_logger] [info] python_lib path: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/././python3/./libpython3.8.so.1.0
[2022-02-07 19:55:04.415] [app_logger] [info] python_dir: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/././python3/.
[2022-02-07 19:55:04.415] [app_logger] [info] Found embedded python
[2022-02-07 19:55:04.415] [app_logger] [info] PYTHONHOME set to /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/././python3
[2022-02-07 19:55:04.431] [app_logger] [info] Version 3 interpreter found
[2022-02-07 19:55:04.433] [app_logger] [info] Cubit python initialized
[2022-02-07 19:55:04.433] [app_logger] [info] Starting broker
[2022-02-07 19:55:04.433] [app_logger] [info] Passing control to MachineControl
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: source code string cannot contain null bytes
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: source code string cannot contain null bytes
[2022-02-07 19:55:04.440] [app_logger] [debug] Dealer::restore_settings: loading QSettings from : /home/lovepreet/.config/Coreform/Cubit.ini
[2022-02-07 19:55:04.440] [app_logger] [debug] Supervisor::Impl::load_plugins: Loading plugins from QCoreApplication::applicationDirPath : /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
[2022-02-07 19:55:04.440] [app_logger] [info] Loading plugin from path /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
[2022-02-07 19:55:04.442] [app_logger] [info] Attempting to load: libcfplugincomp.ccl
[2022-02-07 19:55:04.442] [app_logger] [debug] ClaroPlugin::load: loading: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/libcfplugincomp.ccl
[2022-02-07 19:55:05.075] [app_logger] [info] Supervisor::Impl::load_plugins: Loaded component: libcfplugincomp.ccl from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Supervisor::Impl::load_plugins: Loaded component: libcfplugincomp.ccl from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
[2022-02-07 19:55:05.075] [app_logger] [debug] Registering plugin components
[2022-02-07 19:55:05.075] [app_logger] [info] Attempting to load: libcfplugingui.ccg
[2022-02-07 19:55:05.075] [app_logger] [debug] ClaroPlugin::load: loading: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/libcfplugingui.ccg
[2022-02-07 19:55:05.100] [app_logger] [info] Supervisor::Impl::load_plugins: Loaded component: libcfplugingui.ccg from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Supervisor::Impl::load_plugins: Loaded component: libcfplugingui.ccg from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
[2022-02-07 19:55:05.100] [app_logger] [debug] Registering plugin components
[2022-02-07 19:55:05.100] [app_logger] [info] Attempting to load: libcoreformcae.ccg
[2022-02-07 19:55:05.100] [app_logger] [debug] ClaroPlugin::load: loading: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/libcoreformcae.ccg
[2022-02-07 19:55:05.115] [app_logger] [error] dlopen error: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/libcoreformcae.ccg libasound.so.2: cannot open shared object file: No such file or directory
[2022-02-07 19:55:05.115] [app_logger] [error] Error loading component libcoreformcae.ccg:
Error loading component:
libcoreformcae.ccg

[2022-02-07 19:55:05.115] [app_logger] [info] Attempting to load: libcubitcomp.ccl
[2022-02-07 19:55:05.115] [app_logger] [debug] ClaroPlugin::load: loading: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/libcubitcomp.ccl
[2022-02-07 19:55:05.121] [app_logger] [info] Supervisor::Impl::load_plugins: Loaded component: libcubitcomp.ccl from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Supervisor::Impl::load_plugins: Loaded component: libcubitcomp.ccl from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
[2022-02-07 19:55:05.121] [app_logger] [debug] Registering plugin components
[2022-02-07 19:55:05.121] [app_logger] [info] Attempting to load: libcubitcompgui.ccg
[2022-02-07 19:55:05.121] [app_logger] [debug] ClaroPlugin::load: loading: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin/libcubitcompgui.ccg
[2022-02-07 19:55:05.134] [app_logger] [info] Supervisor::Impl::load_plugins: Loaded component: libcubitcompgui.ccg from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Supervisor::Impl::load_plugins: Loaded component: libcubitcompgui.ccg from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
[2022-02-07 19:55:05.134] [app_logger] [debug] Registering plugin components
Creating new Workspace session
Initializing LLVM
Loading workspace command plugin
Not using O_TMPFILE

Lovepreet

Thank you, Sir.
I will surely follow your suggestions.

Best,
Lovepreet

Looks like you’re missing this system library: libasound.so.2. You should be able to run sudo apt-get install libasound2 to get it, and that should fix the issue.

Thank you Sir.
Now, I get the following lines:
Not using O_TMPFILE
[2022-02-08 19:19:44.026] [info] RLM session initialized
Traceback (most recent call last):
File “”, line 1, in
ValueError: source code string cannot contain null bytes
Traceback (most recent call last):
File “”, line 1, in
ValueError: source code string cannot contain null bytes
Supervisor::Impl::load_plugins: Loaded component: libcfplugincomp.ccl from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Supervisor::Impl::load_plugins: Loaded component: libcfplugingui.ccg from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Supervisor::Impl::load_plugins: Loaded component: libcoreformcae.ccg from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Supervisor::Impl::load_plugins: Loaded component: libcubitcomp.ccl from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Supervisor::Impl::load_plugins: Loaded component: libcubitcompgui.ccg from directory: /home/lovepreet/CUBIT-install/Coreform-Cubit-2021.11/bin
Creating new Workspace session
Initializing LLVM
CoreformCAEWebChannel Ready!
KDBG: dock added
claro->findChild<QDockWidget*>(“EntityTreeWindow”) failed!
KDBG: parent found
KDBG: tree webview init’d
KTDBG: notifyPick registered
Loading workspace command plugin
Not using O_TMPFILE
js: Uncaught SyntaxError: Invalid or unexpected token
js: Uncaught SyntaxError: Unexpected string
js: Uncaught SyntaxError: Unexpected token ‘}’
js: Uncaught SyntaxError: Unexpected token ‘{’

Are these fine?

Best,
Lovepreet

For normal Cubit operation, yes, those are fine.

1 Like