X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



3169 Rate this article:
No rating

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

Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »