Re: [gdal-dev] Missing exception when using multithread=True for gdal.Warp

2025-03-04 Thread Tim Harris via gdal-dev
Thanks Even! On Tue, Mar 4, 2025 at 7:51 AM Even Rouault wrote: > Tim, > > wil be solved (in 3.11 only) per https://github.com/OSGeo/gdal/pull/11915 > > In the meantime, check for gdal.Warp() return value: if None, an error > occurred > > Even > Le 01/03/2025 à 01:00, Tim Harris via gdal-dev a é

Re: [gdal-dev] Missing exception when using multithread=True for gdal.Warp

2025-03-04 Thread Even Rouault via gdal-dev
Tim, wil be solved (in 3.11 only) per https://github.com/OSGeo/gdal/pull/11915 In the meantime, check for gdal.Warp() return value: if None, an error occurred Even Le 01/03/2025 à 01:00, Tim Harris via gdal-dev a écrit : Hi, I'm having some trouble warping a VRT to a TIF where the VRT and i

Re: [gdal-dev] Missing exception when using multithread=True for gdal.Warp

2025-03-01 Thread Javier Jimenez Shaw via gdal-dev
I'm trying to debug it in my machine. But after building in debug mode enabling the environment with . ../scripts/setdevenv.sh the exceptions are not thrown any more in python (neither with multithread=False) On Sat, 1 Mar 2025 at 19:56, Sean Gillies via gdal-dev < gdal-dev@lists.osgeo.org> wrote:

Re: [gdal-dev] Missing exception when using multithread=True for gdal.Warp

2025-03-01 Thread Tim Harris via gdal-dev
Aha, yes, it does appear to happen just with local files. In my attempts to create a reproduce case yesterday, I overlooked that part. I did try it early on but just with a single TIF in the VRT, in which case it does the right thing and raises an exception. But with two TIFs and one missing, it be

Re: [gdal-dev] Missing exception when using multithread=True for gdal.Warp

2025-03-01 Thread Sean Gillies via gdal-dev
Hi Tim, UseExceptions() might only affect your main thread. You may want to check in GDAL's code to see if this is the case. At any rate, you won't be able to handle Python exceptions that you might see raised from the warp threads. Hope this helps, On Sat, Mar 1, 2025 at 11:30 AM Tim Harris via

Re: [gdal-dev] Missing exception when using multithread=True for gdal.Warp

2025-03-01 Thread Javier Jimenez Shaw via gdal-dev
Does it also happen without S3, just with local files? It would simplify the analysis On Sat, 1 Mar 2025, 01:01 Tim Harris via gdal-dev, wrote: > Hi, I'm having some trouble warping a VRT to a TIF where the VRT and its > constituent rasters are in S3. It stems from a random read error, but the >

[gdal-dev] Missing exception when using multithread=True for gdal.Warp

2025-02-28 Thread Tim Harris via gdal-dev
Hi, I'm having some trouble warping a VRT to a TIF where the VRT and its constituent rasters are in S3. It stems from a random read error, but the real problem is that the gdal.Warp call didn't throw an exception when it was supposed to. I saw there's this pretty old GitHub issue that may be relat