From f3ac824a3e8238b34f16dba615940665d922ebb3 Mon Sep 17 00:00:00 2001 From: k-dominik Date: Thu, 26 Oct 2023 16:19:00 +0200 Subject: [PATCH] stop hiding exceptions excepthook was used before 2b09109b478a7f30787d9cecbad01ce82812a671 that claims segfaults being cause by it. Could not reproduce segfaults - and rather have an error message popping up. Otherwise in case of exception somewhere along the chain, ilastik looks like it's doing nothing and one wouldn't know. --- volumina/pixelpipeline/datasources/lazyflowsource.py | 7 +++---- volumina/tiling/__init__.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/volumina/pixelpipeline/datasources/lazyflowsource.py b/volumina/pixelpipeline/datasources/lazyflowsource.py index ac03dd68b..b7d78d86e 100644 --- a/volumina/pixelpipeline/datasources/lazyflowsource.py +++ b/volumina/pixelpipeline/datasources/lazyflowsource.py @@ -46,7 +46,7 @@ def wrapper(*args, **kwargs): return func(*args, **kwargs) except Slot.SlotNotReadyError as ex: # Translate lazyflow not-ready errors into the volumina equivalent. - raise_with_traceback(IndeterminateRequestError(ex)).with_traceback(sys.exc_info()[2]) + raise IndeterminateRequestError() from ex wrapper.__wrapped__ = func # Emulate python 3 behavior of @functools.wraps return wrapper @@ -105,11 +105,10 @@ def __init__(self, outslot, priority=0): # Attach an OpReorderAxes to ensure the data will display correctly # (We include the graph parameter, too, since tests sometimes provide an operator with no parent.) - self._op5 = opReorderAxes.OpReorderAxes( - parent=outslot.operator.parent, graph=outslot.operator.graph - ) + self._op5 = opReorderAxes.OpReorderAxes(parent=outslot.operator.parent, graph=outslot.operator.graph) self._op5.Input.connect(outslot) self._op5.AxisOrder.setValue("txyzc") + self._op5.name = "reorder_lazyflow_source_to_volumina" self._priority = priority self._dirtyCallback = partial(weakref_setDirtyLF, weakref.ref(self)) diff --git a/volumina/tiling/__init__.py b/volumina/tiling/__init__.py index d552975d9..608ba378d 100644 --- a/volumina/tiling/__init__.py +++ b/volumina/tiling/__init__.py @@ -553,7 +553,7 @@ def _fetch_layer_tile(self, timestamp, ims, transform, tile_nr, stack_id, ims_re if stack_id == self._current_stack_id and cache is self._cache: self.sceneRectChanged.emit(tile_rect) except BaseException: - logger.debug("Failed to fetch layer tile", exc_info=True) + raise def _onLayerDirty(self, dirtyImgSrc, dataRect): """