Hexagon Geospatial
MENU

ERDAS APOLLO & ECW/JP2

Wondering how others have configured their ERDAS APOLLO server or what data they are crawling? The ERDAS APOLLO Discussion board is a place to find information, share ideas and more. Join the community, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
New Contributor
Posts: 2
Registered: ‎10-17-2017

ECW 5.3 segfault Issue on Linux 4.8.2

[ Edited ]

Hello,

 

Currently we are using the ECW library version 5.3.0. We have it working on Linux RH7 with GCC 4.8.2 but are getting segfaults with some of our maps.

 

I've added the important part of the stack trace below. I have checked permissions on the files, and there is no difference between the working one and the ones that do not work. As well, these files seem to display fine in other third party GIS viewer tools. 

 

Any ideas what would cause this sort of error?

 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe2cd7700 (LWP 1129)]
0x00007ffff2dbb4cd in NCS::ECW::CFile::CPrecinct::Read(unsigned long, NCS::SDK::CBuffer2D*, unsigned short) ()
   from /home/user/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.3.0
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.5-7.el6_0.x86_64 cairo-1.8.8-3.1.el6.x86_64 cyrus-sasl-lib-2.1.23-15.el6.x86_64 expat-2.0.1-11.el6_2.x86_64 fontconfig-2.8.0-5.el6.x86_64 freetype-2.3.11-14.el6_3.1.x86_64 gdk-pixbuf2-2.24.1-5.el6.x86_64 glib2-2.28.8-9.el6.x86_64 glibc-2.12-1.209.el6_9.2.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-33.el6.x86_64 libICE-1.0.6-1.el6.x86_64 libSM-1.2.1-2.el6.x86_64 libX11-1.6.3-2.el6.x86_64 libXau-1.0.6-4.el6.x86_64 libXcursor-1.1.14-2.1.el6.x86_64 libXext-1.3.3-1.el6.x86_64 libXfixes-5.0.1-2.1.el6.x86_64 libXft-2.3.1-2.el6.x86_64 libXmu-1.1.1-2.el6.x86_64 libXp-1.0.2-2.1.el6.x86_64 libXrender-0.9.8-2.1.el6.x86_64 libXt-1.1.4-6.1.el6.x86_64 libcom_err-1.41.12-21.el6.x86_64 libcroco-0.6.2-5.el6.x86_64 libcurl-7.19.7-37.el6_5.3.x86_64 libgcc-4.4.7-17.el6.x86_64 libgsf-1.14.15-5.el6.x86_64 libidn-1.18-2.el6.x86_64 libjpeg-turbo-1.2.1-3.el6_5.x86_64 libpng-1.2.49-1.el6_2.x86_64 librsvg2-2.26.0-14.el6.x86_64 libselinux-2.0.94-5.8.el6.x86_64 libssh2-1.4.2-1.el6.x86_64 libstdc++-4.4.7-17.el6.x86_64 libuuid-2.17.2-12.18.el6.x86_64 libxcb-1.11-2.el6.x86_64 libxml2-2.7.6-14.el6_5.2.x86_64 mesa-libGLw-6.5.1-10.el6.x86_64 nspr-4.10.6-1.el6_5.x86_64 nss-3.16.1-14.el6.x86_64 nss-softokn-freebl-3.14.3-17.el6.x86_64 nss-util-3.16.1-3.el6.x86_64 openldap-2.4.39-8.el6.x86_64 openmotif-2.3.3-8.el6.x86_64 openssl-1.0.1e-30.el6.x86_64 pango-1.28.1-10.el6.x86_64 pixman-0.32.4-4.el6.x86_64 zlib-1.2.3-29.el6.x86_64
#0  0x00007ffff2dbb4cd in NCS::ECW::CFile::CPrecinct::Read(unsigned long, NCS::SDK::CBuffer2D*, unsigned short) ()
   from /home/user/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.3.0
#1  0x00007ffff2ddccd4 in NCS::SDK::NodeTiler2D_T<NCS::SDK::HashList_T<NCS::CPacketId, NCS::ECW::CFile::CPrecinct, NCS::SDK::ItemsDefaultHash_T<NCS::CPacketId> >::read_accessor, NCS::SDK::HashList_T<NCS::CPacketId, NCS::ECW::CFile::CPrecinct, NCS::SDK::ItemsDefaultHash_T<NCS::CPacketId> >::write_accessor>::Read(unsigned long, NCS::SDK::CBuffer2D*, unsigned short) ()
   from /home/user/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.3.0
#2  0x00007ffff2daf256 in NCS::ECW::CInputNode::Read(unsigned long, NCS::SDK::CBuffer2D*, unsigned short) ()
   from /home/user/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.3.0
#3  0x00007ffff2dd57d5 in NCS::ECW::CReader::ReadLine(NCSCellType, unsigned short, void**, NCSCellType, unsigned int*) ()
   from /home/user/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.3.0
#4  0x00007ffff2d37726 in NCS::CView::ReadLineBILInternal(NCSCellType, unsigned short, void**, NCSCellType, unsigned int*) ()
   from /home/user/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.3.0
#5  0x00007ffff2d2a460 in ?? ()
   from /home/user/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.3.0
#6  0x00007ffff2d3481c in NCS::CView::ReadLineARGB(unsigned int*) ()
   from /home/user/hexagon/ERDAS-ECW_JPEG_2000_SDK-5.3.0/Desktop_Read-Only/lib/x64/release/libNCSEcw.so.5.3.0
#7  0x00007ffff4d1d5a9 in Ecw::readData(Envelope const&, int, int, unsigned int*&) ()
   from /home/user/Desktop/ECWSource/ecwsource/.build/libEcwSource.so
#8  0x00007ffff4d1ed37 in EcwSource::getFeatureData(InterMAPhics::GeoExtent const&, double, double) ()
   from /home/user/Desktop/ECWSource/ecwsource/.build/libEcwSource.so
#9 ...
Staff
Posts: 503
Registered: ‎02-02-2016

Re: ECW 5.3 segfault Issue on Linux 4.8.2

Hi Cyril,

 

The files could be corrupt. You can verify this with the ECWCheck program from the ERDAS APOLLO Utilities tools. You can download the ERDAS APOLLO Utilities installer from the link below. You could also try running the problematic files through decompression example 5 which reads the files at dataset resolution (effectively the same as ECWCheck, however the utility is multi- threaded and faster).

 

ERDAS APOLLO Utilities 2016

 

If the files are not corrupt could you please open a support ticket so that we can investigate this issue further? We would like to examine one of the ECW files in question and a core dump if there is one. A code sample can also help us analyze the problem, for example the extents and size of the request when it crashes.

 

Regards,

 

Stephen Bent

Hexagon Geospatial Support

 

New Contributor
Posts: 2
Registered: ‎10-17-2017

Re: ECW 5.3 segfault Issue on Linux 4.8.2

I tried out the tool as you suggested. The Header Editor shows valid information for each file, and the OTDF Builder crashes on each one with the default settings, even the one that works. Any suggestion on how to proceed now?

Cheers,
Cyril.

Highlighted
Staff
Posts: 503
Registered: ‎02-02-2016

Re: ECW 5.3 segfault Issue on Linux 4.8.2

Hi Cyril,

 

Can you please open a new support ticket for this issue using our Support Portal.

Community > Knowledge & Support > Support Portal

 

We would like to examine one of the ECW files in question and a core dump if there is one. A code sample will also help us analyze the problem.

 

Thanks,

 

Stephen Bent

Hexagon Geospatial Support

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.