This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Mark, Just to jump in, I have a couple of questions of my own. First, are you able to try this with a newer version of netcdf? As mentioned in the email thread you reference, there were a number of related bugfixes in netcdf-c 4.3.2 that I suspect may have addressed the issue. Second, do you see the same behavior if you run the program on the internal hard-drive instead of the USB3-connected external hard drive? Thanks! -Ward > Dear NetCDF support, > > I am consistently getting the following assertion error in the px_pgout > routine in posixio: > > > Assertion failed: (*posp == OFF_NONE || *posp == lseek(nciop->fd, 0, > > SEEK_CUR)), function px_pgout, file posixio.c, line 232. > > > I am accessing NetCDF 4.3.0 in IDL version 8.3 on a Mac Mini running OS X > 10.9.5. The attached program called test_netcdf.pro consistently reproduces > the error. The program creates a NetCDF file on a USB 3.0-connected external > hard drive over and over and over again, printing a "+" sign to the terminal > for every 1000 files created. I wrote this program to diagnose a separate > error with the "NCDF_CONTROL, id, /ENDEF" procedure in IDL (note the CATCH > statements that are designed to catch an NC_ERROR=-31 problem in that > procedure). The CATCH block is a successful workaround for the endef issue, > but I still get the error in px_pgout. I'm including below output from a > typical run of the program (this may take a few hours to run, but it will > always produce the assertion failure on my machine). Note that the > "error_count = 1" line occurs whenever the CATCH is tripped, but the > important part is that the program always ends catastrophically with the > assertion error, crashing I DL and dumping me back out to the UNIX prompt. I've also included information below about the version of IDL, NetCDF, and hardware that I'm using. > > This error seems identical to a problem identified several years ago: > http://www.unidata.ucar.edu/mailing_lists/archives/netcdfgroup/2011/msg00108.html, > and it seems there was a similar problem reported for px_pgin very recently: > http://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg12675.html > > Is there any solution for this problem? Thanks in advance for your help with > this. > > All the best, > Mark > > Mark Baumgartner > Associate Scientist > Biology Department > Woods Hole Oceanographic Institution > MS #33, Redfield 256 > Woods Hole, MA 02543 > address@hidden > www.whoi.edu/sites/mbaumgartner > (508)289-2678 phone > (508)457-2134 fax > > > > > > IDL Version 8.3, Mac OS X (darwin x86_64 m64). (c) 2013, Exelis Visual > > Information Solutions, Inc. > > Installation number: 245610. > > Licensed for use by: Woods Hole Oceanographic Institution > > > > IDL> .run test_netcdf > > % Compiled module: TEST_NETCDF. > > IDL> test_netcdf > > % Loaded DLM: NCDF. > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > error count = 1 ( 229403) > > +++++++++++++++++ > > error count = 1 ( 123163) > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > error count = 1 ( 113457) > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > error count = 1 ( 101881) > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > error count = 1 ( 97787) > > +++++++++++++++ > > error count = 1 ( 83996) > > ++++++++++ > > error count = 1 ( 73407) > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > error count = 1 ( 81884) > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > error count = 1 ( 89847) > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Assertion > > failed: (*posp == OFF_NONE || *posp == lseek(nciop->fd, 0, SEEK_CUR)), > > function px_pgout, file posixio.c, line 232. > > Abort > > > > IDL> help, /struct, !version > > ** Structure !VERSION, 8 tags, length=104, data length=100: > > ARCH STRING 'x86_64' > > OS STRING 'darwin' > > OS_FAMILY STRING 'unix' > > OS_NAME STRING 'Mac OS X' > > RELEASE STRING '8.3' > > BUILD_DATE STRING 'Nov 15 2013' > > MEMORY_BITS INT 64 > > FILE_OFFSET_BITS > > INT 64 > > > ** NCDF - IDL NetCDF support (not loaded) > > Version: 4.3.0, Build Date: NOV 15 2013, Source: Exelis Visual > > Information Solutions, Inc. > > Path: /Applications/exelis/idl/bin/bin.darwin.x86_64/idl_netcdf.so > > > > > > > > Ticket Details =================== Ticket ID: IWC-920640 Department: Support netCDF Priority: Normal Status: Closed