Search Issue Tracker
Fixed in 5.5.0
Votes
0
Found in
5.3.5f1
Issue ID
805661
Regression
No
[Networking]Invalid IL code when passing array of enums to the method
Steps to reproduce:
1. Download and open attached project.
2. Open scene named "MainMenu".
3. Enter the Play mode.
4. In the "Game" window press "START" button.
5. Notice that the "Console" window outputs this error message:
"InvalidProgramException: Invalid IL code in LobbyPlayer:CallRpcMakeInvalidCode (ExampleEnum[]): IL_0050: call 0x0a000017"
6. Open script named "Lobby" and temporary delete this line of code: "player.RpcMakeInvalidCode(listthree.ToArray());"
7. Notice that the issue disappeared.
Expected result:
The error message should not appear when passing array of enums to the method.
Reproduced with:
5.1.0f3, 5.2.4f1, 5.3.4f1, 5.3.5p1, 5.3.5f1, 5.4.0b18.
With 5.1.0f3 I get another error message and it does not allow me to reproduce the issue:
"Assets/Lobby.cs(24,26): error CS0115: `Lobby.OnLobbyServerPlayersReady()' is marked as an override but no suitable method found to override".
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Nut_Phalloom
Apr 27, 2018 14:37
I don't want to recreate the problem I want to FIX the problem.