Search Issue Tracker
Fixed
Fixed in 2021.3.9f1, 2022.1.12f1, 2022.2.0b4, 2023.1.0a5
Votes
11
Found in
2021.3.2f1
2022.1.6f1
2022.2.0a17
2023.1.0a1
Issue ID
UUM-1144
Regression
No
NotSupportedException thrown when calling any member of System.Runtime.InteropServices.RuntimeInformation in WebGL
Reproduction steps:
1. Open the attached project ("WebGLException") in Editor with WebGL
2. Open scene 'SampleScene'
3. Enter Play mode, notice that "Unix x.x.x.x" is printed on screen/console
4. Exit Play mode
5. Build and Run the project for WebGL
Expected result: Project is built and the correct Unix version is shown on the screen
Actual result: Project is built, but an error is printed on the screen
Reproducible with: 2021.3.2f1, 2022.2.0a13
Couldn't test with: 2019.4.39f1, 2020.3.34f1 (Build issues)
Note:
Error that is thrown:
NotSupportedException: C:/Program Files/Unity/Hub/Editor/2021.2.12f1/Editor/Data/il2cpp/libil2cpp/icalls/mscorlib/System.Runtime.InteropServices/RuntimeInformation.cpp(34) : Unsupported internal call for IL2CPP:RuntimeInformation::GetRuntimeArchitecture - "This icall is not supported by il2cpp on this architecture."
Rethrow as TypeInitializationException: The type initializer for 'System.Runtime.InteropServices.RuntimeInformation' threw an exception.
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
- Lighting Data asset is not created when baking multiple Scenes at the same time
- Performance issues when instantiating a recognizer under UnityEngine.Windows.Speech
- Build fails with "Exception: Unity.IL2CPP.Building.BuilderFailedException: Build failed with 0 successful nodes and 0 failed ones" when building the project for iOS
- [Android] .aab Build fails when using Asset Bundles
- Builds fail without a useful error message when building a project with invalid product name
Resolution Note (fix version 2022.1.12f1):
Fixed in 2022.1.12f1
Resolution Note (fix version 2021.3.9f1):
Fixed in 2021.3.9f1