Skip to content

Commit 79a5e91

Browse files
Reset envelopes before requesting a batch
This prevents a segfault when filtering 16 to 8 bit data.
1 parent 67b00c8 commit 79a5e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isyntax2raw/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,10 +729,10 @@ def write_tile(
729729
[self.tile_width, self.tile_height],
730730
tile_directory
731731
)
732-
envelopes = self.data_envelopes(image, resolution)
733732
jobs = []
734733
with MaxQueuePool(ThreadPoolExecutor, self.max_workers) as pool:
735734
for i in range(0, len(patches), self.batch_size):
735+
envelopes = self.data_envelopes(image, resolution)
736736
# requestRegions(
737737
# self: pixelengine.PixelEngine.View,
738738
# region: List[List[int]],

0 commit comments

Comments
 (0)