Opened 11 years ago

Closed 6 years ago

#5117 closed defect (worksforme)

GdalIO: Unable to save auxilary information in /vsisubfile/3884_523961306,/path/to/file

Reported by: olegalexandrov Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 1.10.0
Severity: normal Keywords:
Cc: antonio

Description

I get the following error when using gdal:

GdalIO: Unable to save auxilary information in /vsisubfile/3884_523961306,/path/to/file.aux.xml

Here's what happens to the best of my knowledge:

The function int CPLSerializeXMLTreeToFile( const CPLXMLNode *psTree, const char *pszFilename ) is called. That function forgets to call VSISubFileFilesystemHandler::DecomposePath() to parse the above string and extract the proper file name.

Here's the gdb backtrace:

#0 GDALPamDataset::TrySaveXML (this=0x11840f0) at gdalpamdataset.cpp:918 #1 0x00007ffe3d2d73bc in JP2OpenJPEGDataset::~JP2OpenJPEGDataset (this=0x1184298,

in_chrg=<value optimized out>) at openjpegdataset.cpp:866

#2 0x00007ffe3d2d735f in JP2OpenJPEGDataset::CloseDependentDatasets (this=0xaaa1c0) at openjpegdataset.cpp:891 #3 0x00007ffe3d2d7408 in JP2OpenJPEGDataset::~JP2OpenJPEGDataset (this=0xaaa1c0,

in_chrg=<value optimized out>) at openjpegdataset.cpp:878

#4 0x00007ffe3d386774 in GDALClose (hDS=0xaaa1c0) at gdaldataset.cpp:2473 #5 0x00007ffe3d2b68cf in NITFDataset::CloseDependentDatasets (this=0x8b7660) at nitfdataset.cpp:168 #6 0x00007ffe3d2b6abc in NITFDataset::~NITFDataset (this=0x1184298, in_chrg=<value optimized out>)

at nitfdataset.cpp:107

#7 0x00007ffe3d386774 in GDALClose (hDS=0x8b7660) at gdaldataset.cpp:2473

Change History (5)

comment:1 by antonio, 11 years ago

Cc: antonio added

comment:2 by Even Rouault, 11 years ago

Could you give a way of reproducing this ? I've tried opening a NITF with JPEG2000 datastream (with the JP2OpenJPEG driver enabled) and close it, but didn't see the error message.

The "GdalIO: " prefix in the error message is also unknown to me. This is not part of GDAL, but from calling code perhaps ?

comment:3 by Jukka Rahkonen, 9 years ago

Resolution: invalid
Status: newclosed

I fear that without the information that Even asked this issue can't be solved.

comment:4 by olegalexandrov, 9 years ago

Resolution: invalid
Status: closedreopened

Folks, I am sorry for letting this slide. The warning shows up if I ran gdal_translate. I have a testcase for you. It is a proprietary 500 MB WorldView Digital Globe NTF file, as the issue cannot be reproduced on a cropped version of it. I can pass it to one of you, but not publicly as this data cannot be re-distributed. Let me know how I can share this. The problem shows up with GDAL 1.10.1, but I would guess newer versions are sussceptible to it as well. Thank you.

comment:5 by Even Rouault, 6 years ago

Resolution: worksforme
Status: reopenedclosed

Cannot reproduce with a Digital Globe JPE2000 compressed NTF and trunk

Note: See TracTickets for help on using tickets.