VAE is not JSON serializable - inconstant error that causes loop.run_until_complete to end.
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 155
Description
Been getting this in the past few days with lcm sampler, attached workflow, didnt have time to look at it myself, but thought id log it:
[workflow(15).json](https://github.com/comfyanonymous/ComfyUI/files/13805688/workflow.15.json)
workflow attached as well.
```
Traceback (most recent call last):
File "D:\sd\ComfyUI\main.py", line 224, in
loop.run_until_complete(run(server, address=args.listen, port=args.port, verbose=not args.dont_print_server, call_on_start=call_on_start))
File "C:\Users\toxic\mambaforge\envs\py311-comfyui\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "D:\sd\ComfyUI\main.py", line 128, in run
await asyncio.gather(server.start(address, port, verbose, call_on_start), server.publish_loop())
File "D:\sd\ComfyUI\server.py", line 611, in publish_loop
await self.send(*msg)
File "D:\sd\ComfyUI\server.py", line 548, in send
await self.send_json(event, data, sid)
File "D:\sd\ComfyUI\server.py", line 599, in send_json
await send_socket_catch_exception(self.sockets[sid].send_json, message)
File "D:\sd\ComfyUI\server.py", line 40, in send_socket_catch_exception
await function(message)
File "C:\Users\toxic\mambaforge\envs\py311-comfyui\Lib\site-packages\aiohttp\web_ws.py", line 352, in send_json
await self.send_str(dumps(data), compress=compress)
^^^^^^^^^^^
File "C:\Users\toxic\mambaforge\envs\py311-comfyui\Lib\json\__init__.py", line 231, in dumps
return _default_encoder.encode(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\toxic\mambaforge\envs\py311-comfyui\Lib\json\encoder.py", line 200, in encode
chunks = self.iterencode(o, _one_shot=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\toxic\mambaforge\envs\py311-comfyui\Lib\json\encoder.py", line 258, in iterencode
return _iterencode(o, 0)
^^^^^^^^^^^^^^^^^
File "C:\Users\toxic\mambaforge\envs\py311-comfyui\Lib\json\encoder.py", line 180, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type VAE is not JSON serializable
```
Contributor guide
Assessment
This issue has not been assessed yet.