Tracker: Bugs

5 "Unit Already Open" error in restore - ID: 3601455
Last Update: Settings changed ( gilles-duvert )

with todays CVS, i restore a variable previously saved by a 'save,a' (a being dist(100) ).
I get:
GDL> restore, filen='cmsave.sav'
% Compiled module: RESTORE.
% Compiled module: CMSVLIB.
% Compiled module: CMSV_OPEN.
% Compiled module: CMRESTORE.
% Compiled module: UNIT.
% OPENR: Unit already open. Unit: 0
% Error occurred at: CMSV_OPEN 206 /opt/idl/liblocal/astron/markwardt/cmsv_open.pro
% CMRESTORE 411 /opt/idl/liblocal/astron/markwardt/cmrestore.pro
% RESTORE 103 /usr/local/share/gnudatalanguage/lib/restore.pro
% $MAIN$
% Execution halted at: $MAIN$


giloo ( gilles-duvert ) - 2013-01-18 21:11:21 PST

5

Closed

Invalid

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2013-01-30 10:47:00 PST
Sender: gilles-duvert

problem solved. Comes from presence of unit() function in jhuapl
astronomical idl library and presence of unit(0) instead of unit[0] in cm's
various procedures.


Date: 2013-01-29 15:43:05 PST
Sender: gilles-duvert

sure, here is the output of cmsv_test:
GDL> cmsv_test
% Compiled module: CMSV_TEST.
% Compiled module: ARG_PRESENT.
% Compiled module: CMRESTORE.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmrestore.pro
% Compiled module: CMSAVE_HANDLE_VALUE.
% Compiled module: CMSAVE.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsave.pro
% Compiled module: CMSAVEDIR.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsavedir.pro
% Compiled module: CMSV_OPEN.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_open.pro
% Compiled module: CMSV_PTRSUM.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_ptrsum.pro
% Compiled module: CMSV_RCONV.
% Compiled module: CMSV_RHDATA.
% Compiled module: CMSV_RDATA.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_rdata.pro
% Warning: Keyword parameter IS_FUNCTION not supported in call to:
RESOLVE_ROUTINE. Ignored.
% Compiled module: CMSV_RBUF.
% Compiled module: CMSV_RRAW.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_rraw.pro
% Compiled module: CMSV_RCOMM.
% Compiled module: CMSV_RHEAP.
% Compiled module: CMSV_RSTAMP.
% Compiled module: CMSV_RVERSION.
% Compiled module: CMSV_RIDENT.
% Compiled module: CMSV_RNOTICE.
% Compiled module: CMSV_RREC.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_rrec.pro
% Compiled module: CMSV_RARRDESC.
% Compiled module: CMSV_RSTRUCTDESC.
% Compiled module: CMSV_RVTYPE.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_rvtype.pro
% Compiled module: CMSV_WCONV.
% Compiled module: CMSV_WDATA.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_wdata.pro
% Compiled module: CMSV_ENLARGE.
% Compiled module: CMSV_WRAW.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_wraw.pro
% Compiled module: CMSV_WCOMM.
% Compiled module: CMSV_WHEAP.
% Compiled module: CMSV_WSTAMP.
% Compiled module: CMSV_WVERSION.
% Compiled module: CMSV_WIDENT.
% Compiled module: CMSV_WNOTICE.
% Compiled module: CMSV_WREC.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_wrec.pro
% Compiled module: CMSV_WARRDESC.
% Compiled module: CMSV_WSTRUCTDESC.
% Compiled module: CMSV_WVTYPE.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsv_wvtype.pro
% Warning: Keyword parameter IS_FUNCTION not supported in call to:
RESOLVE_ROUTINE. Ignored.
% Compiled module: CMSVLIB.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsvlib.pro
% Compiled module: CMSVREAD.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsvread.pro
% Compiled module: CMSVWRITE.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/cmsvwrite.pro
% Warning: Keyword parameter IS_FUNCTION not supported in call to:
RESOLVE_ROUTINE. Ignored.
% Compiled module: TAGSIZE.
% RESOLVE_ROUTINE: Compiled file:
/opt/idl/liblocal/astron/markwardt/tagsize.pro
% Warning: Keyword parameter IS_FUNCTION not supported in call to:
RESOLVE_ROUTINE. Ignored.
% Compiled module: HELPFORM.
% RESOLVE_ROUTINE: Compiled file:
/usr/local/share/gnudatalanguage/lib/helpform.pro
CMSV_TEST - $Id: cmsv_test.pro,v 1.11 2012/04/05 20:43:09 cmarkwar Exp $
CMSVLIB library version 1.7
---------------------------------------
Wed Jan 30 00:14:29 2013
** Structure !VERSION, 8 tags, data length=64:
ARCH STRING 'x86_64'
OS_FAMILY STRING 'unix'
OS STRING 'linux'
OS_NAME STRING 'linux'
RELEASE STRING '6.0'
BUILD_DATE STRING 'Jan 28 2013'
MEMORY_BITS INT 64
FILE_OFFSET_BITS
INT 64
Testing SAVE and RESTORE...
SAVEing data...% Compiled module: STR_SEP.
done
RESTOREing data...% Compiled module: RESTORE.
% Compiled module: UNIT.
% OPENR: Unit already open. Unit: 0
% Error occurred at: CMSV_OPEN 206
/opt/idl/liblocal/astron/markwardt/cmsv_open.pro
% CMRESTORE 411
/opt/idl/liblocal/astron/markwardt/cmrestore.pro
% RESTORE 103
/usr/local/share/gnudatalanguage/lib/restore.pro
% CMSV_TEST 291
/opt/idl/liblocal/astron/markwardt/cmsv_test.pro
% $MAIN$
FAILED



Date: 2013-01-28 01:18:58 PST
Sender: alaingdl

Hum, I frequently use the CMSV lib., without troubles since a while.
Could you run "cmsv_test", which is a part of the Lib ?

I just tested without trouble an old version (2009) and a very recent
(2012)

Alain

PS: with recent versions, wyou can have the version number with
cmrestore, version=version1
or
cmsave, version=version2
I have v1 =1.22 and v2=1.16




Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
close_date - 2013-01-30 10:47:20 PST gilles-duvert
resolution_id None 2013-01-30 10:47:20 PST gilles-duvert
status_id Open 2013-01-30 10:47:20 PST gilles-duvert