Streaming UTMT on discord causes crash
Describe the bug
This bug prevents UndertaleModTool from being streamed properly on Discord. When you join a call and stream UTMT, the stream will attempt to load for about 1-3 seconds before crashing without warning.
Reproducing steps
- Open the Discord app.
- Join or start a call.
- Stream the UndertaleModTool application.
Setup Details
- UndertaleModTool v0.5.1.0
- Windows 10
- Any game or None
The issue must have manifested way earlier than now, I'm getting the same behavior as far back as v0.4.0.0-pre1. The last commit before the migration to .NET 5 (d1dab93b5b2bd25bfbe9298d32c80a49c6823588) doesn't crash.
I've also reproduced the issue on Bleeding Edge with my laptop on Windows 11 23H2, meaning it's not OS-dependant.
@colinator27 might have some input on this, as they were the one that did the migration AFAIK?
This likely has nothing to do with this project, but with either WPF or one of our libraries we use. Upgrading .NET or those libraries could be a potential fix, but that's just a shot in the dark.
FWIW, this also happens when running utmt under WINE.