Repository: stable-diffusion-webui
Issue: json.decoder.JSONDecodeError: Expecting value: line 14177 column 36 (char 897167)
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

after update the newest core 1.10.0, an old issue reccure

### Steps to reproduce the problem

laugh webui and the error wil show

### What should have happened?

before update, it was ok

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

```
SD-WebUI Launcher Diagnostic File

Date: 2024-08-09 22:54:08
Launcher Version: 2.8.5.353
Data File Version: 2024-08-08 12:20
SD-WebUI Version: 82a973c04367123ae98bd9abdf80d9eda9b910e2 (2024-07-27 20:49:39)
Working Directory: D:\sd-webui-aki-v4
------------------------
System Information: 
OS: Microsoft Windows NT 10.0.22631.0
CPU: 20 cores
Memory Size: 65536 MB
Page File Size: 65536 MB

NVIDIA Management Library:
  NVIDIA Driver Version: 560.81
  NVIDIA Management Library Version: 12.560.81

CUDA Driver:
  Version: 12060
  Devices: 
    00000000:01:00.0 0: NVIDIA GeForce RTX 3070 Laptop GPU [86] 16 GB

NvApi:
  Version: 56081 r560_78

HIP Driver:
  Not Available

DirectML Driver: 
  Devices: 
    9373 0: NVIDIA GeForce RTX 3070 Laptop GPU 15 GB
    39877 1: Intel(R) UHD Graphics 630 0 GB
    39877 2: Intel(R) UHD Graphics 630 0 GB
    39877 3: Intel(R) UHD Graphics 630 0 GB
    39877 4: Intel(R) UHD Graphics 630 0 GB

Intel Level Zero Driver:
  Drivers:
    000003018B383D000000000000000000 Driver 01030000 API 00010003
      Devices:
        Intel(R) UHD Graphics 630
          TYP 1
          VEN 00008086
          DEV 00009BC5
          FLG 7
          SDI 00000000
          CLK 1200
          ALC 4294959104
          UUID 00000002000000000000000000000001
          Memories:
            DDR (27405287424) CLK 0 BUS 64

------------------------
Environment Variables: 
CommonProgramFiles=C:\Program Files\Common Files
ProgramW6432=C:\Program Files
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
SHIM_MCCOMPAT=0x810000001
ComSpec=C:\Windows\system32\cmd.exe
OneDrive=C:\Users\jasoncow\OneDrive
USERDOMAIN=550W
USERNAME=jasoncow
NDI_RUNTIME_DIR_V3=C:\Program Files\NDI\NDI 5 Runtime\v5
NDI_RUNTIME_DIR_V5=C:\Program Files\NDI\NDI 5 Runtime\v5
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
ZES_ENABLE_SYSMAN=1
COMPUTERNAME=550W
LOGONSERVER=\\550W
windir=C:\Windows
PROCESSOR_ARCHITECTURE=AMD64
SDL_AUDIODRIVER=directsound
SystemDrive=C:
FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer
OPENCV_IO_ENABLE_OPENEXR=1
EFC_7164=1
FPS_BROWSER_USER_PROFILE_STRING=Default
CUDA_PATH_V11_8=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8
CUDA_HOME=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8
SESSIONNAME=Console
TMP=C:\Users\jasoncow\AppData\Local\Temp
ProgramFiles(x86)=C:\Program Files (x86)
CommonProgramW6432=C:\Program Files\Common Files
MIC_LD_LIBRARY_PATH=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\compiler\lib\mic
USERPROFILE=C:\Users\jasoncow
PROCESSOR_LEVEL=6
Path=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp;C:\Program Files\CMake\bin;D:\sd-webui-aki-v4\ninja;D:\Program Files\ffmpeg\bin;C:\Windows\System32;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\jasoncow\AppData\Local\Microsoft\WindowsApps;C:\Users\jasoncow\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\Hostx64\x64;C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.3.0\;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files\dotnet\;C:\Windows\System32\Wbem;C:\Program Files\Git\cmd;C:\Windows;C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR;D:\Programs\Python\Python310\Scripts;D:\Programs\Python\Python310;D:\Programs\Python\Launcher\;C:\WINDOWS\system32;C:\WINDOWS;C:\Users\jasoncow\.dotnet\tools;
PUBLIC=C:\Users\Public
OS=Windows_NT
CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
USERDOMAIN_ROAMINGPROFILE=550W
NDI_RUNTIME_DIR_V4=C:\Program Files\NDI\NDI 5 Runtime\v5
PROCESSOR_REVISION=a501
NVTOOLSEXT_PATH=C:\Program Files\NVIDIA Corporation\NvToolsExt\
ProgramFiles=C:\Program Files
APPDATA=C:\Users\jasoncow\AppData\Roaming
NDI_RUNTIME_DIR_V2=C:\Program Files\NDI\NDI 5 Runtime\v5
DriverData=C:\Windows\System32\Drivers\DriverData
TEMP=C:\Users\jasoncow\AppData\Local\Temp
INTEL_DEV_REDIST=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\
ProgramData=C:\ProgramData
HOMEDRIVE=C:
HOMEPATH=\Users\jasoncow
ALLUSERSPROFILE=C:\ProgramData
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 165 Stepping 1, GenuineIntel
NVIDIAWHITELISTED=0x01
NUMBER_OF_PROCESSORS=20
LOCALAPPDATA=C:\Users\jasoncow\AppData\Local
SystemRoot=C:\Windows
------------------------
Paths: 
Python: D:\sd-webui-aki-v4\py310\python.exe
  - Python Paths:
    - D:\sd-webui-aki-v4
    - D:\sd-webui-aki-v4\py310
    - D:\sd-webui-aki-v4\py310\lib\site-packages
    - D:\sd-webui-aki-v4\py310\lib\site-packages\win32
    - D:\sd-webui-aki-v4\py310\lib\site-packages\win32\lib
    - D:\sd-webui-aki-v4\py310\lib\site-packages\Pythonwin
  - Python Packages:
    - absl_py 1.4.0 
    - accelerate 0.21.0 
    - addict 2.4.0 
    - aenum 3.1.12 
    - aiofiles 23.2.1 
    - aiohttp 3.8.4 
    - aiosignal 1.3.1 
    - albumentations 1.4.3 
    - aliyun_python_sdk_alimt 3.2.0 
    - aliyun_python_sdk_core 2.13.10 
    - aliyun_python_sdk_core 2.13.36 
    - aliyun_python_sdk_core_v3 2.13.10 
    - aliyun_python_sdk_kms 2.16.2 
    - altair 4.2.2 
    - antlr4_python3_runtime 4.9.3 
    - anyio 3.6.2 
    - appdirs 1.4.4 
    - arabic_reshaper 3.0.0 
    - asttokens 2.2.1 
    - astunparse 1.6.3 
    - async_timeout 4.0.2 
    - attrs 22.2.0 
    - audioread 3.0.0 
    - av 10.0.0 
    - backcall 0.2.0 
    - basicsr 1.4.2 
    - beautifulsoup4 4.12.2 
    - bidict 0.22.1 
    - blendmodes 2022 
    - blobfile 2.0.2 
    - boltons 23.0.0 
    - boto3 1.26.152 
    - botocore 1.29.152 
    - Brotli 1.0.9 
    - cachetools 5.3.0 
    - cachetools 5.3.1 
    - certifi 2024.2.2 
    - cffi 1.15.1 
    - chardet 4.0.0 
    - charset_normalizer 3.3.2 
    - chumpy 0.70 
    - clean_fid 0.1.35 
    - click 8.1.7 
    - clip 1.0 
    - cmake 3.27.2 
    - colorama 0.4.6 
    - coloredlogs 15.0.1 
    - colorlog 6.8.2 
    - comm 0.1.4 
    - contourpy 1.0.7 
    - controlnet_aux 0.0.9 
    - crcmod 1.7 
    - cryptography 41.0.1 
    - cryptography 41.0.3 
    - cssselect2 0.7.0 
    - cycler 0.11.0 
    - Cython 0.29.35 
    - datasets 2.11.0 
    - decorator 4.4.2 
    - decorator 5.1.1 
    - deprecation 2.1.0 
    - depth_anything 2024.1.22.0 
    - depth_anything_v2 2024.7.1.0 
    - diffusers 0.26.3 
    - dill 0.3.6 
    - diskcache 5.6.3 
    - dlib_bin 19.24.2 
    - dm_tree 0.1.8 
    - dsine 2024.3.23 
    - duckduckgo_search 3.9.9 
    - dynamicprompts 0.31.0 
    - easydict 1.10 
    - edge_tts 6.1.8 
    - einops 0.4.1 
    - embreex 2.17.7.post4 
    - entrypoints 0.4 
    - exceptiongroup 1.2.0 
    - executing 1.2.0 
    - facexlib 0.3.0 
    - fairscale 0.4.13 
    - fastapi 0.94.0 
    - ffmpeg_python 0.2.0 
    - ffmpy 0.3.0 
    - ffmpy 0.3.1 
    - ffmpy3 0.2.4 
    - filelock 3.15.4 
    - filterpy 1.4.5 
    - Flask 2.2.3 
    - flaskwebgui 0.3.5 
    - Flask_Cors 4.0.0 
    - Flask_SocketIO 5.3.4 
    - flatbuffers 23.5.26 
    - fonts 0.0.3 
    - fonttools 4.39.3 
    - font_roboto 0.0.1 
    - freetype_py 2.4.0 
    - frozenlist 1.3.3 
    - fsspec 2023.9.2 
    - ftfy 6.1.1 
    - future 0.18.3 
    - fvcore 0.1.5.post20221221 
    - gast 0.4.0 
    - gdown 4.7.1 
    - geffnet 1.0.2 
    - gfpgan 1.3.8 
    - gitdb 4.0.10 
    - GitPython 3.1.32 
    - glob2 0.5 
    - google_auth 2.17.3 
    - google_auth 2.22.0 
    - google_auth_oauthlib 1.0.0 
    - google_pasta 0.2.0 
    - gradio 3.41.2 
    - gradio_client 0.5.0 
    - greenlet 2.0.2 
    - grpcio 1.53.0 
    - grpcio 1.57.0 
    - h11 0.12.0 
    - h2 4.1.0 
    - h5py 3.9.0 
    - handrefinerportable 2024.2.12.0 
    - hickle 5.0.2 
    - hpack 4.0.0 
    - hsluv 5.0.3 
    - httpcore 0.15.0 
    - httpx 0.24.1 
    - hub_sdk 0.0.3 
    - huggingface_hub 0.20.3 
    - humanfriendly 10.0 
    - hydra_core 1.3.2 
    - hyperframe 6.0.1 
    - idna 3.6 
    - ifnude 0.0.3 
    - imageio 2.31.1 
    - imageio_ffmpeg 0.4.8 
    - image_reward 1.3 
    - importlib_metadata 6.3.0 
    - importlib_resources 6.0.1 
    - inflection 0.5.1 
    - insightface 0.7.3 
    - intel_openmp 2021.4.0 
    - invisible_watermark 0.2.0 
    - iopath 0.1.9 
    - ipython 8.6.0 
    - ipywidgets 8.1.0 
    - itsdangerous 2.1.2 
    - jedi 0.19.0 
    - jinja2 3.1.4 
    - jmespath 0.10.0 
    - joblib 1.2.0 
    - jsonmerge 1.8.0 
    - jsonplus 0.8.0 
    - jsonschema 4.17.3 
    - json_tricks 3.17.2 
    - jupyterlab_widgets 3.0.8 
    - keras 2.14.0 
    - keras_core 0.1.7 
    - kiwisolver 1.4.4 
    - kornia 0.6.7 
    - lama_cleaner 1.2.1 
    - lark 1.1.2 
    - lark_parser 0.12.0 
    - lazy_loader 0.2 
    - libclang 16.0.6 
    - librosa 0.10.0.post2 
    - lightning_utilities 0.10.1 
    - linkify_it_py 2.0.0 
    - litelama 0.1.7 
    - llvmlite 0.42.0 
    - lmdb 1.4.1 
    - loguru 0.7.0 
    - lpips 0.1.4 
    - lupa 2.0 
    - lxml 4.9.3 
    - mapbox_earcut 1.0.1 
    - Markdown 3.4.3 
    - markdown_it_py 2.2.0 
    - MarkupSafe 2.1.5 
    - matplotlib 3.7.1 
    - matplotlib_inline 0.1.6 
    - mdit_py_plugins 0.3.3 
    - mdurl 0.1.2 
    - mediapipe 0.10.9 
    - mkl 2021.4.0 
    - ml_dtypes 0.2.0 
    - mmcv 2.0.1 
    - mmdet 3.1.0 
    - mmengine 0.8.4 
    - mmpose 1.1.0 
    - modelscope 1.9.3 
    - model_index 0.1.11 
    - moviepy 1.0.3 
    - mpmath 1.3.0 
    - msgpack 1.0.5 
    - multidict 6.0.4 
    - multiprocess 0.70.14 
    - munkres 1.1.4 
    - mutagen 1.46.0 
    - mypy_extensions 1.0.0 
    - namex 0.0.7 
    - networkx 3.3 
    - numba 0.59.0 
    - numexpr 2.8.4 
    - numpy 1.26.2 
    - nvidia_cublas_cu11 11.11.3.6 
    - nvidia_cublas_cu12 12.4.2.65 
    - nvidia_cuda_nvrtc_cu11 11.8.89 
    - nvidia_cuda_nvrtc_cu12 12.4.99 
    - nvidia_cuda_runtime_cu11 11.8.89 
    - nvidia_cuda_runtime_cu12 12.4.99 
    - nvidia_cudnn_cu12 8.9.7.29 
    - oauthlib 3.2.2 
    - omegaconf 2.2.3 
    - onnx 1.15.0 
    - onnxruntime 1.17.1 
    - onnxruntime_gpu 1.17.0 
    - onnx_graphsurgeon 0.3.27 
    - openai 0.27.8 
    - opencv_contrib_python 4.8.0.76 
    - opencv_python 4.8.0.76 
    - opencv_python_headless 4.10.0.84 
    - opendatalab 0.0.9 
    - openmim 0.3.9 
    - opennsfw2 0.11.0 
    - open_clip_torch 2.20.0 
    - optimum 1.16.2 
    - opt_einsum 3.3.0 
    - ordered_set 4.1.0 
    - orjson 3.8.10 
    - oss2 2.13.1 
    - outcome 1.3.0.post0 
    - packaging 23.2 
    - pandas 2.0.0 
    - parso 0.8.3 
    - pathos 0.3.0 
    - pickleshare 0.7.5 
    - piexif 1.1.3 
    - Pillow 9.5.0 
    - pillow_avif_plugin 1.4.3 
    - pillow_lut 1.0 
    - PIMS 0.6.0 
    - pip 24.2 
    - polygraphy 0.49.0 
    - pooch 1.6.0 
    - portalocker 2.7.0 
    - pox 0.3.2 
    - ppft 1.7.6.6 
    - prettytable 3.8.0 
    - proglog 0.1.10 
    - progressbar2 4.2.0 
    - prompt_toolkit 3.0.39 
    - protobuf 4.25.4 
    - psutil 5.9.5 
    - pure_eval 0.2.2 
    - pyarrow 12.0.1 
    - pyarrow 13.0.0 
    - pyasn1 0.4.8 
    - pyasn1 0.5.0 
    - pyasn1_modules 0.2.8 
    - pyasn1_modules 0.3.0 
    - pycloudflared 0.2.0 
    - pycocotools 2.0.6 
    - pycollada 0.8 
    - pycparser 2.21 
    - pycryptodome 3.18.0 
    - pycryptodomex 3.18.0 
    - pydantic 1.10.9 
    - pydub 0.25.1 
    - PyExecJS 1.5.1 
    - pyfunctional 1.4.3 
    - Pygments 2.15.1 
    - PyMatting 1.1.8 
    - pyparsing 3.0.9 
    - pypng 0.20220715.0 
    - PyQt5 5.15.9 
    - PyQt5_Qt5 5.15.2 
    - PyQt5_sip 12.12.1 
    - pyreadline3 3.4.1 
    - pyre_extensions 0.0.29 
    - pyrsistent 0.19.3 
    - PySocks 1.7.1 
    - python_benedict 0.32.0 
    - python_bidi 0.4.2 
    - python_dateutil 2.8.2 
    - python_dotenv 1.0.0 
    - python_engineio 4.4.1 
    - python_fsutil 0.10.0 
    - python_multipart 0.0.6 
    - python_slugify 8.0.1 
```

### Console logs

```Shell
loading settings: JSONDecodeError
Traceback (most recent call last):
  File "D:\sd-webui-aki-v4\modules\ui_loadsave.py", line 29, in __init__
    self.ui_settings = self.read_from_file()
  File "D:\sd-webui-aki-v4\modules\ui_loadsave.py", line 143, in read_from_file
    return json.load(file)
  File "json\__init__.py", line 293, in load
  File "json\__init__.py", line 346, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 14177 column 36 (char 897167)
```


### Additional information

_No response_