-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERS files with ECW connections in their headers fail to open, due to "Attempt at recursively opening ERS dataset" failure. #9352
Comments
Please attach a dataset that can be used to reproduce the issue |
For some reason my gdalinfo knows what to do. Maybe because I have ECW on the top on the format list.
EDIT
|
rouault
added a commit
that referenced
this issue
Mar 5, 2024
ERS: avoid 'Attempt at recursively opening ERS dataset' when the .ers file references a .ecw (fixes #9352)
rouault
added a commit
that referenced
this issue
Mar 5, 2024
… file references a .ecw (fixes #9352) The issue was no longer reproducible in master/3.9dev due to the https://gdal.org/development/rfc/rfc96_deferred_plugin_loading.html change, but was still somehow latent. This commit fixes the issue in the 3.8 branch
rouault
added a commit
that referenced
this issue
Mar 5, 2024
[Backport release/3.8] ERS: avoid 'Attempt at recursively opening ERS dataset' when the .ers file references a .ecw (fixes #9352)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using GDALOpen to load an ERS file.
ERSDataset opens the file then finds that the DataSetType is Translated.
This then calls another GDALOpen within the driver, attempting to open an ECW file.
When checking each driver, looking for the ECW one, it hits the ERS one again which triggers the "Attempt at recursively opening ERS dataset" error.
Then because this is an error, the entire GDALOpen process fails.
I think this would not happen if this recursion check in ERSDataset::Open would occur after the Identify check, so only check for recursion if trying to load an ERS file.
Also this is only happening because the ECW driver is after the ERS driver in the driver list. Not sure if there is a way to change this order.
The text was updated successfully, but these errors were encountered: