AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.98k stars 26.82k forks source link

[Bug]: error during generation werfault.exe 0xc000012d #16423

Closed Kirpich56 closed 2 months ago

Kirpich56 commented 2 months ago

Checklist

What happened?

I'm using lora to generate an image, 95% of the time the browser breaks down and an error appears werfault.exe 0xc000012d Lora Everlasting Summer Zhenya by GraffMetal

Steps to reproduce the problem

  1. Using Lora
  2. Generation by any prompt

What should have happened?

You should get a picture after generation

What browsers do you use to access the UI ?

No response

Sysinfo

"Platform": "Windows-10-10.0.19045-SP0", "Python": "3.10.0", "Version": "v1.10.1", "Commit": "82a973c04367123ae98bd9abdf80d9eda9b910e2", "Git status": "On branch master\nYour branch is up to date with 'origin/master'.\n\nChanges not staged for commit:\n (use \"git add ...\" to update what will be committed)\n (use \"git restore ...\" to discard changes in working directory)\n\tmodified: webui-user.bat\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")", "Script path": "C:\StableDiffusion\stable-diffusion-webui", "Data path": "C:\StableDiffusion\stable-diffusion-webui", "Extensions dir": "C:\StableDiffusion\stable-diffusion-webui\extensions", "Checksum": "b83aeb02f21ad76258564361a836c6e170c9dd80faf9fd6002bf06e61ccae836", "Commandline": [ "launch.py", "--xformers", "--opt-sdp-attention", "--upcast-sampling", "--no-hashing", "--always-batch-cond-uncond", "--medvram" ], "Torch env info": { "torch_version": "2.1.2+cu121", "is_debug_build": "False", "cuda_compiled_version": "12.1", "gcc_version": null, "clang_version": null, "cmake_version": null, "os": "Майкрософт Windows 10 Домашняя", "libc_version": "N/A", "python_version": "3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)] (64-bit runtime)", "python_platform": "Windows-10-10.0.19045-SP0", "is_cuda_available": "True", "cuda_runtime_version": null, "cuda_module_loading": "LAZY", "nvidia_driver_version": "546.33", "nvidia_gpu_models": "GPU 0: NVIDIA GeForce GTX 1660 SUPER", "cudnn_version": null, "pip_version": "pip3", "pip_packages": [ "numpy==1.26.2", "open-clip-torch==2.20.0", "pytorch-lightning==1.9.4", "torch==2.1.2+cu121", "torchdiffeq==0.2.3", "torchmetrics==1.4.1", "torchsde==0.2.6", "torchvision==0.16.2+cu121" ], "conda_packages": null, "hip_compiled_version": "N/A", "hip_runtime_version": "N/A", "miopen_runtime_version": "N/A", "caching_allocator_config": "garbage_collection_threshold:0.9,max_split_size_mb:512", "is_xnnpack_available": "True", "cpu_info": [ "Architecture=9", "CurrentClockSpeed=3501", "DeviceID=CPU0", "Family=198", "L2CacheSize=1024", "L2CacheSpeed=", "Manufacturer=GenuineIntel", "MaxClockSpeed=3501", "Name=Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz", "ProcessorType=3", "Revision=14857" ] }, "Exceptions": [], "CPU": { "model": "Intel64 Family 6 Model 58 Stepping 9, GenuineIntel", "count logical": 8, "count physical": 4 }, "RAM": { "total": "8GB", "used": "5GB", "free": "3GB" }, "Extensions": [], "Inactive extensions": [], "Environment": { "COMMANDLINE_ARGS": "--xformers --opt-sdp-attention --upcast-sampling --no-hashing --always-batch-cond-uncond --medvram", "GRADIO_ANALYTICS_ENABLED": "False" }, "Config": { "ldsr_steps": 100, "ldsr_cached": false, "SCUNET_tile": 256, "SCUNET_tile_overlap": 8, "SWIN_tile": 192, "SWIN_tile_overlap": 8, "SWIN_torch_compile": false, "hypertile_enable_unet": false, "hypertile_enable_unet_secondpass": false, "hypertile_max_depth_unet": 3, "hypertile_max_tile_unet": 256, "hypertile_swap_size_unet": 3, "hypertile_enable_vae": false, "hypertile_max_depth_vae": 3, "hypertile_max_tile_vae": 128, "hypertile_swap_size_vae": 3, "sd_model_checkpoint": "autismmixSDXL_autismmixPony.safetensors [821aa5537f]", "sd_checkpoint_hash": "821aa5537f8ddafdbf963827551865c31c5bbfab1abe7925cb5f006c8f71e485" }, "Startup": { "total": 28.416757822036743, "records": { "initial startup": 0.05522894859313965, "prepare environment/checks": 0.01615309715270996, "prepare environment/git version info": 0.14559125900268555, "prepare environment/torch GPU test": 7.662805080413818, "prepare environment/clone repositores": 0.3027527332305908, "prepare environment/run extensions installers": 0.0024504661560058594, "prepare environment": 8.22752571105957, "launcher": 0.00488591194152832, "import torch": 7.3306050300598145, "import gradio": 2.997941493988037, "setup paths": 3.0106570720672607, "import ldm": 0.016428232192993164, "import sgm": 0.0, "initialize shared": 0.6664214134216309, "other imports": 1.7067046165466309, "opts onchange": 0.0, "setup SD model": 0.0009996891021728516, "setup codeformer": 0.003007650375366211, "setup gfpgan": 0.04252219200134277, "set samplers": 0.0, "list extensions": 0.004396200180053711, "restore config state file": 0.0, "list SD models": 0.05798220634460449, "list localizations": 0.001999378204345703, "load scripts/custom_code.py": 0.016994953155517578, "load scripts/img2imgalt.py": 0.0009992122650146484, "load scripts/loopback.py": 0.0010013580322265625, "load scripts/outpainting_mk_2.py": 0.0015349388122558594, "load scripts/poor_mans_outpainting.py": 0.0010027885437011719, "load scripts/postprocessing_codeformer.py": 0.0010006427764892578, "load scripts/postprocessing_gfpgan.py": 0.0011854171752929688, "load scripts/postprocessing_upscale.py": 0.0008199214935302734, "load scripts/prompt_matrix.py": 0.0010037422180175781, "load scripts/prompts_from_file.py": 0.0010025501251220703, "load scripts/sd_upscale.py": 0.0020008087158203125, "load scripts/xyz_grid.py": 0.003996610641479492, "load scripts/ldsr_model.py": 1.4831657409667969, "load scripts/lora_script.py": 0.3317122459411621, "load scripts/scunet_model.py": 0.05398273468017578, "load scripts/swinir_model.py": 0.050981998443603516, "load scripts/hotkey_config.py": 0.0009419918060302734, "load scripts/extra_options_section.py": 0.0020029544830322266, "load scripts/hypertile_script.py": 0.09596848487854004, "load scripts/postprocessing_autosized_crop.py": 0.0009999275207519531, "load scripts/postprocessing_caption.py": 0.0009987354278564453, "load scripts/postprocessing_create_flipped_copies.py": 0.0012624263763427734, "load scripts/postprocessing_focal_crop.py": 0.004714488983154297, "load scripts/postprocessing_split_oversized.py": 0.0009984970092773438, "load scripts/soft_inpainting.py": 0.0009987354278564453, "load scripts/comments.py": 0.04698753356933594, "load scripts/refiner.py": 0.0007231235504150391, "load scripts/sampler.py": 0.001003265380859375, "load scripts/seed.py": 0.0010006427764892578, "load scripts": 2.1109864711761475, "load upscalers": 0.008245229721069336, "refresh VAE": 0.004211902618408203, "refresh textual inversion templates": 0.0006375312805175781, "scripts list_optimizers": 0.0019085407257080078, "scripts list_unets": 0.0, "reload hypernetworks": 0.0009999275207519531, "initialize extra networks": 0.07018423080444336, "scripts before_ui_callback": 0.014822006225585938, "create ui": 1.0407750606536865, "gradio launch": 1.1156854629516602, "add APIs": 0.01899409294128418, "app_started_callback/lora_script.py": 0.0009999275207519531, "app_started_callback": 0.0009999275207519531 } }, "Packages": [ "accelerate==0.21.0", "aenum==3.1.15", "aiofiles==23.2.1", "aiohappyeyeballs==2.4.0", "aiohttp==3.10.5", "aiosignal==1.3.1", "altair==5.4.0", "antlr4-python3-runtime==4.9.3", "anyio==3.7.1", "async-timeout==4.0.3", "attrs==24.2.0", "blendmodes==2022", "certifi==2024.7.4", "charset-normalizer==3.3.2", "clean-fid==0.1.35", "click==8.1.7", "clip @ https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip#sha256=b5842c25da441d6c581b53a5c60e0c2127ebafe0f746f8e15561a006c6c3be6a", "colorama==0.4.6", "contourpy==1.2.1", "cycler==0.12.1", "deprecation==2.1.0", "diskcache==5.6.3", "einops==0.4.1", "exceptiongroup==1.2.2", "facexlib==0.3.0", "fastapi==0.94.0", "ffmpy==0.4.0", "filelock==3.15.4", "filterpy==1.4.5", "fonttools==4.53.1", "frozenlist==1.4.1", "fsspec==2024.6.1", "ftfy==6.2.3", "gitdb==4.0.11", "GitPython==3.1.32", "gradio==3.41.2", "gradio_client==0.5.0", "h11==0.12.0", "httpcore==0.15.0", "httpx==0.24.1", "huggingface-hub==0.24.6", "idna==3.8", "imageio==2.35.1", "importlib_resources==6.4.4", "inflection==0.5.1", "Jinja2==3.1.4", "jsonmerge==1.8.0", "jsonschema==4.23.0", "jsonschema-specifications==2023.12.1", "kiwisolver==1.4.5", "kornia==0.6.7", "lark==1.1.2", "lazy_loader==0.4", "lightning-utilities==0.11.6", "llvmlite==0.43.0", "MarkupSafe==2.1.5", "matplotlib==3.9.2", "mpmath==1.3.0", "multidict==6.0.5", "narwhals==1.5.5", "networkx==3.3", "numba==0.60.0", "numpy==1.26.2", "omegaconf==2.2.3", "open-clip-torch==2.20.0", "opencv-python==4.10.0.84", "orjson==3.10.7", "packaging==24.1", "pandas==2.2.2", "piexif==1.1.3", "Pillow==9.5.0", "pillow-avif-plugin==1.4.3", "pip==24.2", "protobuf==3.20.0", "psutil==5.9.5", "pydantic==1.10.18", "pydub==0.25.1", "pyparsing==3.1.4", "python-dateutil==2.9.0.post0", "python-multipart==0.0.9", "pytorch-lightning==1.9.4", "pytz==2024.1", "PyWavelets==1.7.0", "PyYAML==6.0.2", "referencing==0.35.1", "regex==2024.7.24", "requests==2.32.3", "resize-right==0.0.2", "rpds-py==0.20.0", "safetensors==0.4.2", "scikit-image==0.21.0", "scipy==1.14.1", "semantic-version==2.10.0", "sentencepiece==0.2.0", "setuptools==69.5.1", "six==1.16.0", "smmap==5.0.1", "sniffio==1.3.1", "spandrel==0.3.4", "spandrel_extra_arches==0.1.1", "starlette==0.26.1", "sympy==1.13.2", "tifffile==2024.8.10", "timm==1.0.9", "tokenizers==0.13.3", "tomesd==0.1.3", "torch==2.1.2+cu121", "torchdiffeq==0.2.3", "torchmetrics==1.4.1", "torchsde==0.2.6", "torchvision==0.16.2+cu121", "tqdm==4.66.5", "trampoline==0.1.2", "transformers==4.30.2", "typing_extensions==4.12.2", "tzdata==2024.1", "urllib3==2.2.2", "uvicorn==0.30.6", "wcwidth==0.2.13", "websockets==11.0.3", "xformers==0.0.23.post1", "yarl==1.9.4" ] }

Console logs

cmd is broken and windows system is buggy when an error occurs werfault.exe 0xc000012d

Additional information

No response

w-e-w commented 2 months ago

the "browser" breaks down and an error appears werfault.exe 0xc000012d

based on my search about 0xc000012d, this is an error cause by something outside of webUI seems likely due to corruption of some resource files that the application uses or lack or RAM furthermore you've specified that the browser is the one that is breaking, which increase the likelihood that the issue is not with webui itself

I would attempt some fix methods like

do your own research do not trust the instructions blindly

https://windowsreport.com/0xc000012d/ https://answers.microsoft.com/en-us/windows/forum/all/what-is-the-application-was-unable-to-start/00d8bfa6-63dd-4b42-863c-9818052cec7f https://answers.microsoft.com/en-us/windows/forum/all/werfaultexe-has-completely-broken-my-pc/fd938c8b-ec5e-4c41-abb5-fe605249008e reinstalling your browser webui python drivers and anything relevant restoring or a fresh install you OS

if the issue is caused by lack of ram you might try increasing your virtual memory or best upgrade your memory

windows really have hard time running on only 8 GB