`rust future panicked: unknown error` when opening TIFF files
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- computer-vision
Research direction
Start by running the supplied Python MVCE with async_tiff.TIFF.open and LocalStore, changing file_id across the listed GDAL TIFFs to identify the panic pattern. Trace the Rust error path reached by these inputs and verify that each case returns normally or a regular error instead of rust future panicked: unknown error.
Written by the indexing model from the issue text.
Description
Here is an MVCE for rust panics I encountered when building virtual_tiff. The TIFFs are from GDAL's test suite. You can change file_id to switch which TIFF is being opened.
import obstore as obs
from async_tiff import TIFF
from async_tiff.store import LocalStore
import os
import asyncio
# Set which file to run the test on
file_id = 0
# Download file
store = obs.store.HTTPStore.from_url("https://dagshub.com")
panics = [
("gdal_gcore", "huge-number-strips.tif"),
("gdal_gcore", "byte_user_defined_geokeys.tif"),
("gdal_gcore", "minimum_tiff_tags_no_warning.tif"),
("gdal_gcore", "uint16_sgilog.tif"),
("gdal_gcore", "corrupted_gtiff_tags.tif"),
("gdal_gcore", "gtiff_towgs84_override.tif"),
("gdal_gcore", "minimum_tiff_tags_with_warning.tif"),
("gdal_gcore", "bigtiff_header_extract.tif"),
("gdal_gcore", "spaf27_markedcorrect.tif"),
("gdal_gcore", "huge-implied-number-strips.tif"),
("gdal_gcore", "excessive-memory-TIFFFillStrip2.tif"),
("gdal_gcore", "packbits-not-enough-data.tif"),
("gdal_gcore", "excessive-memory-TIFFFillStrip.tif"),
("gdal_gcore", "byte_bigtiff_invalid_slong8_for_stripoffsets.tif"),
("gdal_gcore", "weird_mercator_2sp.tif"),
("gdal_gcore", "many_blocks_truncated.tif"),
("gdal_autotest", "epsg_27563_allgeokeys.tif"),
("gdal_autotest", "nodata_precision_issue_float32.tif"),
("gdal_autotest", "byte_coord_epoch.tif"),
("gdal_autotest", "projected_GTCitationGeoKey_with_underscore_and_GeogTOWGS84GeoKey.tif"),
("gdal_autotest", "nodata_precision_issue_float32.tif"),
("gdal_autotest", "missing_tilebytecounts_and_offsets.tif"),
]
path = f"maxrjones/virtual-tiff/raw/73934fbfb31cd5bb099f225a47ac8ea34298f3ea/tests/dvc/{panics[file_id][0]}/{panics[file_id][1]}"
resp = obs.get(store, path)
with open(panics[file_id][1], "wb") as f:
for chunk in resp:
f.write(chunk)
# Attempt to open file using async_tiff
async def open_tiff(*, store, path):
return await TIFF.open(path, store=store)
store = LocalStore()
filepath = f"{os.getcwd()}/{panics[file_id][1]}"
tiff = asyncio.run(open_tiff(store=store, path=filepath))
print(tiff)
- Dominant language
- Rust
- Stars
- 125
- Forks
- 17
- Avg merge
- 7h 33m
- Merged PRs (30d)
- 8
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/async-tiff
-
Panic on TIFFs that omit the SamplesPerPixel tag (spec default is 1)Possibly taken @TomNicholas claimed this 130 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
developmentseed/async-tiff#318 ·
-
duplicate
Difficulty 3/5 1-2 days Newbie friendliness 57/100
developmentseed/async-tiff#376 · 1 comment ·
-
Difficulty 3/5 Half a day Newbie friendliness 58/100
developmentseed/async-tiff#354 ·
-
Claude suggestions for performance focusPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 8/100
developmentseed/async-tiff#352 · 1 comment · 2 reactions ·
-
Make abi3t wheelsOpen
Difficulty 3/5 Half a day Newbie friendliness 22/100
developmentseed/async-tiff#350 ·
All issues in developmentseed/async-tiff
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
storytold/craft-anything#2472 ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsotto/sotto-authenticator#68 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
slavakurilyak/awesome-ai-agents#1046 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nowledge-co/hawdb#1995 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
swc-project/swc-next-issues#984 ·