X
332

What to do if ENVI/IDL are crashing Linux with this message: Bus error (core dumped)

NOTE: This issue could affect any version of ENVI/IDL on any flavor of Linux, but is most commonly reported so far on Ubuntu and Fedora systems. 

 

Problem:

When launching ENVI, or attempting to load any graphics window or widget in IDL, you may experience a crash with the following error message displayed in the terminal: 
 

Bus error (core dumped)

 

This crash will also occur when attempting to complete license activation through the ENVI-IDL License Administrator GUI since that tool is an IDL-based widget. 

 

Cause:

This problem was first detected in late 2023 and has been tied to a recent Linux graphical library update (likely libgl) which has broken ENVI/IDL's ability to use its default hardware (GPU) rendering. 
 

Solution for systems with a dedicated GPU

If your computer has a discrete GPU, then you can work-around the crash by following these instructions:

  1. Set the following environment variable which will force ENVI/IDL (actually all OpenGL applications) to use the dedicated graphics card, instead of integrated Intel graphics. The value of the variable will depend on whether you have an AMD or NVIDIA dedicated GPU:

    export __GLX_VENDOR_LIBRARY_NAME=nvidia
    export __GLX_VENDOR_LIBRARY_NAME=amd

     
  2. Confirm the change is in effect by launching ENVI or making a simple graphics call in IDL, such as "p = plot(/test)". Neither of those should crash now. 
     

Solution for systems WITHOUT a dedicated GPU


A temporary work-around is to rename the "gl_driver.so" file inside the IDL distribution by following these instructions:

  1. Move to this directory:

        For ENVI: <install_dir>/envixx/idlxx/bin/bin.linux.x86_64
        For IDL: <install_dir>/idlxx/bin/bin.linux.x86_64
     
  2. Rename the file "gl_driver.so"    to    "gl_driver.bak"
  3. Confirm the change is in effect by launching ENVI or making a simple graphics call in IDL, such as "p = plot(/test)". Neither of those should crash now. 

 

NOTE: This work-around completely disables hardware rendering in ENVI and IDL with a fallback to software (CPU) rendering. This may have a slight performance hit for intensive graphics in IDL, but for the most part any decrease should be small. Impacts on ENVI performance could be more significant, dependent on what you are doing. 

 

 

 

Updated by BC-US on 5/6/2024 

3/20/2024 Created by BC-US on 03/20/2024 | Reviewed by TS on