# Exporting array to Binary fomat crash

**URL:** https://discourse.paraview.org/t/exporting-array-to-binary-fomat-crash/4618
**Category:** Development
**Tags:** python, vtk
**Created:** [June 18, 2020, 1:53pm UTC](https://discourse.paraview.org/t/exporting-array-to-binary-fomat-crash/4618 "2020-06-18T13:53:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Potson](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/9fc348/32.png) [@Potson](https://discourse.paraview.org/u/Potson)
#### Post date: [June 18, 2020, 1:53pm UTC](https://discourse.paraview.org/t/exporting-array-to-binary-fomat-crash/4618/1 "2020-06-18T13:53:10Z")

</div>

Hello,

I am using Paraview as a middle man to convert data from Ensight .sos files to binary format for further post-processing. In order to do so, I read the required data and save it to a 2D array. However when I try to save it using the following lines, the program crashes with the following error message:

Inconsistency detected by ld.so: dl-close:c: 811: \_dl\_close: Assertion ‘map-\>l\_init\_called’ failed!

f = open(‘Binary\_Data’, ‘wb+’)  
binary\_format = bytearray(Matrix)  
f.write(binary\_format)  
f.close()

The code is run using: pvpython Ensight2Binary.py (name of the program)

Thank you in advance,

Alfonso

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [June 19, 2020, 1:08am UTC](https://discourse.paraview.org/t/exporting-array-to-binary-fomat-crash/4618/2 "2020-06-19T01:08:12Z")

</div>

your code is unrelated to paraview. Not sure how we can help.
