Search Issue Tracker

Fixed

Fixed in 1.9.6

Votes

1

Found in [Package]

1.9.4

Issue ID

UVSB-2563

Regression

No

Build constantly fails with errors “…. 'NetworkManager' does not contain a definition for '__rpc_name_table' (or '__rpc_func_table')“ after modifying the "AotStubs.cs" script

Package: Visual Scripting

-

How to reproduce:
1. Open the “FINAL_REPROPROJECT_STRIPPED“ project
2. Open the “TestScene“
3. Comment the functions “{{Unity_Netcode_NetworkManager_rpc_name_table}}“ and “{{Unity_Netcode_NetworkManager_rpc_func_table}}“ in the “AotStubs.cs” script
4. Navigate to “File/Build Settings“
5. Build and Run
6. Wait for a little bit for the errors to appear
7. Observe the Console window

Expected result: Build does not fail and no errors are thrown
Actual result: Build fails due to errors “…. 'NetworkManager' does not contain a definition for '__rpc_name_table' (or '__rpc_func_table')“ and “…. 'NetworkManager.RpcReceiveHandler' is inaccessible due to its protection level“ thrown

Reproducible with: 1.9.2 (2021.3.37f1, 2022.3.25f1, 6000.0.0b16), 1.9.4 (2021.3.42f1, 2022.3.41f1, 6000.0.14f1)

Reproducible on: macOS 14.5 (Intel), Windows 11 (User’s)
Not reproducible on: No other environments tested

Notes:
- After the 3rd step, no issue in the Play Mode, but the Player still fails
- Deleting the “{{AotStubs.cs}}“ and then building the application will not fix the issue

Comments (4)

  1. BioBrains

    Nov 26, 2024 00:39

    A new error is revealed to this list:

    'NetworkManager' does not contain a definition for 'NetworkManagerExpanded'

    much like the above __rpc ones.

  2. BioBrains

    Nov 26, 2024 00:23

    This was 4 months ago.

    This is a critical bug for me.

    I CANNOT make a build. Is there a workaround? Unity 6 if anything, made my previous workarounds fail.

  3. BioBrains

    Nov 11, 2024 20:37

    I noticed VisualScripting was updated to 1.9.5 and wanted to confirm the issue is still active (in case this specific issue was to be included).

  4. BioBrains

    Aug 12, 2024 23:16

    looking forward to a solution as I cannot produce any builds for upcoming promotions and testing.

    2022.3.40f1 was also tested, producing the same results above.

Add comment

Log in to post comment