You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW I saw this issue apache/arrow-rs-object-store#343 which linked to this upstream issue rust-lang/rust#136932. When I was debugging this issue, I remember seeing a panic somewhere with u16::Display. I was super confused at the time, but I'm curious if maybe this was a regression with rustc? Maybe we should test with another rust version
Tested on rust 1.86 and 1.87, getting the same hang behaviour on both so don't think it's related to those issues. I can reproduce this purely on the rust side too (when working on #101 (comment)), so at least we can deduce that it's not something with pyo3.
I'm not sure why this is so slow, but it seems each cursor.read_u32().await? takes time. Maybe it can fetch values by batch to improve the performance? (I don't know well about the internals. Sorry if it already does!)
Activity
[-]Improve data loading using HTTPStore[/-][+]Tokio hangs when opening TIFF[/+]kylebarron commentedon May 1, 2025
FWIW I saw this issue apache/arrow-rs-object-store#343 which linked to this upstream issue rust-lang/rust#136932. When I was debugging this issue, I remember seeing a panic somewhere with
u16::Display. I was super confused at the time, but I'm curious if maybe this was a regression with rustc? Maybe we should test with another rust versionweiji14 commentedon May 22, 2025
Tested on rust 1.86 and 1.87, getting the same hang behaviour on both so don't think it's related to those issues. I can reproduce this purely on the rust side too (when working on #101 (comment)), so at least we can deduce that it's not something with pyo3.
kylebarron commentedon May 22, 2025
Yeah... I'm kinda stumped about this hanging 😔
yutannihilation commentedon Nov 21, 2025
After some very primitive print debugging around this function, I found the process doesn't actually hang but it's just slow.
async-tiff/src/metadata/reader.rs
Lines 257 to 280 in fac684f
The fifth tag (and similar tags will come after this) is of 40,000 values.
I'm not sure why this is so slow, but it seems each
cursor.read_u32().await?takes time. Maybe it can fetch values by batch to improve the performance? (I don't know well about the internals. Sorry if it already does!)async-tiff/src/metadata/reader.rs
Lines 532 to 538 in fac684f
yutannihilation commentedon Nov 22, 2025
Regarding the batch reading (while this might not matter much), this is my attempt in case this is useful.
main...yutannihilation:async-tiff:tmp
kylebarron commentedon Nov 23, 2025
Thanks for helping track down these bugs!
Indeed the issue here was that we're making too many individual requests once the PrefetchBuffer wasn't enough data in the cache.
I validated that #140 fixes this issue:
This takes 3 seconds to open the tiff (on moderate internet from New Zealand), so I think we can consider this fixed.
Aside from the unit tests we're adding in #140 , I'm not sure the best way to test this, because we can't really add public HTTP tests directly on CI
feefladder commentedon Jan 23, 2026
...sounds like a #76 issue