Repository: stable-diffusion-webui
Issue: [Bug]: After using mode or extensions the Pythons crashed and can't work even I restart my laptop ( M2 ) Mode change is also not working 
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

This issue HAS HAPPENED I KNOW

**I want to get a more clearly response for solving this Problem**

First there are the MODE and Extension I INSTAL ：

1st:  A translate Extension : https://github.com/journey-ad/sd-webui-bilingual-localization

2nd: A Anime MODE :  https://civitai.com/models/160827/x2-anime-yuan-final

These are all thins I instal

The AI was successfully run before but it suddenly lost connected with Python and then the system told me that the Python was crashed 


I've face this problem several times the things I only could do is just delete all the things include pip and python the all document of the Stable Diffusion and then install it again

But after using for several times this bug will come again 

And I also can't change the mode


### Steps to reproduce the problem

To open the AI I have create a way to open it more convenient:

tell application "Terminal"
    activate
    do script "cd stable-diffusion-webui"
    delay 2
    do script "./webui.sh" in window 1
end tell

This will help you open it easily

Then I went to the web UI

But as I click any button of the WebUI , it will give me no response for a longtime and then disconnect and Python crashed 

All crashed

### What should have happened?

As I click the button of the WebUI they give me no response for a longtime

And then the WebUI told me that that has lost connect ( disconnect ) 

After that I received the crashed log of the Python which is from the system

As I restart the system it's still not working as same as before




### Sysinfo

[sysinfo-2023-11-05-06-43 (4).txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13258800/sysinfo-2023-11-05-06-43.4.txt)

[Python Crashed.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13258826/Python.Crashed.txt)

[Can't change mode.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13258849/Can.t.change.mode.txt)


### What browsers do you use to access the UI ?

Microsoft Edge

### Console logs

```Shell
Last login: Sun Nov  5 00:21:14 on ttys001

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
cd stable-diffusion-webui
YanSundeMacBook-Air:~ yansun$ cd stable-diffusion-webui
YanSundeMacBook-Air:stable-diffusion-webui yansun$ ./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on yansun user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]
Version: v1.6.0-2-g4afaaf8a
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Launching Web UI with arguments: --skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
dirname:  /Users/yansun/stable-diffusion-webui/localizations
localizations:  {'zh_CN': '/Users/yansun/stable-diffusion-webui/localizations/zh_CN.json'}
Loading weights [aa1ceadd7a] from /Users/yansun/stable-diffusion-webui/models/Stable-diffusion/x2AnimeFinal_m1.safetensors
Creating model from config: /Users/yansun/stable-diffusion-webui/repositories/generative-models/configs/inference/sd_xl_base.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 4.6s (import torch: 1.6s, import gradio: 0.5s, setup paths: 0.5s, other imports: 0.5s, load scripts: 0.2s, reload hypernetworks: 0.1s, initialize extra networks: 0.1s, create ui: 0.5s, gradio launch: 0.3s).
-[IOGPUMetalCommandBuffer validate]:215: failed assertion `commit an already committed command buffer'
./webui.sh: line 255:  1779 Abort trap: 6           "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
```


### Additional information


[Can't change mode.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13258854/Can.t.change.mode.txt)


[Python Crashed.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13258857/Python.Crashed.txt)


[sysinfo-2023-11-05-06-49.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13258860/sysinfo-2023-11-05-06-49.txt)

No others