Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
130 stars 2 forks source link

Headless crashes with Discord related errors #2554

Open orange3134 opened 1 month ago

orange3134 commented 1 month ago

Describe the issue.

After playing with .NET 8.0 headless for a while, I get this error and crash. This error appears in the console but does not appear to be logged. This error has occurred twice, the first time while fiddling with Flux and the second time while playing with a bunch of items.

Process terminated. A callback was made on a garbage collected delegate of type 'DiscordGameSDKWrapper!DiscordGameSDKWrapper.ActivityManager+FFIMethods+UpdateActivityCallback::Invoke'.
   at FrooxEngine.Interfacing.DiscordConnector.Update()
   at FrooxEngine.PlatformInterface.Update()
   at FrooxEngine.Engine.UpdateStep()
   at FrooxEngine.Engine.RunUpdateLoop()
   at FrooxEngine.StandaloneFrooxEngineRunner.UpdateLoop()

To Reproduce

NET 8.0 headless without any configurations and connect to that session. After playing with that session for a few minutes, suddenly this error occurs.

Expected behavior

The session continues without error.

Screenshots

No response

Resonite Version Number

2024.7.12.12

What Platforms does this occur on?

Windows

What headset if any do you use?

Desktop

Log Files

ORANGELESSEQ - 2024.7.12.12 - 2024-07-12 23_32_30.log ORANGELESSEQ - 2024.7.12.12 - 2024-07-12 23_38_31.log

Additional Context

No response

Reporters

orange3134

orange3134 commented 1 month ago

I have confirmed that this also occurs on 2024.7.12.933. The same error appears in the console, although it is not shown in the log. ORANGELESSEQ - 2024.7.12.933 - 2024-07-13 01_25_24.log

shiftyscales commented 1 month ago

Assigning @Frooxius.

ghost commented 1 month ago

This is related to #2022

Frooxius commented 1 month ago

There's actually PR from @Geenz internally that should fix this by switching to C# 11 as the language. We need to verify if this breaks other things, due to it being global project-wide change, but it should fix this.