Wan 2.2: Memory crashes when the Save Video node tries to save the clips generated
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
It should save the video clips smoothly.
### Actual Behavior
Memory crashes frequently occur in the official workflow.
### Steps to Reproduce
Whenever you try to save the videos with the node _Save Video_, there is about 60% of the chances to crash.
### Debug Logs
```powershell
[process crashed with code 3221225477 (0xC0000005)]
****
Physical RAM: 40624 MB Available / 65536 MB Total
Paging Files: 101328 MB Available / 106683 MB Total (Initial 0 MB, Maximum 0 MB)
****
The following is an analysis of the exit codes. This may not be accurate and it is for your reference only.
System exit code name: ACCESS_VIOLATION
System exit code description: The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.
Crash thread traceback:
Windows fatal exception: access violation
Note: Exit codes and their descriptions are not sufficient to diagnose the problem! Please upload the complete diagnostic log with codes.
```
### Other
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.