Skip to content

Commit 8086468

Browse files
authored
main: switch on faulthandler (Comfy-Org#12868)
When we get segfault bug reports we dont get much. Switch on pythons inbuilt tracer for segfault.
1 parent 535c16c commit 8086468

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import itertools
1313
import utils.extra_config
1414
from utils.mime_types import init_mime_types
15+
import faulthandler
1516
import logging
1617
import sys
1718
from comfy_execution.progress import get_progress_state
@@ -26,6 +27,8 @@
2627

2728
setup_logger(log_level=args.verbose, use_stdout=args.log_stdout)
2829

30+
faulthandler.enable(file=sys.stderr, all_threads=False)
31+
2932
import comfy_aimdo.control
3033

3134
if enables_dynamic_vram():

0 commit comments

Comments
 (0)