Iceyy4400 commited on
Commit
cda19bc
·
verified ·
1 Parent(s): af46e2a

Skip add_extra_model_paths(): its main.py import triggers a comfy-aimdo cuInit probe that corrupts CUDA state and segfaults the ZeroGPU worker fork

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -4269,7 +4269,16 @@ def initialize_pipeline() -> None:
4269
  return
4270
 
4271
  bootstrap_comfyui_runtime()
4272
- add_extra_model_paths()
 
 
 
 
 
 
 
 
 
4273
  import_custom_nodes()
4274
 
4275
  from nodes import (
 
4269
  return
4270
 
4271
  bootstrap_comfyui_runtime()
4272
+ # Deliberately skip add_extra_model_paths(): it falls back to
4273
+ # `from main import load_extra_path_config`, which runs ALL of main.py's
4274
+ # top-level code as a side effect - including a comfy-aimdo DynamicVRAM
4275
+ # cuInit() probe. That probe fails harmlessly on its own (no real GPU in
4276
+ # this process yet under ZeroGPU) but corrupts this process's CUDA driver
4277
+ # state, which segfaults the moment ZeroGPU later forks a worker that
4278
+ # does real CUDA init on an actual GPU. We don't ship an
4279
+ # extra_model_paths.yaml anyway (download_models() places everything
4280
+ # directly under the right ComfyUI/models/<category> folder), so this
4281
+ # call was a no-op for us except for triggering that crash.
4282
  import_custom_nodes()
4283
 
4284
  from nodes import (