Browse Source

Try not to swallow stacktraces when terminating a process.

looper
Ben Niemann 6 years ago
parent
commit
4261864f97
  1. 2
      noisicaa/audioproc/pipeline.py
  2. 2
      noisicaa/core/process_manager.py
  3. 2
      noisicaa/ui/editor_app.py

2
noisicaa/audioproc/pipeline.py

@ -200,7 +200,9 @@ class Pipeline(object):
ctxt.duration = self._frame_size
except: # pylint: disable=bare-except
sys.stdout.flush()
sys.excepthook(*sys.exc_info())
sys.stderr.flush()
os._exit(1)
finally:

2
noisicaa/core/process_manager.py

@ -370,6 +370,8 @@ class ProcessImpl(object):
def error_handler(self, event_loop, context):
event_loop.default_exception_handler(context)
sys.stdout.flush()
sys.stderr.flush()
os._exit(1)
def main(self, ready_callback, *args, **kwargs):

2
noisicaa/ui/editor_app.py

@ -379,5 +379,7 @@ class EditorApp(BaseEditorApp):
logger.error(
"Failed to show crash dialog: %s", traceback.format_exc())
sys.stdout.flush()
sys.stderr.flush()
os._exit(EXIT_EXCEPTION)

Loading…
Cancel
Save