Mac ParaView crashes when opening some netCDF files
I created two nearly identical netCDF files. Both were created from the identical geotiff file. The only difference is that one uses feet and the other uses meters. The one that uses feet crashes ParaView whenever I try to open it. I’ve tried both readers “CAM NetCDF (Unstructured)” and “NetCDF files generic and CF conventions” with the same results. I've also tried both 5.2 and 5.3rc1. I'm using Mac OS 10.12.3 but I have seen the same problem on 10.11 Macs as well.
The beginning of the crash log is: Application Specific Information: terminating with uncaught exception of type std::out_of_range: basic_string abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fffcb43add6 __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fffcb526787 pthread_kill + 90 2 libsystem_c.dylib 0x00007fffcb3a0420 abort + 129 3 libc++abi.dylib 0x00007fffc9efb85a abort_message + 266 4 libc++abi.dylib 0x00007fffc9f20c37 default_terminate_handler() + 243 5 libobjc.A.dylib 0x00007fffcaa2af33 _objc_terminate() + 124 6 libc++abi.dylib 0x00007fffc9f1dd69 std::__terminate(void (*)()) + 8 7 libc++abi.dylib 0x00007fffc9f1d9f2 __cxa_rethrow + 99 8 QtCore 0x000000010db17d2d QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 845 9 QtCore 0x000000010db1ad97 QCoreApplication::exec() + 199 10 org.paraview.ParaView 0x000000010b083fd2 main + 386 11 libdyld.dylib 0x00007fffcb30c255 start + 1
The file that fails was created this way:
gdalwarp -t_srs EPSG:3652 -of netCDF test.tiff test_ft.nc
While the one that opens fine was created this way:
gdalwarp -t_srs EPSG:3651 -of netCDF test.tiff test_m.nc