thorium-cfx / mono_v2_get_started

Mono v2 runtime for FiveM/RedM
38 stars 5 forks source link

With latest client build (7788) C# BaseScript and Coroutine .Wait stop runtime (reproduction repo added) #36

Closed Gyzzmo closed 7 months ago

Gyzzmo commented 7 months ago

What happened?

Hi !

Since client version 7788 (so canary too), any C# Coroutine.Wait or BaseScript.Wait/WaitFor... stop script execution. No error, just wait infinitely.

That said WaitUntil(TimePoint) only works.

This issue can be see with FxDK and with a client/server.

Expected result

Just wait correctly

Reproduction steps

Show this repo: https://github.com/Gyzzmo/mono_v2_bug/tree/master

Importancy

Fatal (we can't use the runtime without)

Specific version

FiveM windows since build 7788

Extra

No response

Gyzzmo commented 7 months ago

Reproduction repo: https://github.com/Gyzzmo/mono_v2_bug/tree/master

thorium-cfx commented 7 months ago

Thank you for this report, confirmed this happens at any second Wait call. Looking into how to fix this