Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

main: switch on faulthandler (#12868)

rattus8086468d2a1a
diff --git a/main.py b/main.py
index 83a7244db..8905fd09a 100644
--- a/main.py
+++ b/main.py
@@ -12,6 +12,7 @@ from app.logger import setup_logger
import itertools
import utils.extra_config
from utils.mime_types import init_mime_types
+import faulthandler
import logging
import sys
from comfy_execution.progress import get_progress_state
@@ -26,6 +27,8 @@ if __name__ == "__main__":
setup_logger(log_level=args.verbose, use_stdout=args.log_stdout)
+faulthandler.enable(file=sys.stderr, all_threads=False)
+
import comfy_aimdo.control
if enables_dynamic_vram():