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.



1435 Rate this article:
No rating

What to do if ENVI/IDL are crashing on MacOS due to an XML, Xerces or libc++abi “TranscodingException” error

NOTE: This issue could affect any version of ENVI/IDL on any platform but is most likely to occur on MacOS.

 

Problem:

When launching ENVI on MacOS, you may encounter a crash as it loads up. Depending on how ENVI was launched, the crash may or may not be accompanied by the following error message:

 

/Applications/NV5/envi60/bin: ./envi

IDL 9.0.0 (darwin x86_64 m64).

(c) 2023, NV5 Geospatial Solutions, Inc.

Licensed for use by: NV5 Geospatial Solutions

License: XX1234XXX

% Loaded DLM: XML.

libc++abi: terminating with uncaught exception of type

xercesc_3_2::TranscodingException

Abort trap: 6

 

You can also encounter a similar error/crash in IDL when using certain routines, such as XML_PARSE:

 

IDL> a =xml_parse('foo.xml')

% Loaded DLM: XML.

libc++abi: terminating due to uncaught exception of type xercesc_3_2::TranscodingException

Abort

 

Solution:

The problem is most likely due to the LANG environment variable not being set properly on your system causing the Xerces-C++ XML Parser library to crash.

When you run this command in terminal (ENVI license only):

     printenv | grep LANG

Or if you have access to IDL licensing, it is better to check from within IDL to verify with this command:

                IDL> getenv(‘LANG’)

In either case, you should get an output like this which is correct (will vary depending on your region and language):

LANG=en_US.UTF-8

If you run those commands and receive an empty string, LANG is not set properly in your ENVI/IDL environment. This following result is also not correct and could also crash ENVI/IDL:

 LANG=en_US.US-ASCII    

To resolve this crashing issue, make sure to set the LANG environment variable properly in terminal first and then relaunch ENVI/IDL.

export LANG=en_US.UTF-8

*Launch ENVI or IDL*

 

 

 

 

 

Created by BC on 03/04/2024 | Reviewed by MT on 03/15/2024

 

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 »