FabianTerhorst / coreclr-module

Old alt:V CoreClr (.NET Core Common Language Runtime) community made module. New: https://github.com/altmp/coreclr-module
MIT License
72 stars 67 forks source link

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

Open duydang2311 opened 8 months ago

duydang2311 commented 8 months ago

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;
M1raclee commented 7 months ago

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