#ILPostProcessor throwing System.ArgumentException

3 messages · Page 1 of 1 (latest)

errant crow
#

I'm currently using FishNet version 3.11.1R on Unity Editor 2022.3.7f1, and I'm using CSP v2.

I've been getting the following error from time to time when I add a method with an argument to any class (I've only tried it on classes inheriting from MonoBehaviour yet, but I don't think that's the problem):

processors: FishNet.CodeGenerating.ILCore.FishNetILPP, Unity.Jobs.CodeGen.JobsILPostProcessor, zzzUnity.Burst.CodeGen.BurstILPostProcessor
running FishNet.CodeGenerating.ILCore.FishNetILPP
FishNet.CodeGenerating.ILCore.FishNetILPP: ILPostProcessor has thrown an exception: System.ArgumentException: Member 'System.Void System.ParamArrayAttribute::.ctor()' is declared in another module and needs to be imported```

I spent some time trying to make a minimal project that reproduces the error, but the amount of scripts / classes / methods I'm using seems to be playing a role. Strangely enough, whenever adding a certain method causes the error to reappear, I can merge two methods with arguments in a completely different class (so reducing the number of methods by 1) to get rid of the error. Since I'm unable to produce a minimal working example, I could also share my project folder. Just let me know what you'd prefer.

Just as a simple example, when I appear to be at the 'threshold', adding the following to an empty object in an otherwise empty scene causes the error to be thrown:
```CS
using UnityEngine;

public class TestScript : MonoBehaviour
{
    void TestFunction() { }         // okay

    void TestFunction(float x) { }  // problematic
}```
strange notch
#

Hmm, that's very strange 🤔
Do you know if this happens on the latest 3.x version?

errant crow
#

I updated to 3.11.7R Pro, which seems to have solved the problem. When I switch back to 3.11.1R though, the error doesn't reappear. I'll work on the project next week, so I'm sure it would reappear if the problem wasn't already solved by now.