coreclr-module icon indicating copy to clipboard operation
coreclr-module copied to clipboard

[C# client] This simple `Func<float, float>` crashes the client

Open duydang2311 opened this issue 1 year ago • 1 comments

In my code, I found out that a Func<float, float> is crashing the game when it gets executed.

I'm able to reproduce the crash with the minimal code below. Nothing related to the crash is logged to the client.

Alt.OnConnectionComplete += () =>
{
    var x = (float y) => y;
    x(1); // crashes here
};

This seems to happen only to local declared function and lambda expression because this static method works fine.

private static float x(float y) => y;
  • Server: 16.0.0-dev.158
  • Nuget: 16.0.0-dev.21

duydang2311 avatar Jan 16 '24 07:01 duydang2311

I also stucked with this problem and similar with int/byte (#843) Any updates?

M1raclee avatar Feb 16 '24 17:02 M1raclee