Search Issue Tracker

Fixed

Fixed in 2022.3.34f1, 6000.0.7f1, 7000.0.0a1

Votes

0

Found in

2022.3.21f1

2023.2.13f1

2023.3.0b10

6000.0.0b11

7000.0.0a1

Issue ID

UUM-65598

Regression

No

[IL2CPP] Building fails when local functions in method with SystemAPI() are used

-

Reproduction steps:
1. Open the attached project “ReproProject”
2. Ensure that IL2CPP is used as the Scripting Backend (menu: Edit > Project Settings > Player > Other Settings > Configuration)
3. Build the project
4. Observe the building process

Expected result: The app is built successfully
Actual result: Building fails with the error “ C2039: '___TypesData': is not a member of 'TypeHandle_t6106DE4ED0791589ED302684C355A82991289613"

Reproducible with: 2022.3.21f1, 2023.2.13f1, 2023.3.0b10
Couldn’t test with: 2021.3.36f1 (user script error)

Reproducible on: Windows 11 23H2, macOS 14.2.1 23C71 Darwin 23.2.0 (by user)
Not Reproducible on: No other environment was tested

Notes:
- Not Reproducible when using Mono-scripting backend
- Reproducible when building for Android platform

Full error:
{{Build completed with a result of 'Failed' in 219 seconds (219234 ms) Building Library\Bee\artifacts\WinPlayerBuildProgram\u1oik\f90lngwrjeok.obj failed with output: Assembly-CSharp.cpp C:\Users\ta\Documents\IN-cases\IN-68479_IL2CPPIssue\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\Assembly-CSharp.cpp(2022): error C2039: '___TypesData': is not a member of 'TypeHandle_t6106DE4ED0791589ED302684C355A82991289613' C:\Users\ta\Documents\IN-cases\IN-68479_IL2CPPIssue\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\Assembly-CSharp.cpp(655): note: see declaration of 'TypeHandle_t6106DE4ED0791589ED302684C355A82991289613'}}

  1. Resolution Note (fix version 6000.0.7f1):

    Fixed in next version of Entities.

  2. Resolution Note (fix version 2022.3.34f1):

    Fixed in next version of Entities.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.