Search Issue Tracker
In Progress
In Progress in 2021.3.X, 2022.2.X
Fixed in 2023.1.0a15
Votes
0
Found in
2021.3.6f1
2022.1.9f1
2022.2.0b1
2023.1.0a3
Issue ID
UUM-9030
Regression
No
IL2CPP not correctly handling function pointers that have function pointer parameters leads to build failure
How to reproduce:
1. Open the attached project ("il2cpperror.zip")
2. Make a Build
3. Observe the output in the Console
Expected result: The project is built successfully
Actual result: A "Unity.IL2CPP.DataModel.UninitializedDataAccessException" error is thrown
Reproducible with: 2021.3.6f1, 2022.1.9f1, 2022.2.0b1, 2023.1.0a3
Could not test with: 2020.3.37f1 (plugin isn't compatible, 400+ errors)
Reproducible on:
macOS 12.1 (Intel)
First lines of the error:
Unity.IL2CPP.DataModel.UninitializedDataAccessException: [Unity.IL2CPP.DataModel.FunctionPointerType] method System.Int32 *(OpenExrCore.Bindings._priv_exr_context_t*,System.Int32,System.SByte*).ContainsGenericParameter has not been initialized yet.
at Unity.IL2CPP.DataModel.MemberReference.ThrowDataNotInitialized(String publicPropertyOrFieldName) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.DataModel/MemberReference.cs:line 86
at Unity.IL2CPP.DataModel.FunctionPointerType.get_ContainsGenericParameter() in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.DataModel/FunctionPointerType.cs:line 72
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
...
-
mrwilliamm
Jul 14, 2022 08:01
It was a useful article, thank you. I searched Bandar Abbas Mashhad train ticket ghasedak24 on Google in Windows 11 and it worked for me.
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
- Element UI disappears and NullReferenceException is thrown when dragging off the last or first element from the list in the Inspector
- [Silicon] Crash on ScriptableRenderLoopJob when machine is left idle while the Editor is in Play mode
- [Android] GraphicsBuffer.CopyCount does not work with Append Compute Buffer after Compute Shader Dispatch on some Android devices
- "DirectoryNotFoundException" error when building a project via script in one folder, then building via Editor in another, deleting the folder built via Editor and rebuilding via Script
- New items are created and old ones remain in memory when using 'treeView.SetRootItems(items)' and 'treeView.Rebuild()' which can cause a memory leak
Resolution Note (fix version 2023.1.0a15):
Fix landed in the IL2CPP repo at https://github.cds.internal.unity3d.com/unity/il2cpp/pull/4510